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
5 changed files with 51 additions and 56 deletions

View File

@ -1,17 +0,0 @@
---
name: "\U0001F41B Bug Report"
about: Report an issue for an image
---
Please fill out the information bellow and remove from the line up
If you just submit a bug with no info I will close out your bug.
---------------
Panel Version: (version number)
Daemon Version: (version number)
Service: (minecraft/factorio/etc)
Docker Image:
Modified: (yes/no) (did you add or change things, this includes startup configs/install scripts/variables)
Errors that you are experiencing:

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,6 +1,6 @@
MIT License MIT License
Copyright (c) 2017-2018 Pterodactyl Software Copyright (c) 2017 Pterodactyl
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1,38 +1,2 @@
[![Logo Image](https://cdn.pterodactyl.io/logos/Banner%20Logo%20Black@2x.png)](https://pterodactyl.io) # Containers
Generic docker containers designed to run source engine games.
This repository contains generic [Docker](https://docker.com) images that are used by Pterodactyl Panel to run games. With the release of `v0.6.0` of our panel, we have moved to making the install process be a completely seperate part of the process, making it much easier to maintain a smaller set of Dockerfiles.
Our goal here is to maintain images that can run a wide variety of games in individual branches. For example, the [`java` branch](https://github.com/Pterodactyl/Containers/tree/java) is a standardized Docker container running on Alpine Linux that should support most all Minecraft based games, as well as java based games. We install all of the required dependencies that we ae aware of, but if you notice one missing, we welcome you to either raise an issue in here, or submit a PR to add it.
The `entrypoint.sh` files **should not do any application installing**, and exist solely to parse startup commands passed to the container, and then run them, with a pause at the beginning to allow the Daemon time to boot and attach to the container.
## Current Images
Every branch, except master, is a different image. For a current list of images, check the branch list [here](https://github.com/Pterodactyl/Containers/branches/active).
## Contributing
We welcome any contributions you might have. Please follow our formatting for Dockerfiles, which involves minimizing the number of layers, as well as the size of the container. If possible, please stick to Alpine Linux based images, however we do make use of `ubuntu:16.04` in the [`source` branch](https://github.com/Pterodactyl/Containers/tree/source) due to Source Engine limitations, and reducing the conflicts that might arise.
## License
```
MIT License
Copyright (c) 2017-2018 Pterodactyl Software
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

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}