You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/running_docker.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
> ⚠️ **Warning**
4
4
> This method is **not intended for production use**.
5
-
> It serves only as a **proof of concept (POC)** for testing Docker images as part of an existing pipeline.
5
+
> It serves only as a **proof of concept** for testing Docker images as part of an existing pipeline.
6
6
>
7
7
> Currently, it has been tested with the `alma9-flp-node` image running the *readout* component.
8
8
@@ -12,15 +12,16 @@
12
12
13
13
### 1. Manual Setup
14
14
15
-
Before running tasks in Docker, ensure that the host machine has **Docker** installed.
15
+
Before running tasks in Docker, ensure that the host machine has Docker installed.
16
16
At the time of writing, Docker must be installed **manually**.
17
17
18
18
> ⚠️ **Security Note**
19
-
> The `flp` user must be able to run `sudo`**without a password**, because Docker requires root privileges.
19
+
> The `flp` user must be able to run `sudo`**without a password**, because Docker requires root privileges because of inter process communication requirements
20
20
>
21
-
> This setup is **not safe for production systems**.
21
+
> This setup is **potentially unsafe** for production systems. There exists rootless mode in Podman (alias for Docker at RHEL) which might solve safety
22
+
> issues. However, we were not able to make this work for more than one container because of ipc requirements.
22
23
23
-
Run the following commands as `root`:
24
+
Run the following commands as `root` to add `flp` user to sudoers:
To run a task inside a Docker container on the executor, wrap the binary call in a `docker run` command within the [ControlWorkflows](https://github.com/AliceO2Group/ControlWorkflows) repository.
35
36
36
-
For example, to run **readout**, modify the `_plain_command` section of [`readout.yaml`](https://github.com/AliceO2Group/ControlWorkflows/blob/master/tasks/readout.yaml) by adding a Docker command.
37
+
For example, to run readout, modify the `_plain_command` section of [`readout.yaml`](https://github.com/AliceO2Group/ControlWorkflows/blob/master/tasks/readout.yaml) by adding a Docker command.
37
38
38
39
> 🧩 **Note**
39
40
> You must already have a Docker image that includes the required binary and configuration.
40
-
> (Creating such an image is **outside the scope** of this document.)
41
+
> (Creating such an image is outside the scope of this document.)
41
42
42
43
#### Example Command
43
44
44
-
When running *readout*, **Michal Tichak** successfully used the following command inside the `alma9-flp-node` image:
45
+
When running readout, we successfully used the following command inside the `alma9-flp-node` image:
45
46
46
47
```bash
47
48
sudo /usr/bin/docker run --name readout --replace \
0 commit comments