Skip to content

A small demo app that can be containerized and deployed to Google Compute Engine.

Notifications You must be signed in to change notification settings

stew-r/gce-demo-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

A small demo app that can be containerized and deployed to Google Compute Engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published