From fed538692e1e0e70210fb8b6720ad1bb8b88cf59 Mon Sep 17 00:00:00 2001 From: Manjunath A Kumatagi Date: Wed, 16 Aug 2017 15:27:21 +0530 Subject: [PATCH] Add docker image building instructions --- guestbook/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/guestbook/README.md b/guestbook/README.md index 70777127..ca0e265f 100644 --- a/guestbook/README.md +++ b/guestbook/README.md @@ -40,6 +40,30 @@ Download the following configuration files: {% capture lessoncontent %} +## Building the Docker images + +```console +$ docker build -t gcr.io/google-samples/gb-frontend:v5 php-redis + +$ docker build -t gcr.io/google-samples/gb-redisslave:v2 redis-slave +``` + +Building Multi-architecture docker images + +```console +$ make -C php-redis + +$ make -C redis-slave +``` + +Push: + +```console +$ make -C php-redis all-push + +$ make -C redis-slave all-push +``` + ## Start up the Redis Master The guestbook application uses Redis to store its data. It writes its data to a Redis master instance and reads data from multiple Redis slave instances.