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

Support running on server/as Docker image #14

Open
zegerhoogeboom opened this issue Aug 28, 2017 · 0 comments
Open

Support running on server/as Docker image #14

zegerhoogeboom opened this issue Aug 28, 2017 · 0 comments

Comments

@zegerhoogeboom
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant