Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make manager.io easily updatable with newer version of Mono #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
FROM mono:4.6
MAINTAINER Maksym Prokopov <[email protected]>
#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
#RUN echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
#RUN apt-get update -qq && apt-get -yf install mono-complete wget
RUN mkdir /manager /data
WORKDIR /manager
FROM mono:6.8

RUN apt-get update && apt-get install wget unzip

ADD libe_sqlite3.so .
#this is manually compiled libe_sqlite3 version
#to clear curl cache bump version
ENV MANAGER_VER 16.12.56
COPY init.sh /

RUN curl -O https://mngr.s3.amazonaws.com/ManagerServer.tar.gz \
&& tar -xzf ManagerServer.tar.gz \
&& rm ManagerServer.tar.gz
CMD mono ManagerServer.exe -port 8080 -path "/data"
RUN mkdir /manager /data
WORKDIR /manager

VOLUME ["/data"]
EXPOSE 8080

ENTRYPOINT ["/init.sh"]
9 changes: 9 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

wget https://github.com/Manager-io/Manager.zip/releases/latest/download/Manager.zip -O Manager.zip

unzip Manager.zip

rm -f Manager.zip

mono ManagerServer.exe -port 8080 -path "/data"