From ba4c645b0c2f4fc54c9524f94eefebdce5cfb35b Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Sat, 25 Mar 2017 19:25:32 +0100 Subject: [PATCH 1/3] Add initial .travis.yml --- .travis.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2d75cea --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: bash +services: docker + +install: + - git clone https://github.com/docker-library/official-images.git ~/official-images + +before_script: + - env | sort + - image="luzifer/teamspeak3:latest" + +script: + - travis_retry docker build -t "$image" . + - ~/official-images/test/run.sh "$image" + +after_script: + - docker images From a483adb7c520d1a119f51782630778afd00cd5f5 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Sat, 25 Mar 2017 19:31:12 +0100 Subject: [PATCH 2/3] Replaced ENTRYPOINT with CMD --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e5d3c8b..0be75d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,8 +29,7 @@ RUN wget -O teamspeak3-server_linux-amd64.tar.bz2 http://dl.4players.de/ts/relea ADD /scripts/ /opt/scripts/ RUN chmod -R 774 /opt/scripts/ -ENTRYPOINT ["/opt/scripts/docker-ts3.sh"] -#CMD ["-w", "/teamspeak3/query_ip_whitelist.txt", "-b", "/teamspeak3/query_ip_blacklist.txt", "-o", "/teamspeak3/logs/", "-l", "/teamspeak3/"] +CMD ["/opt/scripts/docker-ts3.sh"] # Expose the Standard TS3 port. EXPOSE 9987/udp From bbbae4fe88a4255c9263b3a19ea5ab50cd3e61d6 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Sat, 25 Mar 2017 22:02:38 +0100 Subject: [PATCH 3/3] Reduce the amount of layers --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0be75d4..10d6450 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,9 +31,5 @@ RUN chmod -R 774 /opt/scripts/ CMD ["/opt/scripts/docker-ts3.sh"] -# Expose the Standard TS3 port. -EXPOSE 9987/udp -# for files -EXPOSE 30033 -# for ServerQuery -EXPOSE 10011 +# Expose the Standard TS3 port, for files, for serverquery +EXPOSE 9987/udp 30033 10011