docker repo for screeps (WIP will be splitted up)
scitor 35a618934f fixed formatting 1 year ago
Dockerfile docker create 1 year ago
README.md fixed formatting 1 year ago
create.sh docker create 1 year ago
docker-entry.sh docker create 1 year ago
mongod docker create 1 year ago
screeps-server docker create 1 year ago
stop.sh docker create 1 year ago

README.md

screeps docker with mongodb & redis

prerequisites

/var/screeps has to contain 3 folders:

  • mongodb
  • redis
  • screeps

After the container has been created, one has to check the passwd for the exact ids, usually they are as follows:

drwxr-xr-x 1  106 65534 746 Mar  3 14:57 mongodb
drwxr-xr-x 1  107   109   0 Mar  3 13:11 redis
drwxr-xr-x 1 1000  1000 188 Mar  3 14:58 screeps

YMMV

NOTE: This is not a 'swarmable' container, it's meant for being created and used afterwards. docker is used here only to package and isolate the system from the host, and to simplify deploy

build

docker build -t screeps-db .

the image doesn't contain npm install screeps, thats done after the container is created

create

./create.sh

fist start

On the first start of the container screeps has to be installed (thats also the update strategy)

docker start -i screeps-db

installing screeps...

normal start

docker start screeps-db

game cli

docker exec -it screeps-db screeps cli

bash console

docker exec -it screeps-db /bin/bash