This project includes a Dockerfile to create a website on which you can play pac-man (shareware).
Live-Demo: https://js-dos.f1nalboss.de/pac
There are two docker compose run configurations
Want to know how to setup a docker swarm? Read: https://blog.knulst.de/docker-swarm-just-create-and-use-it
export DOCKER_REGISTRY=YOUR_REGISTRY_HERE
export PRIMARY_DOMAIN=f1nalboss.de
docker-compose -f docker-compose.jsdos.yml build
docker-compose -f docker-compose.jsdos.yml push
export NODE_ID=PUT_IN_NODE_OF_HOST_WHERE_YOU_WANT_TO_DEPLOY
docker node update --label-add gitlab.certs-data=true $NODE_ID
docker stack deploy -c docker-compose.jsdos.yml jsdos
https://js-dos.PRIMARY_DOMAIN
docker-compose -f docker-compose.dev.yml up -d --build
-
download zip file and store within this directoy
-
adjust Dockerfile, add following files
COPY ZIP_OF_GAME .
COPY index.html NAME_OF_GAME.html
RUN sed -i s/GAME_ZIP/\"ZIP_OF_GAME\"/ NAME_OF_GAME.html
RUN sed -i s/GAME_ARGS/\"GAME_EXE_FOUND_IN_ZIP\"/ NAME_OF_GAME.html
- open website choose NAME_OF_GAME.html to start