OSDN Git Service

Fix #36822: Build a Docker image for Shogi-server
[shogi-server/shogi-server.git] / Makefile
index e470e69..affadf1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,16 +6,27 @@ doc: clean
 
 .PHONY: test-run
 test-run: 
 
 .PHONY: test-run
 test-run: 
-       ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
+       ./shogi-server --floodgate-games floodgate-600-10,floodgate-3600-0 hoge 4000
+
 
 .PHONY: test-run-daemon
 test-run-daemon: 
 
 .PHONY: test-run-daemon
 test-run-daemon: 
-       ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 --daemon . --pid-file ./shogi-server.pid --player-log-dir ./player-logs hoge 4000
+       ./shogi-server --floodgate-games floodgate-600-10,floodgate-3600-0 --daemon . --pid-file ./shogi-server.pid --player-log-dir ./player-logs hoge 4000
 
 .PHONY: stop-daemn
 stop-daemon:
        kill `cat shogi-server.pid`
 
 
 .PHONY: stop-daemn
 stop-daemon:
        kill `cat shogi-server.pid`
 
+.PHONY: test-time-run
+test-time-run: 
+       ruby -r sample/test_time.rb ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
+
+.PHONY: image-build
+image-build: .image-build
+.image-build: Dockerfile
+       docker build -t shogi-server/shogi-server:latest -f $< .
+       docker images -q shogi-server/shogi-server:latest > $@
+
 .PHONY: clean
 clean:
 .PHONY: clean
 clean:
-       -rm -rf doc
+       -rm -rf doc .image-*