Pac-Man
npm install
npm run start
npm run dev
The Dockerfile performs the following steps:
- It is based on Node.js LTS Version 6 (Boron).
- It then clones the Pac-Man game into the configured application directory.
- Exposes port 8080 for the web server.
- Starts the Node.js application using
npm start
.
To build the image run:
cd docker
docker build -t <registry>/<user>/pacman-nodejs-app .
You can test the image by running:
docker run -p 8000:8080 <registry>/<user>/pacman-nodejs-app
And going to http://localhost:8000/
to see if you get the Pac-Man game.
Once you're satisfied you can push the image to the container registry.
docker push <registry>/<user>/pacman-nodejs-app
s2i build . registry.redhat.io/ubi8/nodejs-16-minimal pacman --as-dockerfile Dockerfile
podman build -t pacman:$(date +%Y%m) .
podman tag localhost/pacman:$(date +%Y%m) quay.io/dbewley/pacman:$(date +%Y%m)
podman push quay.io/dbewley/pacman:$(date +%Y%m)
podman tag localhost/pacman:$(date +%Y%m) quay.io/dbewley/pacman:latest
podman push quay.io/dbewley/pacman:latest
See https://github.com/dlbewley/demo-pacman/blob/demo/overlays/openshift/kustomization.yaml