Skip to content

Commit

Permalink
fix: add env to entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
EuleMitKeule committed Dec 4, 2022
1 parent e2464d4 commit a1239f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ ARG DOCKER_VERSION=17.06.0-ce

ENV LISTEN_HOST="0.0.0.0"
ENV LISTEN_PORT="1337"
ENV MASTER_SERVER_HOST="bvmaster.eulenet.eu"
ENV MASTER_SERVER_HOST="147.185.221.180"
ENV MASTER_SERVER_PORT="19994"
ENV MASTER_SERVER_TOKEN="bla"

RUN apt-get update && \
apt-get install -y libglu1 xvfb libxcursor1
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
chmod 777 /root/blobby-volley-world-server/blobby-volley-world-server-linux
rm /root/blobby-volley-world-server/serverData.json
echo "{\"Name\":\"BV Server\",\"Host\":$LISTEN_HOST,\"Port\":$LISTEN_PORT,\"Token\":\"bla\",\"MasterServerHost\":\"$MASTER_SERVER_HOST\",\"MasterServerPort\":15940}" >> /root/blobby-volley-world-server/serverData.json
echo "{\"Name\":\"$SERVER_NAME\",\"Host\":$LISTEN_HOST,\"Port\":$LISTEN_PORT,\"Token\":\"$MASTER_SERVER_TOKEN\",\"MasterServerHost\":\"$MASTER_SERVER_HOST\",\"MasterServerPort\":$MASTER_SERVER_PORT}" >> /root/blobby-volley-world-server/serverData.json
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' /root/blobby-volley-world-server/blobby-volley-world-server-linux -batchmode -nographics

0 comments on commit a1239f6

Please sign in to comment.