Pac-Man
- WebApp: NodeJS Boron (v6.9 - v6.17)
- Database: MongoDB 3.4
- Install locally or Docker, reference MongoDB's documentation
- MongoDB's hostname: MONGO_SERVICE_HOST
- MongoDB's port: MY_MONGO_PORT
- Other configurations, reference config.js in this repo
npm install
npm run start
npm run dev
*This section is for reference only, familiarity with Docker is required
The Dockerfile performs the following steps:
- It is based on Node.js Version 6 (Boron).
- It then copies 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:
docker build -t <registry>/<user>/pacman-nodejs-app -f ./docker/Dockerfile .
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 . centos/nodejs-6-centos7 pacman