-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add fig config, Dockerfile and Dockerfile to run kgsGtp close by
- Loading branch information
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Fabian Linzberger <e@lefant.net> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get -y update && \ | ||
apt-get install -y --no-install-recommends haskell-platform && \ | ||
apt-get clean | ||
|
||
RUN cabal update | ||
|
||
ADD src /root/src | ||
ADD Setup.hs /root/Setup.hs | ||
ADD kurt.cabal /root/kurt.cabal | ||
ADD COPYRIGHT /root/COPYRIGHT | ||
|
||
WORKDIR /root | ||
RUN cabal install | ||
|
||
RUN apt-get -y install netcat && apt-get clean | ||
|
||
#ENV GHCRTS "-N" | ||
ENTRYPOINT ["nc.traditional", "kgsGtp_1", "12345", "-e", "/.cabal/bin/kurt"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
kgsGtp: | ||
build: kgsGtp | ||
command: mode=custom opponent=lefant gameNotes="for lefant" | ||
#command: mode=custom opponent=lefant gameNotes="9x9 only, about 25k on a good day" | ||
#command: mode=tournament | ||
environment: | ||
NAME: | ||
PASSWORD: | ||
kurt: | ||
build: . | ||
links: | ||
- kgsGtp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Fabian Linzberger <e@lefant.net> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get -y update && \ | ||
apt-get install -y --no-install-recommends openjdk-7-jre-headless && \ | ||
apt-get clean | ||
|
||
ADD http://files.gokgs.com/javaBin/kgsGtp-3.5.11.tar.gz /root/kgsGtp-3.5.11.tar.gz | ||
WORKDIR /root | ||
RUN tar xvzf kgsGtp-3.5.11.tar.gz | ||
|
||
ADD kgsGtp.conf /root/kgsGtp.conf | ||
ADD kgsGtp.sh /root/kgsGtp.sh | ||
|
||
EXPOSE 12345 | ||
CMD ["mode=custom"] | ||
ENTRYPOINT ["/root/kgsGtp.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
reconnect=t | ||
engine.port=12345 | ||
room=Computer Go | ||
verbose=t | ||
rules=chinese | ||
rules.boardSize=9 | ||
rules.time=5:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh -e | ||
|
||
java -jar kgsGtp-3.5.11/kgsGtp.jar kgsGtp.conf name=$NAME password=$PASSWORD "$@" |