Compare commits
2 Commits
master
...
add_zandro
Author | SHA1 | Date | |
---|---|---|---|
![]() |
984ebc2edb | ||
![]() |
0178f44ac9 |
1
.github/workflows/games.yml
vendored
1
.github/workflows/games.yml
vendored
@@ -25,6 +25,7 @@ jobs:
|
|||||||
- source
|
- source
|
||||||
- valheim
|
- valheim
|
||||||
- thebattleforwesnoth
|
- thebattleforwesnoth
|
||||||
|
- zandronum
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@@ -146,6 +146,8 @@ is tagged correctly.
|
|||||||
* `ghcr.io/parkervcp/games:thebattleforwesnoth`
|
* `ghcr.io/parkervcp/games:thebattleforwesnoth`
|
||||||
* [`valheim`](/games/valheim)
|
* [`valheim`](/games/valheim)
|
||||||
* `ghcr.io/parkervcp/games:valheim`
|
* `ghcr.io/parkervcp/games:valheim`
|
||||||
|
* [`zandronum`](/games/zandronum)
|
||||||
|
* `ghcr.io/parkervcp/games:zandronum`
|
||||||
|
|
||||||
### [Golang](/go)
|
### [Golang](/go)
|
||||||
|
|
||||||
|
33
games/zandronum/Dockerfile
Normal file
33
games/zandronum/Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt upgrade -y && \
|
||||||
|
apt install -y \
|
||||||
|
tini \
|
||||||
|
wget \
|
||||||
|
libsdl1.2debian \
|
||||||
|
libsdl2-2.0-0
|
||||||
|
|
||||||
|
RUN wget https://snapshot.debian.org/archive/debian/20190501T215844Z/pool/main/g/glibc/multiarch-support_2.28-10_amd64.deb && \
|
||||||
|
wget https://snapshot.debian.org/archive/debian/20141009T042436Z/pool/main/libj/libjpeg8/libjpeg8_8d1-2_amd64.deb && \
|
||||||
|
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \
|
||||||
|
apt install -y ./libjpeg8_8d1-2_amd64.deb ./multiarch-support_2.28-10_amd64.deb ./libssl1.1_1.1.0g-2ubuntu4_amd64.deb
|
||||||
|
|
||||||
|
## add container user
|
||||||
|
RUN useradd -m -d /home/container -s /bin/bash container
|
||||||
|
|
||||||
|
# Set up user and working directory
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
# Set the stop signal
|
||||||
|
STOPSIGNAL SIGINT
|
||||||
|
|
||||||
|
# Copy and set up the entrypoint script
|
||||||
|
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
# Define entrypoint and command
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||||
|
CMD ["/entrypoint.sh"]
|
13
games/zandronum/entrypoint.sh
Normal file
13
games/zandronum/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /home/container
|
||||||
|
|
||||||
|
# Make internal Docker IP address available to processes.
|
||||||
|
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||||
|
export INTERNAL_IP
|
||||||
|
|
||||||
|
# Replace Startup Variables
|
||||||
|
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
|
||||||
|
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||||
|
|
||||||
|
# Run the Server
|
||||||
|
eval ${MODIFIED_STARTUP}
|
Reference in New Issue
Block a user