This is a simple static Snake game built with HTML, CSS, and JavaScript. It is containerized with Docker and ready for deployment on a ROSA (OpenShift) cluster using oc commands.
- Classic Snake gameplay
- Responsive design
- Easy to deploy on OpenShift
docker build -t <your-image-name>:latest .
docker tag <your-image-name>:latest <your-registry>/<your-image-name>:latest
docker push <your-registry>/<your-image-name>:latest
Edit openshift-deployment.yaml and set the correct image name under spec.template.spec.containers.image.
oc apply -f openshift-deployment.yaml
After deployment, get the route URL:
oc get route snake-game
Open the URL in your browser to play!
index.html- Main HTML filestyle.css- Game stylingsnake.js- Game logicDockerfile- Container build fileopenshift-deployment.yaml- OpenShift deployment, service, and route
MIT