Skip to content

Commit 702269d

Browse files
Docker on Almalinux 10 tuto
1 parent bd4eacc commit 702269d

File tree

2 files changed

+75
-27
lines changed

2 files changed

+75
-27
lines changed

docs/docs/operation/docker-tutorial.mdx

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Docker tutorial
66
Deploying Simplicité with Docker images tutorial
77
================================================
88

9-
For this tutorial we use an out-of-the-box **AlmaLinux/RockyLinux** (or legacy CentOS 7 or Debian) host but this can be transposed to any other host OS.
9+
For this tutorial we use an out-of-the-box **AlmaLinux 8, 9 or 10** (or legacy CentOS 7 or Debian) host but this can be transposed to any other host OS.
1010

1111
By following the steps below you should have an easily-maintainable **production-grade** deployment of Simplicité up and running **in a few minutes**.
1212

@@ -21,7 +21,7 @@ import Tabs from '@theme/Tabs';
2121
import TabItem from '@theme/TabItem';
2222

2323
<Tabs>
24-
<TabItem value="almalinux" label="AlmaLinux/RockyLinux/CentOS 8+">
24+
<TabItem value="almalinux" label="AlmaLinux 8, 9 or 10">
2525
```shell
2626
sudo dnf -y update && sudo dnf clean all
2727
sudo reboot
@@ -49,7 +49,7 @@ filters the access to your host.
4949
Install and enable firewall :
5050

5151
<Tabs>
52-
<TabItem value="almalinux" label="AlmaLinux/RockyLinux/CentOS 8+">
52+
<TabItem value="almalinux" label="AlmaLinux 8, 9 or 10">
5353
```shell
5454
sudo dnf -y install firewalld && sudo dnf clean all
5555
sudo systemctl enable firewalld
@@ -87,7 +87,7 @@ sudo firewall-cmd --list-all
8787
This step is not required but provides various useful tools and aliases on your host.
8888

8989
<Tabs>
90-
<TabItem value="almalinux" label="AlmaLinux/RockyLinux/CentOS 8+">
90+
<TabItem value="almalinux" label="AlmaLinux 8, 9 or 10">
9191
```shell
9292
sudo dnf -y install vim-enhanced git wget curl zip unzip && sudo dnf clean all
9393
sudo dnf -y install epel-release && sudo dnf -y install certbot htop && sudo dnf clean all
@@ -104,7 +104,7 @@ sudo yum -y install epel-release && sudo yum -y install certbot htop && sudo yum
104104
Add these useful aliases to `~/.bashrc`:
105105

106106
<Tabs>
107-
<TabItem value="almalinux" label="AlmaLinux/RockyLinux/CentOS 8+">
107+
<TabItem value="almalinux" label="AlmaLinux 8, 9 or 10">
108108
```shell
109109
cat << EOF >> .bashrc
110110
alias vi=vim
@@ -147,7 +147,7 @@ EOF
147147
This step is not required if you don't plan to connect to the deployed databases from your host.
148148

149149
<Tabs>
150-
<TabItem value="almalinux" label="AlmaLinux/RockyLinux/CentOS 8+">
150+
<TabItem value="almalinux" label="AlmaLinux 8, 9 or 10">
151151
```shell
152152
sudo dnf -y install mariadb postgresql && sudo dnf clean all
153153
```
@@ -167,7 +167,27 @@ sudo apt install mariadb-client postgresql-client
167167
### Docker
168168

169169
<Tabs>
170-
<TabItem value="almalinux" label="AlmaLinux/RockyLinux/CentOS 8+">
170+
<TabItem value="almalinux10" label="AlmaLinux 10">
171+
172+
:::note
173+
174+
Here we install the distribution's Podman
175+
176+
:::
177+
178+
```shell
179+
sudo dnf -y install podman-docker.noarch
180+
sudo docker --version
181+
```
182+
</TabItem>
183+
<TabItem value="almalinux9" label="AlmaLinux 8 or 9">
184+
185+
:::note
186+
187+
Here we install Docker CE (Community edition)
188+
189+
:::
190+
171191
```shell
172192
sudo dnf -y install 'dnf-command(config-manager)'
173193
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
@@ -178,6 +198,13 @@ sudo systemctl start docker
178198
```
179199
</TabItem>
180200
<TabItem value="centos7" label="CentOS 7">
201+
202+
:::note
203+
204+
Here we install the distribution's Docker
205+
206+
:::
207+
181208
```shell
182209
sudo yum -y install docker && sudo yum clean all
183210
sudo systemctl enable docker
@@ -196,10 +223,13 @@ sudo systemctl status docker
196223
</TabItem>
197224
</Tabs>
198225

199-
> **Note**:
200-
> By default Docker is allowed to change the firewall rules to open exposed ports.
201-
> To disable this default behavior you need to edit `/usr/lib/systemd/system/docker.service` cartridge file
202-
> and add `--iptables=false` (or similar if using `nftables`) to the `ExecStart` command.
226+
:::tip
227+
228+
By default Docker is allowed to change the firewall rules to open exposed ports.
229+
To disable this behavior you need to edit `/usr/lib/systemd/system/docker.service` cartridge file
230+
And add `--iptables=false` (or similar if using `nftables`) to the `ExecStart` command.
231+
232+
:::
203233

204234
Sign-in to **our private Docker registry**:
205235

@@ -221,7 +251,12 @@ Where `<tag>` is one of the available tags. E.g. `6-latest` = `6` or `5-latest`
221251
### Docker compose
222252

223253
<Tabs>
224-
<TabItem value="almalinux" label="AlmaLinux/RockyLinux/CentOS 8+ and Debian">
254+
<TabItem value="almalinux10" label="AlmaLinux 10">
255+
```shell
256+
sudo dnf -y install podman-compose.noarch
257+
```
258+
</TabItem>
259+
<TabItem value="almalinux9" label="AlmaLinux 8 or 9 and Debian">
225260
The compose plugin is installed by default.
226261
</TabItem>
227262
<TabItem value="centos7" label="CentOS 7">

docs/docs/operation/tomcat-operation.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ When required the involved services may need to be stopped in the following orde
2929

3030
Then clean up the Tomcat work folders (and optionally the technical logs folder):
3131

32-
rm -fr $TOMCAT_ROOT/work/Catalina $TOMCAT_ROOT/conf/Catalina
33-
rm -fr $TOMCAT_ROOT/logs/*
32+
```shell
33+
rm -fr $TOMCAT_ROOT/work/Catalina $TOMCAT_ROOT/conf/Catalina
34+
rm -fr $TOMCAT_ROOT/logs/*
35+
```
3436

3537
Then the services are to be restarted in the following order:
3638

@@ -82,10 +84,10 @@ For each logging event, an event **code** is associated, and depending on the co
8284

8385
- The `DEBUG` log level is convenient for investigating an issue but **must not** be set by default.
8486
- The applicative `ERROR` logs (containing the `SIMPLICITE` keyword) usually correspond to normal application
85-
errors (the only error logs that requires investigation are the one that correspond to a database problem)
87+
errors (the only error logs that requires investigation are the one that correspond to a database problem)
8688
- The other error logs needs further investigation in any case.
8789
- Any log at level `FATAL` generally requires services restart with prior technical investigation
88-
(typically if the error correspond to a memory or file system issue requires actions at OS level)
90+
(typically if the error correspond to a memory or file system issue requires actions at OS level)
8991

9092
Housekeeping
9193
------------
@@ -161,8 +163,8 @@ For a given application a comprehensive save consist in:
161163

162164
- Saving the database content using an usual database dump tool: `mysqldump`for MySQL or `pgdump`for postgreSQL
163165
- Saving the documents data directory content located in `$TOMCAT_ROOT/data/simplicite/<my application>/dbdoc`
164-
(classical packaging) or `$TOMCAT_ROOT/webapps/ROOT/WEB-INF/dbdoc` (instances packaging) or in a custom location depending on your installation)
165-
using an usual archive tool: `zip` or `tar`
166+
(classical packaging) or `$TOMCAT_ROOT/webapps/ROOT/WEB-INF/dbdoc` (instances packaging) or in a custom location depending on your installation
167+
using an usual archive tool: `zip` or `tar`
166168

167169
These two operations needs to be done exactly **at the same time** to avoid any data inconsistencies.
168170

@@ -193,7 +195,7 @@ The typical output for the ping is:
193195

194196
The typical output for the health check (in JSON format) is:
195197

196-
```json
198+
```text
197199
[Platform]
198200
Status=OK
199201
Version=<version, e.g. 5.2.19>
@@ -270,7 +272,8 @@ Date=2022-10-17 12:12:31
270272
ElapsedTime=230
271273
```
272274

273-
If both page/service does not return response or returns a HTTP status different from `200` or if the response value for `status` is not `OK`, something needs to be investigated/fixed.
275+
If both page/service does not return response or returns a HTTP status different from `200` or if the response value for `status` is not `OK`,
276+
something needs to be investigated/fixed.
274277

275278
System updates
276279
--------------
@@ -281,15 +284,21 @@ System updates **must** be applied regularly, especially in case of critical sec
281284

282285
On Linux CentOS, you can check if there are pending system upgrades packages by:
283286

284-
sudo dnfcheck-update
287+
```shell
288+
sudo dnfcheck-update
289+
```
285290

286291
You can then apply the updates by:
287292

288-
sudo dnf update
293+
```shell
294+
sudo dnf update
295+
```
289296

290297
You should then clean up update packages by:
291298

292-
sudo dnf clean all
299+
```shell
300+
sudo dnf clean all
301+
```
293302

294303
If there is an **JVM** update you must stop the running Tomcat instances prior to the update and restart them after the update.
295304

@@ -299,8 +308,10 @@ If there is a **kernel** update you must reboot the server after the update.
299308

300309
To clean up old kernels you can do:
301310

302-
sudo dnf install yum-utils
303-
sudo package-cleanup --oldkernels --count=2
311+
```shell
312+
sudo dnf install yum-utils
313+
sudo package-cleanup --oldkernels --count=2
314+
```
304315

305316
Tomcat updates
306317
--------------
@@ -312,9 +323,11 @@ The Tomcat server **must** be updated regularly, depending on the way it has bee
312323
Platform updates
313324
----------------
314325

315-
> **Note**: this chapter is not applicable when using our Docker images. When using such images the Simplicité platform is always up-to-date in the latest images.
326+
> **Note**: this chapter is not applicable when using our Docker images. When using such images the Simplicité
327+
> platform is always up-to-date in the latest images.
316328
317-
The Simplicité&reg; platform **must** be updated regularly, at least on its maintenance branch (see [versions](/versions/versioning.md)), depending on the way it has been installed the process may vary.
329+
The Simplicité&reg; platform **must** be updated regularly, at least on its maintenance branch (see [versions](/versions/versioning.md)),
330+
depending on the way it has been installed the process may vary.
318331

319332
Troubleshooting
320333
---------------

0 commit comments

Comments
 (0)