• R/O
  • HTTP
  • SSH
  • HTTPS

shogi-server: コミット

shogi-server source


コミットメタ情報

リビジョン59549c02544bd8289e1c14eb8dbc31f171aa5224 (tree)
日時2017-11-25 22:03:43
作者Daigo Moriwaki <daigo@debi...>
コミッターDaigo Moriwaki

ログメッセージ

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

変更サマリ

差分

--- 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
旧リポジトリブラウザで表示