Skip to content

Commit 144e3b1

Browse files
authored
guestbook: Move image build instructions out (#72)
This does not belong to the README.md which gets rendered at https://kubernetes.io/docs/tutorials/stateless-application/guestbook/. Moving these instructions to MAINTENANCE.md. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
1 parent 696898c commit 144e3b1

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

guestbook/MAINTENANCE.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Building the Docker images
2+
3+
```console
4+
$ docker build -t gcr.io/google-samples/gb-frontend:v5 php-redis
5+
6+
$ docker build -t gcr.io/google-samples/gb-redisslave:v2 redis-slave
7+
```
8+
9+
Building Multi-architecture docker images
10+
11+
```console
12+
$ make -C php-redis
13+
14+
$ make -C redis-slave
15+
```
16+
17+
Push:
18+
19+
```console
20+
$ make -C php-redis all-push
21+
22+
$ make -C redis-slave all-push
23+
```

guestbook/README.md

-24
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,6 @@ 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-
6743
## Start up the Redis Master
6844

6945
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)