From e9615f9fa80c84e8a6b01dc0c25c8b07fc2183a6 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Mon, 30 Sep 2019 12:10:25 +0200 Subject: [PATCH] Added a docker container for the server along with instructions. --- Dockerfile | 14 ++++++++++++++ README.rdoc | 7 ++++++- conf/config.yaml | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a6b685d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM ruby:2.6 + +# throw errors if Gemfile has been modified since Gemfile.lock +RUN bundle config --global frozen 1 + +WORKDIR /usr/src/app + +#COPY Gemfile Gemfile.lock ./ +COPY . . + +RUN bundle install + +EXPOSE 8888 +CMD ["/usr/local/bin/bundle", "exec", "/usr/src/app/bin/aethyr", "run"] diff --git a/README.rdoc b/README.rdoc index ecdba18..6a0d910 100644 --- a/README.rdoc +++ b/README.rdoc @@ -29,4 +29,9 @@ Just run the application with the following command. bundle install bundle exec rake bundle exec ./bin/aethyr_setup - bundle exec ./bin/aethyr run \ No newline at end of file + bundle exec ./bin/aethyr run + +== Using Docker + + docker build -t syncleus/aethyr . + docker run -p 8888:8888 --rm syncleus/aethyr diff --git a/conf/config.yaml b/conf/config.yaml index 82a58bb..4db075a 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -9,7 +9,7 @@ :restart_delay: 10 :address: 0.0.0.0 :intro_file: intro.txt -:start_room: fcaa64fd-0271-5d23-50d1-62e3bab8aa00 +:start_room: 2197cd6f-523e-0922-6722-fe97b729677c :restart_limit: 15 :mccp: false :mssp: false -- GitLab