Skip to content

Commit 25a1ed7

Browse files
committed
Generate Dockerfiles
1 parent 5541e52 commit 25a1ed7

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

dockerfiles/Dockerfile.sm

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# LinuxGSM Soulmask Dockerfile
3+
#
4+
# https://github.com/GameServerManagers/docker-gameserver
5+
#
6+
7+
FROM gameservermanagers/linuxgsm:ubuntu-22.04
8+
LABEL maintainer="LinuxGSM <[email protected]>"
9+
ARG SHORTNAME=sm
10+
ENV GAMESERVER=smserver
11+
12+
WORKDIR /app
13+
14+
## Auto install game server requirements
15+
RUN depshortname=$(curl --connect-timeout 10 -s https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/ubuntu-22.04.csv |awk -v shortname="sm" -F, '$1==shortname {$1=""; print $0}') \
16+
&& if [ -n "${depshortname}" ]; then \
17+
echo "**** Install ${depshortname} ****" \
18+
&& apt-get update \
19+
&& apt-get install -y ${depshortname} \
20+
&& apt-get -y autoremove \
21+
&& apt-get clean \
22+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
23+
fi
24+
25+
HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/entrypoint-healthcheck.sh || exit 1
26+
27+
RUN date > /build-time.txt
28+
29+
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]

dockerfiles/Dockerfile.xnt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# LinuxGSM Xonotic Dockerfile
3+
#
4+
# https://github.com/GameServerManagers/docker-gameserver
5+
#
6+
7+
FROM gameservermanagers/linuxgsm:ubuntu-22.04
8+
LABEL maintainer="LinuxGSM <[email protected]>"
9+
ARG SHORTNAME=xnt
10+
ENV GAMESERVER=xntserver
11+
12+
WORKDIR /app
13+
14+
## Auto install game server requirements
15+
RUN depshortname=$(curl --connect-timeout 10 -s https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/ubuntu-22.04.csv |awk -v shortname="xnt" -F, '$1==shortname {$1=""; print $0}') \
16+
&& if [ -n "${depshortname}" ]; then \
17+
echo "**** Install ${depshortname} ****" \
18+
&& apt-get update \
19+
&& apt-get install -y ${depshortname} \
20+
&& apt-get -y autoremove \
21+
&& apt-get clean \
22+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
23+
fi
24+
25+
HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/entrypoint-healthcheck.sh || exit 1
26+
27+
RUN date > /build-time.txt
28+
29+
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]

0 commit comments

Comments
 (0)