Skip to content

Commit fed5386

Browse files
committed
Add docker image building instructions
1 parent 5f48457 commit fed5386

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

guestbook/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,30 @@ Download the following configuration files:
4040

4141
{% capture lessoncontent %}
4242

43+
## Building the Docker images
44+
45+
```console
46+
$ docker build -t gcr.io/google-samples/gb-frontend:v5 php-redis
47+
48+
$ docker build -t gcr.io/google-samples/gb-redisslave:v2 redis-slave
49+
```
50+
51+
Building Multi-architecture docker images
52+
53+
```console
54+
$ make -C php-redis
55+
56+
$ make -C redis-slave
57+
```
58+
59+
Push:
60+
61+
```console
62+
$ make -C php-redis all-push
63+
64+
$ make -C redis-slave all-push
65+
```
66+
4367
## Start up the Redis Master
4468

4569
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.

0 commit comments

Comments
 (0)