Browse Source

feat: Add LGSM_DATADIR environment variable

This commit adds the LGSM_DATADIR environment variable to the Dockerfiles and entrypoint.sh script. The variable is set to "/data/data" in all three Dockerfiles, and it is exported in the entrypoint.sh script. This allows for easy configuration of the data directory path for LinuxGSM.
pull/31/head
Daniel Gibbs 2 years ago
parent
commit
ce9eb50e0b
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 3
      Dockerfile.ubuntu-1804
  2. 1
      Dockerfile.ubuntu-2004
  3. 1
      Dockerfile.ubuntu-2204
  4. 2
      entrypoint.sh

3
Dockerfile.ubuntu-1804

@ -14,6 +14,7 @@ ENV LGSM_GITHUBREPO=LinuxGSM
ENV LGSM_GITHUBBRANCH=master
ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm
ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=1800
@ -31,13 +32,13 @@ RUN echo "**** Install Base LinuxGSM Requirements ****" \
&& add-apt-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y \
cron \
bc \
binutils \
bsdmainutils \
bzip2 \
ca-certificates \
cpio \
cron \
curl \
distro-info \
file \

1
Dockerfile.ubuntu-2004

@ -14,6 +14,7 @@ ENV LGSM_GITHUBREPO=LinuxGSM
ENV LGSM_GITHUBBRANCH=master
ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm
ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=1800

1
Dockerfile.ubuntu-2204

@ -14,6 +14,7 @@ ENV LGSM_GITHUBREPO=LinuxGSM
ENV LGSM_GITHUBBRANCH=master
ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm
ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=1800

2
entrypoint.sh

@ -30,6 +30,7 @@ echo -e "LGSM_GITHUBREPO: ${LGSM_GITHUBREPO}"
echo -e "LGSM_GITHUBBRANCH: ${LGSM_GITHUBBRANCH}"
echo -e "LGSM_LOGDIR: ${LGSM_LOGDIR}"
echo -e "LGSM_SERVERFILES: ${LGSM_SERVERFILES}"
echo -e "LGSM_DATADIR: ${LGSM_DATADIR}"
echo -e "LGSM_CONFIG: ${LGSM_CONFIG}"
echo -e ""
@ -41,6 +42,7 @@ export LGSM_GITHUBREPO=${LGSM_GITHUBREPO}
export LGSM_GITHUBBRANCH=${LGSM_GITHUBBRANCH}
export LGSM_LOGDIR=${LGSM_LOGDIR}
export LGSM_SERVERFILES=${LGSM_SERVERFILES}
export LGSM_DATADIR=${LGSM_DATADIR}
export LGSM_CONFIG=${LGSM_CONFIG}
cd /app || exit

Loading…
Cancel
Save