Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e380ebb32c | ||
|
|
2718bd5816 | ||
|
|
0ee1929d1b | ||
|
|
b666097694 | ||
|
|
8e914bcd57 | ||
|
|
2daa557219 | ||
|
|
7064003918 | ||
|
|
7537c277f4 | ||
|
|
47c5cd8ede | ||
|
|
f0990c07d7 | ||
|
|
64ddf27920 | ||
|
|
e6055a785e | ||
|
|
15323e496f | ||
|
|
5fc42b8f7b | ||
|
|
ab0b657680 | ||
|
|
855673530a | ||
|
|
56ec9f5c1a | ||
|
|
3b41456a51 | ||
|
|
6c3cc3c64e | ||
|
|
9bc09ae449 | ||
|
|
c76f7e41f6 | ||
|
|
ad28186972 | ||
|
|
7cd539d2b7 | ||
|
|
76707d563c | ||
|
|
79d9c64038 | ||
|
|
7176507514 | ||
|
|
fc51b6ab88 | ||
|
|
8482982ee1 | ||
|
|
1ba1130a28 | ||
|
|
b95b8af243 |
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# ----------------------------------
|
||||
# Pterodactyl Core Dockerfile
|
||||
# Environment: Source Engine
|
||||
# Minimum Panel Version: 0.6.0
|
||||
# ----------------------------------
|
||||
FROM ubuntu:18.04
|
||||
|
||||
LABEL author="Pterodactyl Software" maintainer="support@pterodactyl.io"
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
# Install Dependencies
|
||||
RUN dpkg --add-architecture i386 \
|
||||
&& apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get install -y tar curl gcc g++ lib32gcc1 libgcc1 libcurl4-gnutls-dev:i386 libssl1.0.0:i386 libcurl4:i386 lib32tinfo5 libtinfo5:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 iproute2 gdb libsdl1.2debian libfontconfig telnet net-tools netcat tzdata \
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV HOME /home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
# Containers
|
||||
Generic docker containers designed to work with Pterodactyl Panel and its daemon.
|
||||
Generic docker containers designed to run source engine games.
|
||||
|
|
|
|||
25
entrypoint.sh
Normal file
25
entrypoint.sh
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
cd /home/container
|
||||
sleep 1
|
||||
# Make internal Docker IP address available to processes.
|
||||
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||
|
||||
# Update Source Server
|
||||
if [ ! -z ${SRCDS_APPID} ]; then
|
||||
if [ ! -z ${SRCDS_BETAID} ]; then
|
||||
if [ ! -z ${SRCDS_BETAPASS} ]; then
|
||||
./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} -betapassword ${SRCDS_BETAPASS} +quit
|
||||
else
|
||||
./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} +quit
|
||||
fi
|
||||
else
|
||||
./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} +quit
|
||||
fi
|
||||
fi
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
||||
Loading…
Reference in New Issue
Block a user