Git Product home page Git Product logo

docker-tf2-server's Introduction

Team Fortress 2 + Docker

Details:

By default image is build with enabled autoupdate feature (take a look at tf.sh file). You can create new Dockerfile based on that image (FROM tf2 or FROM gonzih/tf2-server) and customize it with plugins, configs, CMD and ENTRYPOINT instructions.

# Run using image hosted on the docker hub

docker run -d -p 27015:27015/udp gonzih/tf2-server

# Build image and tag it as tf2
docker build -t tf2 github.com/Gonzih/docker-tf2-server

# Run image with default options (CMD in Dockerfile)
docker run -d -p 27015:27015/udp tf2

# Run image with custom options
docker run -d -p 27015:27015/udp tf2 +sv_pure 2 +map ctf_2fort.bsp +maxplayers 32

# Run image with custom config
docker run -d -p 27015:27015/udp -v ~/server.cfg:/home/tf2/hlserver/tf2/tf/cfg/server.cfg:ro tf2

docker-tf2-server's People

Contributors

gonzih avatar ren6767 avatar ruippeixotog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-tf2-server's Issues

Error! App '232250' state is 0x402 after update job.

https://twitter.com/Gonzih/status/731009199224836096

 Update state (0x61) downloading, progress: 3.93 (233774822 / 5953327306)
 Update state (0x61) downloading, progress: 3.93 (233774822 / 5953327306)
 Update state (0x61) downloading, progress: 3.93 (233774822 / 5953327306)
 Update state (0x61) downloading, progress: 3.93 (233774822 / 5953327306)
 Update state (0x61) downloading, progress: 3.93 (233774822 / 5953327306)
Error! App '232250' state is 0x402 after update job.
quit
 ---> cba84010045c
Removing intermediate container 396df713b7f9
Step 20 : EXPOSE 27015/udp
 ---> Running in c91082458d41
 ---> 1d91428026dd
Removing intermediate container c91082458d41
Step 21 : WORKDIR /home/$USER/hlserver
 ---> Running in 4b45c12c6857
 ---> 26ec05feb73e
Removing intermediate container 4b45c12c6857
Step 22 : ENTRYPOINT ./tf.sh
 ---> Running in 352ef793aa85
 ---> a07735bbdcb4
Removing intermediate container 352ef793aa85
Step 23 : CMD +sv_pure 1 +mapcycle mapcycle_quickplay_payload.txt +map pl_badwater +maxplayers 24
 ---> Running in 59a750c8862c
 ---> 6b8344ea8df2
Removing intermediate container 59a750c8862c
Successfully built 6b8344ea8df2
nuc:~/tmp/docker-tf2-server$

I think the problem here is that there is some download issue and I basically have an incomplete image.

Docker should ideally be able to detect the failure and retry maybe?

Not sure what the correct approach is here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.