Follow these steps:
- Clone the repository in your development space:
$ git clone https://github.com/legorie/gcpcookbook.git
- Navigate to the directory where the mysite application is stored:
$ cd gcpcookbook/Chapter01/mysite-gke
- With your favorite editor, create a filename .env in the mysite folder:
PORT=8080 COOKIE_SECRET=<a very long string> MONGO_URI=mongodb://mongo/mysite
A custom port of 8080 is used for the KeystoneJS application. This port will be mapped to port 80 later in the Kubernetes service configuration. Similarly, mongo will be the name of the load-balanced MongoDB service that will be created later.
- The Dockerfile in the folder is used to create the application's Docker image. ...