Skip to content

Commit 952593d

Browse files
committed
Trialing a tabs approach for older versions
1 parent 043e3aa commit 952593d

7 files changed

+94
-12
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:::{tip}
2+
You can download and install another version of {{es}} {{version.stack.base | M }} by replacing {{version.stack}} with the version number you want. For example, you can replace {{version.stack}} with {{version.stack.base}}.
3+
:::

deploy-manage/deploy/self-managed/_snippets/wolfi.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ To use the Wolfi image, append `-wolfi` to the image tag in the Docker command.
44

55
For example:
66

7+
::::{tab-set}
8+
9+
:::{tab-item} Latest
710
```sh subs=true
811
docker pull docker.elastic.co/elasticsearch/elasticsearch-wolfi:{{version.stack}}
9-
```
12+
```
13+
:::
14+
15+
:::{tab-item} Specific version
16+
```sh subs=true
17+
docker pull docker.elastic.co/elasticsearch/elasticsearch-wolfi:<specific.version>
18+
```
19+
You can download and install a specific version of {{es}} {{version.stack.base | M }} by replacing `<specific.version>` with the version number you want. For example, you can replace `<specific.version>` with {{version.stack.base}}.
20+
:::
21+
22+
::::

deploy-manage/deploy/self-managed/install-elasticsearch-docker-basic.md

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,26 @@ Use Docker commands to start a single-node {{es}} cluster for development or tes
3434

3535
3. Pull the {{es}} Docker image.
3636

37+
::::{tab-set}
38+
39+
:::{tab-item} Latest
3740
```sh subs=true
3841
docker pull docker.elastic.co/elasticsearch/elasticsearch:{{version.stack}}
3942
```
43+
:::
44+
45+
:::{tab-item} Specific version
46+
Replace `<specific.version>` with the {{es}} version number you want. For example, you can replace `<specific.version>` with {{version.stack.base}}.
47+
```sh subs=true
48+
docker pull docker.elastic.co/elasticsearch/elasticsearch:<specific.version>
49+
```
50+
:::
4051

4152
4. Optional: Install [Cosign](https://docs.sigstore.dev/cosign/system_config/installation/) for your environment. Then use Cosign to verify the {{es}} image’s signature.
4253

54+
::::{tab-set}
55+
56+
:::{tab-item} Latest
4357
$$$docker-verify-signature$$$
4458

4559
```sh subs=true
@@ -56,9 +70,35 @@ Use Docker commands to start a single-node {{es}} cluster for development or tes
5670
- Existence of the claims in the transparency log was verified offline
5771
- The signatures were verified against the specified public key
5872
```
73+
:::
74+
75+
:::{tab-item} Specific version
76+
Replace `<specific.version>` with the {{es}} version number you want. For example, you can replace `<specific.version>` with {{version.stack.base}}.
77+
$$$docker-verify-signature$$$
78+
79+
```sh subs=true
80+
wget https://artifacts.elastic.co/cosign.pub
81+
cosign verify --key cosign.pub docker.elastic.co/elasticsearch/elasticsearch:<specific.version>
82+
```
83+
84+
The `cosign` command prints the check results and the signature payload in JSON format:
85+
86+
```sh subs=true
87+
Verification for docker.elastic.co/elasticsearch/elasticsearch:<specific.version> --
88+
The following checks were performed on each of these signatures:
89+
- The cosign claims were validated
90+
- Existence of the claims in the transparency log was verified offline
91+
- The signatures were verified against the specified public key
92+
```
93+
:::
94+
::::
95+
5996

6097
5. Start an {{es}} container.
6198

99+
::::::{tab-set}
100+
101+
:::::{tab-item} Latest
62102
```sh subs=true
63103
docker run --name es01 --net elastic -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:{{version.stack}}
64104
```
@@ -67,14 +107,34 @@ Use Docker commands to start a single-node {{es}} cluster for development or tes
67107
Use the `-m` flag to set a memory limit for the container. This removes the need to [manually set the JVM size](/deploy-manage/deploy/self-managed/install-elasticsearch-docker-prod.md#docker-set-heap-size).
68108
::::
69109

70-
71110
{{ml-cap}} features such as [semantic search with ELSER](/solutions/search/semantic-search/semantic-search-elser-ingest-pipelines.md) require a larger container with more than 1GB of memory. If you intend to use the {{ml}} capabilities, then start the container with this command:
72111

73112
```sh subs=true
74113
docker run --name es01 --net elastic -p 9200:9200 -it -m 6GB -e "xpack.ml.use_auto_machine_memory_percent=true" docker.elastic.co/elasticsearch/elasticsearch:{{version.stack}}
75114
```
76115

77116
The command prints the `elastic` user password and an enrollment token for {{kib}}.
117+
:::::
118+
119+
:::::{tab-item} Specific version
120+
Replace `<specific.version>` with the {{es}} version number you want. For example, you can replace `<specific.version>` with {{version.stack.base}}.
121+
```sh subs=true
122+
docker run --name es01 --net elastic -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:<specific.version>
123+
```
124+
125+
::::{tip}
126+
Use the `-m` flag to set a memory limit for the container. This removes the need to [manually set the JVM size](/deploy-manage/deploy/self-managed/install-elasticsearch-docker-prod.md#docker-set-heap-size).
127+
::::
128+
129+
{{ml-cap}} features such as [semantic search with ELSER](/solutions/search/semantic-search/semantic-search-elser-ingest-pipelines.md) require a larger container with more than 1GB of memory. If you intend to use the {{ml}} capabilities, then start the container with this command:
130+
131+
```sh subs=true
132+
docker run --name es01 --net elastic -p 9200:9200 -it -m 6GB -e "xpack.ml.use_auto_machine_memory_percent=true" docker.elastic.co/elasticsearch/elasticsearch:<specific.version>
133+
```
134+
135+
The command prints the `elastic` user password and an enrollment token for {{kib}}.
136+
:::::
137+
::::::
78138

79139
6. Copy the generated `elastic` password and enrollment token. These credentials are only shown when you start {{es}} for the first time. You can regenerate the credentials using the following commands.
80140

@@ -113,9 +173,20 @@ Use Docker commands to start a single-node {{es}} cluster for development or tes
113173

114174
2. Start a new {{es}} container. Include the enrollment token as an environment variable.
115175

176+
::::{tab-set}
177+
178+
:::{tab-item} Latest
116179
```sh subs=true
117180
docker run -e ENROLLMENT_TOKEN="<token>" --name es02 --net elastic -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:{{version.stack}}
118181
```
182+
:::
183+
:::{tab-item} Specific version
184+
Replace `<specific.version>` with the {{es}} version number you want. For example, you can replace `<specific.version>` with {{version.stack.base}}.
185+
```sh subs=true
186+
docker run -e ENROLLMENT_TOKEN="<token>" --name es02 --net elastic -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:<specific.version>
187+
```
188+
:::
189+
::::
119190

120191
3. Call the [cat nodes API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodes) to verify the node was added to the cluster.
121192

deploy-manage/deploy/self-managed/install-elasticsearch-from-archive-on-linux-macos.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ cd elasticsearch-{{version.stack}}/ <2>
5656
1. Compares the SHA of the downloaded `.tar.gz` archive and the published checksum, which should output `elasticsearch-<version>-linux-x86_64.tar.gz: OK`.
5757
2. This directory is known as `$ES_HOME`.
5858

59-
:::{tip}
60-
You can download and install another version of {{es}} {{version.stack.base | M }} by replacing {{version.stack}} with the version number you want. For example, you can replace {{version.stack}} with {{version.stack.base}}.
59+
:::{include} _snippets/tip-install-other-9-versions.md
6160
:::
6261

6362
### MacOS [install-macos]
@@ -88,8 +87,7 @@ xattr -d -r com.apple.quarantine <archive-or-directory>
8887
Alternatively, you can add a security override by following the instructions in the *If you want to open an app that hasn’t been notarized or is from an unidentified developer* section of [Safely open apps on your Mac](https://support.apple.com/en-us/HT202491).
8988
::::
9089

91-
:::{tip}
92-
You can download and install another version of {{es}} {{version.stack.base | M }} by replacing {{version.stack}} with the version number you want. For example, you can replace {{version.stack}} with {{version.stack.base}}.
90+
:::{include} _snippets/tip-install-other-9-versions.md
9391
:::
9492

9593
## Step 2: Enable automatic creation of system indices [targz-enable-indices]

deploy-manage/deploy/self-managed/install-elasticsearch-with-debian-package.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ sudo dpkg -i elasticsearch-{{version.stack}}-amd64.deb
110110

111111
1. Compares the SHA of the downloaded Debian package and the published checksum, which should output `elasticsearch-<version>-amd64.deb: OK`.
112112

113-
:::{tip}
114-
You can download and install another version of {{es}} {{version.stack.base | M }} by replacing {{version.stack}} with the version number you want. For example, you can replace {{version.stack}} with {{version.stack.base}}.
113+
:::{include} _snippets/tip-install-other-9-versions.md
115114
:::
116115

117116
## Step 3: Set up the node for connectivity

deploy-manage/deploy/self-managed/install-elasticsearch-with-rpm.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ sudo zypper modifyrepo --enable elasticsearch && \
9797
:::{include} _snippets/skip-set-kernel-params.md
9898
:::
9999

100-
:::{tip}
101-
You can download and install another version of {{es}} {{version.stack.base | M }} by replacing {{version.stack}} with the version number you want. For example, you can replace {{version.stack}} with {{version.stack.base}}.
100+
:::{include} _snippets/tip-install-other-9-versions.md
102101
:::
103102

104103
2. Copy the terminal output from the install command to a local file. In particular, you’ll need the password for the built-in `elastic` superuser account. The output also contains the commands to enable {{es}} to [run as a service](#running-systemd).

deploy-manage/deploy/self-managed/install-elasticsearch-with-zip-on-windows.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ Unzip it with your favorite unzip tool. This will create a folder called `elasti
5050
cd C:\Program Files\elasticsearch-{{version.stack}}
5151
```
5252

53-
:::{tip}
54-
You can download and install another version of {{es}} {{version.stack.base | M }} by replacing {{version.stack}} with the version number you want. For example, you can replace {{version.stack}} with {{version.stack.base}}.
53+
:::{include} _snippets/tip-install-other-9-versions.md
5554
:::
5655

5756
## Step 2: Enable automatic creation of system indices [windows-enable-indices]

0 commit comments

Comments
 (0)