From a96911b6516611adbe17a7e12e82d185a90da666 Mon Sep 17 00:00:00 2001 From: Ezekiel Grave Date: Wed, 19 Jun 2019 14:40:55 +0000 Subject: [PATCH] New AppID. Fixups for ici.de.com environment. --- Dockerfile | 9 ++++++++- docker_build.sh | 4 +++- docker_build_force.sh | 4 +++- docker_push.sh | 6 ++++-- docker_run.sh | 2 +- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52b0a9a..a04b299 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,14 @@ LABEL maintainer="Didstopia " # Fixes apt-get warnings ARG DEBIAN_FRONTEND=noninteractive +# Install dependencies +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + net-tools && apt-get clean && \ + rm -rf /var/lib/apt/lists/* + # Create the volume directories +# Create and set the steamcmd folder as a volume RUN mkdir -p /steamcmd/starbound # Add the steamcmd installation script @@ -38,7 +45,7 @@ ENV SKIP_STEAMCMD "" ENV CHOWN_DIRS "/app,/steamcmd" # Expose the volumes -VOLUME [ "/app.steam", "/steamcmd/starbound" ] +VOLUME [ "/app/steam", "/steamcmd/starbound" ] # Start the server CMD [ "bash", "/app/start.sh"] diff --git a/docker_build.sh b/docker_build.sh index f7f513f..3741e4d 100755 --- a/docker_build.sh +++ b/docker_build.sh @@ -1,3 +1,5 @@ #!/bin/bash -docker build -t didstopia/starbound-server:latest . +TAG="hub.ici.de.com/starbound-server:latest" + +docker build -t "${TAG}" . diff --git a/docker_build_force.sh b/docker_build_force.sh index f65ff69..5c612f3 100755 --- a/docker_build_force.sh +++ b/docker_build_force.sh @@ -1,3 +1,5 @@ #!/bin/bash -docker build --no-cache -t didstopia/starbound-server:latest . +TAG="hub.ici.de.com/starbound-server:latest" + +docker build --no-cache -t "${TAG}" . diff --git a/docker_push.sh b/docker_push.sh index f6f1cbe..eb65285 100755 --- a/docker_push.sh +++ b/docker_push.sh @@ -1,4 +1,6 @@ #!/bin/bash -docker tag didstopia/starbound-server:latest didstopia/starbound-server:latest -docker push didstopia/starbound-server:latest \ No newline at end of file +TAG="hub.ici.de.com/starbound-server:latest" + +docker tag "${TAG}" "${TAG}" +docker push "${TAG}" diff --git a/docker_run.sh b/docker_run.sh index 5858748..1010917 100755 --- a/docker_run.sh +++ b/docker_run.sh @@ -4,7 +4,7 @@ ./docker_build.sh # Run a container -docker run -p 0.0.0.0:21025:21025/tcp --env-file .env -v "$(pwd)/starbound_data:/steamcmd/starbound" --name starbound-server -it --rm didstopia/starbound-server:latest +docker run -p 0.0.0.0:21025:21025/tcp --env-file .env -v "$(pwd)/starbound_data:/steamcmd/starbound" --name starbound-server -it --rm hub.ici.de.com/starbound-server:latest # Edit unit tests #dgoss edit -p 0.0.0.0:21025:21025/tcp --env-file .env -v "$(pwd)/starbound_data:/steamcmd/starbound" --name starbound-server -d didstopia/starbound-server:latest