Skip to content

Commit 7400a88

Browse files
authored
Merge pull request #414 from percona/ps-9520
PS-9520 Redo the quickstart to use variables - 8.0
2 parents e7a2e9e + 99e16e6 commit 7400a88

File tree

4 files changed

+26
-23
lines changed

4 files changed

+26
-23
lines changed

docs/quickstart-apt.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@ The examles of the "expected output" depend on the operating system. The followi
336336
```{.text .no-copy}
337337
Welcome to the MySQL monitor. Commands end with ; or \g.
338338
Your MySQL connection id is 8
339-
Server version: 8.0.35-27 Percona Server (GPL), Release '27', Revision '2f8eeab2'$
339+
Server version: {{tag}} Percona Server (GPL), Release '27', Revision '2f8eeab2'$
340340
341-
Copyright (c) 2009-2023 Percona LLC and/or its affiliates
342-
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
341+
Copyright (c) 2009-{{year_tag}} Percona LLC and/or its affiliates
342+
Copyright (c) 2000, {{year_tag}}, Oracle and/or its affiliates.
343343
344344
Oracle is a registered trademark of Oracle Corporation and/or its
345345
affiliates. Other names may be trademarks of their respective

docs/quickstart-docker.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@ To use the "Docker run" command, specify the name or ID of the image you want to
2222
| `--name psmysql` | Provides a meaningful name to the container. If you do not use this option, Docker adds a random name. |
2323
| `-e MYSQL_ROOT_PASSWORD=secret` | Adds an environmental variable and changes the password from the default password. |
2424
| `--v myvol:/var/lib/mysql` | Mounts a host directory (myvol) as the container's data volume, ensuring persistent storage for the database between container lifecycles. |
25-
| `percona/percona-server:8.0.34` | The image with the tag (8.0.34) to specify a specific release. |
25+
| `percona/percona-server:{{tag}}` | The image with the tag ({{tag}}) to specify a specific release. |
2626

2727
You must provide at least one environment variable to access the database, such as `MYSQL_ROOT_PASSWORD`, `MYSQL_DATABASE`, `MYSQL_USER`, and `MYSQL_PASSWORD` or the instance refuses to initialize.
2828

2929
If needed, you can replace the `secret` password with a [stronger password](#security-measures).
3030

31-
For this document, we add the `8.0.34` tag. In Docker, a tag is a label assigned to an image and is used to maintain different versions of an image. If we did not add a tag, Docker uses `latest` as the default tag and downloads the latest image from [percona/percona-server on the Docker Hub].
31+
For this document, we add the `{{tag}}` tag. In Docker, a tag is a label assigned to an image and is used to maintain different versions of an image. If we did not add a tag, Docker uses `latest` as the default tag and downloads the latest image from [percona/percona-server on the Docker Hub].
3232

33-
To run the Docker ARM64 version of Percona Server for MySQL, use the `8.0.34-26 1-aarch64` tag instead of `8.0.34`.
33+
To run the Docker ARM64 version of Percona Server for MySQL, use the `{{arm_tag}}` tag instead of `{{tag}}`.
3434

3535
```{.bash data-prompt="$"}
3636
$ docker run -d -p 3306:3306 --name psmysql \
3737
-e MYSQL_ROOT_PASSWORD=secret \
3838
-v myvol:/var/lib/mysql \
39-
percona/percona-server:8.0.34-26 1-aarch64
39+
percona/percona-server:{{arm_tag}}
4040
```
4141

4242
??? example "Expected output"
4343

4444
```{.text .no-copy}
45-
Unable to find image 'percona/percona-server:8.0.34-26 1-aarch64' locally
46-
8.0.34-26 1-aarch64: Pulling from percona/percona-server
45+
Unable to find image 'percona/percona-server:{{arm_tag}}' locally
46+
{{arm_tag}}: Pulling from percona/percona-server
4747
d6f6a69cdebb: Pull complete
4848
4f8794caafba: Pull complete
4949
d80629460c71: Pull complete
5050
f550e519928f: Pull complete
5151
fb91f65fb039: Pull complete
5252
e8f7e0c2fbae: Pull complete
5353
Digest: sha256:4944f9b365e0dc88f41b3b704ff2a02d1459fd07763d7d1a444b263db8498e1f
54-
Status: Downloaded newer image for percona/percona-server:8.0.34-26 1-aarch64
54+
Status: Downloaded newer image for percona/percona-server:{{arm_tag}}
5555
01d4f6d188b609ff92158605f8528d640aa28ff5720efa0286b36f51d4bec11c
5656
```
5757

@@ -92,10 +92,10 @@ You should see the following result.
9292
```{.text .no-copy}
9393
Welcome to the MySQL monitor. Commands end with ; or \g.
9494
Your MySQL connection id is 8
95-
Server version: 8.0.34-26 Percona Server (GPL), Release 26, Revision 0fe62c85
95+
Server version: {{tag}} Percona Server (GPL), Release 26, Revision 0fe62c85
9696

97-
Copyright (c) 2009-2023 Percona LLC and/or its affiliates
98-
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
97+
Copyright (c) 2009-{{year_tag}} Percona LLC and/or its affiliates
98+
Copyright (c) 2000, {{year_tag}}, Oracle and/or its affiliates.
9999

100100
Oracle is a registered trademark of Oracle Corporation and/or its
101101
affiliates. Other names may be trademarks of their respective
@@ -328,7 +328,7 @@ The steps are as follows:
328328
Bye
329329
```
330330

331-
2. You may want to remove the docker container and the image if they are no longer needed or to free up disk space. To remove a docker container, use the command `docker rm` followed by `psmysql`, the container ID or name. To remove a docker image, use the command `docker rmi` followed by `percona/percona-server:8.0.34`, the image ID or name and the tag. If you are running the ARM64 version of Percona Server, edit the Docker command to use the `8.0.34-26.1-aarch64` tag with `docker image rmi percona/percona-server:8.0.34-26.1-aarch64`
331+
2. You may want to remove the docker container and the image if they are no longer needed or to free up disk space. To remove a docker container, use the command `docker rm` followed by `psmysql`, the container ID or name. To remove a docker image, use the command `docker rmi` followed by `percona/percona-server:{{tag}}`, the image ID or name and the tag. If you are running the ARM64 version of Percona Server, edit the Docker command to use the `{{arm_tag}}` tag with `docker image rmi percona/percona-server:{{arm_tag}}`
332332

333333
* An example of removing a Docker container.
334334

@@ -341,15 +341,15 @@ The steps are as follows:
341341
```{.text .no-copy}
342342
psmysql
343343
```
344-
* An example of removing a Docker image. If running the ARM64 version of Percona Server, edit the Docker command to use the `8.0.34-26.1-aarch64` tag. This edit changes the command to `docker image rmi percona/percona-server:8.0.34-26.1-aarch64`
344+
* An example of removing a Docker image. If running the ARM64 version of Percona Server, edit the Docker command to use the `{{arm_tag}}` tag. This edit changes the command to `docker image rmi percona/percona-server:{{arm_tag}}`
345345
```
346-
$ docker image rmi percona/percona-server:8.0.34
346+
$ docker image rmi percona/percona-server:{{tag}}
347347
```
348348

349349
??? example "Expected output"
350350

351351
```{.text .no-copy}
352-
Untagged: percona/percona-server:8.0.34
352+
Untagged: percona/percona-server:{{tag}}
353353
Untagged: percona/percona-server@sha256:4944f9b365e0dc88f41b3b704ff2a02d1459fd07763d7d1a444b263db8498e1f
354354
Deleted: sha256:b2588da614b1f382468fc9f44600863e324067a9cae57c204a30a2105d61d9d9
355355
Deleted: sha256:1ceaa6dc89e328281b426854a3b00509b5df13826a9618a09e819a830b752ebd

docs/quickstart-yum.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ The examles of the "expected output" depend on the operating system. The followi
154154
```{.text .no-copy}
155155
Welcome to the MySQL monitor. Commands end with ; or \g.
156156
Your MySQL connection id is 8
157-
Server version: 8.0.35-27 Percona Server (GPL), Release '27', Revision '2f8eeab2'$
157+
Server version: {{tag}} Percona Server (GPL), Release '27', Revision '2f8eeab2'$
158158
159-
Copyright (c) 2009-2023 Percona LLC and/or its affiliates
160-
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
159+
Copyright (c) 2009-{{year_tag}} Percona LLC and/or its affiliates
160+
Copyright (c) 2000, {{year_tag}}, Oracle and/or its affiliates.
161161
162162
Oracle is a registered trademark of Oracle Corporation and/or its
163163
affiliates. Other names may be trademarks of their respective
@@ -205,10 +205,10 @@ The examles of the "expected output" depend on the operating system. The followi
205205
```{.text .no-copy}
206206
Welcome to the MySQL monitor. Commands end with ; or \g.
207207
Your MySQL connection id is 8
208-
Server version: 8.0.35-27 Percona Server (GPL), Release '27', Revision '2f8eeab2'$
208+
Server version: {{tag}} Percona Server (GPL), Release '27', Revision '2f8eeab2'$
209209
210-
Copyright (c) 2009-2023 Percona LLC and/or its affiliates
211-
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
210+
Copyright (c) 2009-{{year_tag}} Percona LLC and/or its affiliates
211+
Copyright (c) 2000, {{year_tag}}, Oracle and/or its affiliates.
212212
213213
Oracle is a registered trademark of Oracle Corporation and/or its
214214
affiliates. Other names may be trademarks of their respective

variables.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ version: '8.0'
55
release_date: '2024-10-08'
66
title_date: '2024-10-08'
77
pro_release: '8.0.37-29'
8+
tag: '8.0.39'
9+
arm_tag: '8.0.39-aarch64'
10+
year_tag: '2024'

0 commit comments

Comments
 (0)