- removed testing files
This commit is contained in:
parent
e45478f9f4
commit
bd5fdd6041
@ -1,56 +0,0 @@
|
|||||||
FROM debian:stretch
|
|
||||||
|
|
||||||
# Const \\ Overwrite Env \\ Configs possible \\ Configs needed
|
|
||||||
ENV STEAM_PATH="/home/steam" \
|
|
||||||
SERVER_PATH="/home/steam/serverfiles" \
|
|
||||||
STEAM_CMD="/home/steam/steamcmd" \
|
|
||||||
GROUP_ID=10000 \
|
|
||||||
USER_ID=10000 \
|
|
||||||
DOCKER_USER=steam \
|
|
||||||
SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.9/supercronic-linux-amd64 \
|
|
||||||
SUPERCRONIC=supercronic-linux-amd64 \
|
|
||||||
SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85 \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
DEBUGGING=false \
|
|
||||||
CRON_MONITOR="*/5 * * * *" \
|
|
||||||
CRON_UPDATE="*/30 * * * *" \
|
|
||||||
CRON_FORCE_UPDATE="0 10 * * 0" \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
SERVER_EXECUTABLE="" \
|
|
||||||
SERVER_GAME="" \
|
|
||||||
TZ="US/Eastern"
|
|
||||||
#https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
||||||
|
|
||||||
ENTRYPOINT ["./home/entrypoint.sh"]
|
|
||||||
|
|
||||||
COPY ["entrypoint.sh", "initCron.sh", "/home/"]
|
|
||||||
|
|
||||||
RUN dpkg --add-architecture i386 && \
|
|
||||||
apt-get update -y && \
|
|
||||||
apt-get install -y locales sudo curl && \
|
|
||||||
\
|
|
||||||
groupadd -g $GROUP_ID $DOCKER_USER && \
|
|
||||||
useradd -d "$STEAM_PATH" -g $GROUP_ID -u $USER_ID -m $DOCKER_USER && \
|
|
||||||
chown "$DOCKER_USER:$DOCKER_USER" /home/entrypoint.sh && \
|
|
||||||
chown "$DOCKER_USER:$DOCKER_USER" /home/initCron.sh && \
|
|
||||||
sudo -u "$DOCKER_USER" mkdir -p "$SERVER_PATH" && \
|
|
||||||
chown -R "$DOCKER_USER:$DOCKER_USER" "$STEAM_PATH" && \
|
|
||||||
chmod a=rx /home/entrypoint.sh && \
|
|
||||||
chmod a=rx /home/initCron.sh && \
|
|
||||||
\
|
|
||||||
ulimit -n 2048 && \
|
|
||||||
sed -i 's/# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen && \
|
|
||||||
locale-gen && \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
curl -fsSLO "$SUPERCRONIC_URL" && \
|
|
||||||
echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - && \
|
|
||||||
chmod a+rx "$SUPERCRONIC" && \
|
|
||||||
mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" && \
|
|
||||||
ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "${DEBUGGING}" = "true" ]; then
|
|
||||||
set -o xtrace
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
echo "starting entrypoint.sh"
|
|
||||||
set -e
|
|
||||||
|
|
||||||
|
|
||||||
#start cron
|
|
||||||
bash "/home/initCron.sh"
|
|
||||||
|
|
||||||
exec /bin/bash
|
|
@ -1,16 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "${DEBUGGING}" = "true" ]; then
|
|
||||||
set -o xtrace
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
set -o pipefail
|
|
||||||
set -o nounset
|
|
||||||
|
|
||||||
#set up cronjob
|
|
||||||
rm -f "$STEAM_PATH/lgsm-cronjobs" || true
|
|
||||||
touch "$STEAM_PATH/lgsm-cronjobs"
|
|
||||||
# false positive
|
|
||||||
echo "*/1 * * * * date >> date.log" >> "$STEAM_PATH/lgsm-cronjobs" # out on release
|
|
||||||
echo "" >> "$STEAM_PATH/lgsm-cronjobs"
|
|
Loading…
Reference in New Issue
Block a user