Compare commits

...

30 Commits

Author SHA1 Message Date
Michael (Parker) Parker
e380ebb32c
Merge pull request #65 from Kurounin/patch-1
Add tzdata dependency for correct timezone
2020-11-29 15:36:16 -05:00
Kurounin
2718bd5816
Add tzdata dependency for correct timezone
Add tzdata dependency so correct timezone can be used inside the container
2020-11-27 08:08:21 +02:00
Dane Everitt
0ee1929d1b
Merge pull request #37 from Derpyhsi/source
Added libssl1.0.0:i386 package
2019-01-12 17:58:36 -08:00
Derpyhsi
b666097694
Added libssl1.0.0:i386 package
Added libssl1.0.0:i386 to fix Sven Co-Op not running.
2019-01-12 19:06:43 -06:00
Dane Everitt
8e914bcd57
Merge pull request #29 from parkervcp/source
Update Source Image
2018-10-28 20:12:24 -07:00
Michael (Parker) Parker
2daa557219
Merge branch 'source' into source 2018-10-28 21:27:55 -04:00
Dane Everitt
7064003918
Merge pull request #19 from ShaneMcC/source-beta
Support for beta branches in steam.
2018-10-28 12:32:52 -07:00
Michael (Parker) Parker
7537c277f4 adding netcat
This is a test build really.
2018-10-06 20:48:12 -04:00
Michael (Parker) Parker
47c5cd8ede Merge remote-tracking branch 'origin/source' into source 2018-10-06 16:02:39 -04:00
Michael (Parker) Parker
f0990c07d7 adding requirements
Don't Starve requires a few more deps.
2018-10-06 16:02:26 -04:00
Michael (Parker) Parker
64ddf27920
Update entrypoint.sh 2018-08-18 22:17:39 -04:00
Michael (Parker) Parker
e6055a785e
Merge pull request #7 from Exonical/source
Fix Maintainer Deprecation
2018-07-13 06:37:20 -04:00
Unknown
15323e496f Fix Maintainer Deprecation 2018-07-13 04:19:16 -04:00
Unknown
5fc42b8f7b Fix Maintainer Deprecation 2018-07-13 04:16:41 -04:00
Michael (Parker) Parker
ab0b657680 adding net-tools
need netstat for troubleshooting
2018-07-06 19:00:20 -04:00
Michael (Parker) Parker
855673530a 7 days to die fix
This is dumb...
2018-07-06 13:34:48 -04:00
Shane Mc Cormack
56ec9f5c1a Support for beta branches in steam. 2018-02-25 21:44:40 +00:00
Michael (Parker) Parker
3b41456a51 Changes for openttd (#17) 2018-02-19 14:13:42 -06:00
Michael (Parker) Parker
6c3cc3c64e Changes for openttd 2018-02-19 14:20:15 -05:00
Dane Everitt
9bc09ae449
Add GDB to container to improve core dump support. 2018-01-21 19:43:31 -06:00
Dane Everitt
c76f7e41f6
Remove sleep 2018-01-06 15:15:22 -06:00
Dane Everitt
ad28186972
Merge pull request #10 from tenten8401/patch-1
Fix stupid logic
2017-11-18 22:01:38 -05:00
tenten8401
7cd539d2b7
Fix stupid logic
Turns out it was only running if SRCDS_APPID was zero. Erhm.
2017-11-18 21:57:45 -05:00
Dane Everitt
76707d563c
Merge pull request #9 from tenten8401/source
Allow Source autoupdating
2017-11-18 16:31:13 -05:00
Unknown
79d9c64038 Allow Source autoupdating 2017-11-05 21:42:29 -05:00
Dane Everitt
7176507514 Merge pull request #6 from jdlovins/source
add missing package
2017-10-20 08:05:50 -04:00
jdlovins
fc51b6ab88 add missing package
Added iproute2 package to fix ip command not found
2017-10-18 02:12:02 -04:00
Dane Everitt
8482982ee1
quciker source booting 2017-10-09 23:05:14 -05:00
Dane Everitt
1ba1130a28
add support for internal IP access
ref Pterodactyl/Panel#613
2017-10-09 23:02:06 -05:00
Dane Everitt
b95b8af243
Add generic source engine Dockerfile 2017-03-18 14:18:09 -04:00
3 changed files with 49 additions and 1 deletions

23
Dockerfile Normal file
View 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"]

View File

@ -1,2 +1,2 @@
# Containers # 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
View 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}