Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 999 Bytes

README.md

File metadata and controls

62 lines (41 loc) · 999 Bytes

GCE Demo Web App

This is a small demo app that can be containerized and deployed to Google Compute Engine.

Run the app locally

Get the repo:

git clone https://github.com/stew-r/gce-demo-web-app.git`

Navigate to the directory:

cd gce-demo-web-app

Run the app:

sh cmd/run.sh

Send a request to the app:

curl localhost:80

Build and the host image on Docker Hub

Build the image:

docker build -t gce-demo-web-app-image .

Get the image ID:

docker images

Tag the image:

docker tag <image_id> stewblr/gce-demo-web-app-image:latest

Push the image:

docker push stewblr/gce-demo-web-app-image:latest

Create a GCE VM instance from the image

Follow these instructions and, under Container image, specify registry.hub.docker.com/stewblr/gce-demo-web-app-image:latest .