Fork of treyyoder/quakejs-docker. Fixes few issues in source container, assets are now self hosted.
Includes a CDK deployment to host local server with ip restriction in AWS ECS
docker run -d --name quakejs -e HTTP_PORT=8080 -p 8080:80 -p 27960:27960 federicobarera2/quakejs:latest
Navigate to http://localhost:8080 or network ip
Perform aws cli login
npm i
sh ./deploy.sh [--profile]
After the deploy the retrieve_ip.sh
script will retrive the public ip of the fargate task
cdk.json configuration
name | desc |
---|---|
whiteListedIps | array of ips allowed to connect |
usePrebuildImage | leave blank to build from local repository (eg, change in server.cfg) |
useCapacity | FARGATE or FARGATE_SPOT |
cpu | CPU requested for fargate task |
memory | memory requested for fargate task |
Refer to quake3world for instructions on its usage.
- Dockerfile modified to make build work again
echo "127.0.0.1 content.quakejs.com" >> /etc/hosts
moved to the./entrypoint.sh
as- Not working anymore during build: https://stackoverflow.com/questions/38302867/how-to-update-etc-hosts-file-in-docker-image-during-docker-build
- Runtime
add-host
not available in fargate
- Added cdk fargate deployment model
- Deployed new docker image based from
treyyoder
latest with:- No need for -e
SERVER
- Manifest and content pulled from within image
- No need for -e
Thanks to treyyoder with his fork of quakejs to which this was derived, aswell as his thorough documentation