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
@command -v $(CONTAINER_ENGINE)>/dev/null 2>&1|| { echo"$(CONTAINER_ENGINE) not found. Please install $(CONTAINER_ENGINE) or use CONTAINER_ENGINE=<engine> to specify another.";exit 1; }
Copy file name to clipboardExpand all lines: README.md
+64-5Lines changed: 64 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,26 @@
1
1
# workload-web-app
2
2
A test app for simulating the workload on the openshift cluster based on end-user use cases in order to monitor the downtime of component products in integreatly during an upgrade.
3
3
4
+
## Container Engine Support
5
+
6
+
This application supports both **Docker** and **Podman**. The Makefile automatically detects which container engine is available:
7
+
8
+
- If Podman is available, it uses Podman
9
+
- If only Docker is available, it uses Docker
10
+
- You can override the detection by setting `CONTAINER_ENGINE=docker` or `CONTAINER_ENGINE=podman`
11
+
12
+
### Check your container engine
13
+
14
+
You can check which container engines are available and get setup guidance:
15
+
16
+
```bash
17
+
# Quick environment check with helpful tips
18
+
./check-container-engine.sh
19
+
20
+
# Or use the Makefile target for basic info
21
+
make container-engine
22
+
```
23
+
4
24
## Deploying the Application on the RHOAM cluster
5
25
6
26
To deploy the app to a RHOAM cluster, you will need to:
@@ -15,7 +35,21 @@ To deploy the app to a RHOAM cluster, you will need to:
15
35
export RHOAMI=true
16
36
```
17
37
4. Then run this command to deploy the app:
18
-
```make local/deploy```
38
+
```bash
39
+
make local/deploy
40
+
```
41
+
42
+
### Using a specific container engine
43
+
44
+
If you want to use a specific container engine, set the `CONTAINER_ENGINE` variable:
45
+
46
+
```bash
47
+
# Using Docker
48
+
CONTAINER_ENGINE=docker make local/deploy
49
+
50
+
# Using Podman
51
+
CONTAINER_ENGINE=podman make local/deploy
52
+
```
19
53
20
54
## Delete the app
21
55
@@ -28,9 +62,34 @@ Note: It might take up to 15 minutes for 3scale to fully remove the service (Pro
28
62
29
63
## Troubleshooting
30
64
31
-
In case of `make: stat: Makefile: Permission denied` error try to use privileged:
65
+
### Container Engine Issues
32
66
33
-
```
34
-
ADDITIONAL_CONTAINER_ENGINE_PARAMS="--privileged" CONTAINER_ENGINE=podman make local/deploy
35
-
```
67
+
1.**Check if your container engine is working:**
68
+
```bash
69
+
make validate-engine
70
+
```
71
+
72
+
2.**Permission denied errors with Podman:**
73
+
```bash
74
+
ADDITIONAL_CONTAINER_ENGINE_PARAMS="--privileged" make local/deploy
75
+
```
76
+
77
+
3.**SELinux issues with volume mounts:**
78
+
The Makefile automatically adds `:z` labels for SELinux compatibility. If you still have issues:
79
+
```bash
80
+
ADDITIONAL_CONTAINER_ENGINE_PARAMS="--privileged --security-opt label=disable" make local/deploy
81
+
```
82
+
83
+
4.**Force a specific container engine:**
84
+
```bash
85
+
# Force Docker even if Podman is available
86
+
CONTAINER_ENGINE=docker make local/deploy
87
+
88
+
# Force Podman even if Docker is available
89
+
CONTAINER_ENGINE=podman make local/deploy
90
+
```
91
+
92
+
### 3scale Service Issues
93
+
94
+
Note: It might take up to 15 minutes for 3scale to fully remove the service (Product) hence you need to wait this long after undeploy if you want to deploy the workload-web-app again. In case the service is not fully removed yet the deployment fails with `System name has already been taken` error.
0 commit comments