• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revisão59549c02544bd8289e1c14eb8dbc31f171aa5224 (tree)
Hora2017-11-25 22:03:43
AutorDaigo Moriwaki <daigo@debi...>
CommiterDaigo Moriwaki

Mensagem de Log

Start up shogi-server in foreground

Typical usage will be

% docker run -d --restart=always -p 4081:4081 -v pwd/player-logs:/shogilogs -e EVENT=self -e MAX_IDENTIFIER=256 shogiserver/shogiserver

Mudança Sumário

Diff

--- a/Dockerfile
+++ b/Dockerfile
@@ -1,19 +1,21 @@
1-FROM debian
1+FROM debian:stretch-slim
22 MAINTAINER Daigo Moriwaki <daigo@debian.org>
33
44 RUN apt-get update && apt-get install -y \
5+ ca-certificates \
56 apt-utils \
67 ruby ruby-gsl
7-RUN gem install rgl
88
99 ENV EVENT local
1010 ENV PORT 4081
1111 ENV MAX_IDENTIFIER 32
1212
1313 WORKDIR /shogi-server
14+
1415 RUN mkdir /logs
16+RUN gem install rgl
1517
1618 COPY . ./
1719
18-CMD ./shogi-server --daemon /logs --pid-file shogi-server.pid --max-identifier $MAX_IDENTIFIER $EVENT $PORT && tail -F /logs/shogi-server.log
19-
20+EXPOSE $PORT
21+CMD ./shogi-server --player-log-dir ./player-logs --max-identifier $MAX_IDENTIFIER $EVENT $PORT