A generic Node Express container application for creating APIs to be used in demonstrations.
-
Use the Dockerfile to build it as a Docker container.
$ docker build . -t node-api-container .
-
Alternatively, retrieve the container from DockerHub: webleonard/node-api-container
-
By the way, it's continuously built and published to DockerHub by Wercker using this wercker.yaml configuration file. Note, Wercker can also push images to other container registries, such as Google or Amazon.
-
Deploy to Kubernetes:
$ kubectl create -f kube-pod.yaml $ kubectl create -f kube-service.yaml
-
With this manifest.json, it will deploy to Oracle Application Container Cloud.
-
Because of this app.yaml file, the code an also deploy to Google App Engine.