This release is a pre-release and may not be stable for production use.
Docker Game Servers
Configuration
- Install Docker: you can find the instructions for installing Docker on the official website.
- Ensure you have Python 3.x on your system by running
python --version.
Running a Game Server
- Install this package
$ pip install docker-games
- Create your server's configuration in a new Python file
- Enjoy!
Minecraft
from docker_games import Minecraft
minecraft = Minecraft('creepers_go_boom', '2GB', '/home/stefano/mc_data')
minecraft.add_ports(25565, 25565)
minecraft.accept_license() # <-- accept Minecraft's EULA
minecraft.online_mode() # <-- server checks connecting players against Minecraft account database
minecraft.start()
Docker image: https://hub.docker.com/r/itzg/minecraft-server
Factorio
from docker_games import Factorio
factorio = Factorio('flying_robots', '/home/stefano/factorio_data')
factorio.add_ports(34197, '34197/udp')
factorio.add_ports(27015, '27015/tcp')
factorio.start()
Docker image: https://hub.docker.com/r/factoriotools/factorio
TeamSpeak
from docker_games import TeamSpeak
teamspeak = TeamSpeak('tsserver', '/tmp/ts_data')
teamspeak.add_ports(9987, '9987/udp')
teamspeak.add_ports(10011, 10011)
teamspeak.add_ports(30033, 30033)
teamspeak.accept_license() # <-- accept TeamSpeak's license
teamspeak.start()
Docker image: https://hub.docker.com/_/teamspeak
Contributing
Contributions are very welcome!
If you want to improve this project, or add more server, fork the repo and submit a pull request.
Metadata
Release files for docker-games 1.0.0a5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docker-games-1.0.0a5.tar.gz | 9.2 kB | Without provenance | Details for docker-games-1.0.0a5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docker_games-1.0.0a5-py3-none-any.whl | Python 3 | none | any | Details for docker_games-1.0.0a5-py3-none-any.whl |
Total release size: 24.8 kB
Release files / docker-games-1.0.0a5.tar.gz
| Download URL | docker-games-1.0.0a5.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b0563d12f2e64d433624a5ebbdc0a46ee672f6ac731f0aa4668c70cd36a7177
|
|
BLAKE2b-256 checksum How to use checksums |
86514a5c57bd336e911489bb43760d30eebf369a39138c445e5fcb0115f6325e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.8.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / docker_games-1.0.0a5-py3-none-any.whl
| Download URL | docker_games-1.0.0a5-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9908275764dce0cb1c7c3ea343837a6f8557510461e4347314bd4eb701b3a40
|
|
BLAKE2b-256 checksum How to use checksums |
88d8c722083040c6016265f17e0bd480c4066ad4e781f509c9c4a26f98b67de4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.8.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for docker-games 1.0.0a5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.