Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Support running on server/as Docker image #14

@zegerhoogeboom

Description

@zegerhoogeboom

As mentioned in #4, mono fails with an error when starting on a server. I've come as far as determining it's caused by this line, which assumes a graphical interface (/browser) is present. More specifically, I'm trying to run this as a Docker container for which I currently have:

FROM debian:jessie-slim

ENV MONO_VERSION 5.2.0.215

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

RUN echo "deb http://download.mono-project.com/repo/debian jessie/snapshots/$MONO_VERSION main" > /etc/apt/sources.list.d/mono-official.list \
  && apt-get update \
  && apt-get install -y mono-complete \
  && apt-get install -y wget \
  && rm -rf /var/lib/apt/lists/* /tmp/*

RUN wget https://github.com/ServiceStackApps/RedisReact/raw/master/dist/RedisReact-console.exe
RUN mkdir -p /app && mv RedisReact-console.exe /app
WORKDIR /app

EXPOSE 2337
RUN mono --version
RUN mono ./RedisReact-console.exe

The mono setup is simply copy pasted from the official mono image, except for replacing the mono version with mono-complete.

The error I'm getting is exactly the same as in #4. Perhaps there is a way to try { } catch () { } this line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions