Skip to content

Commit 9daa57b

Browse files
committed
podman
1 parent 3ba5c0b commit 9daa57b

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

markdown/ai-bootcamp/ai-bootcamp.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,38 @@ Follow the steps in this codelab to get started with the Enterprise Image for SA
1919
## Load Enterprise Image
2020
Duration: 0:02:00
2121

22+
> aside positive
23+
> If you don't have `docker` you can use `podman` and replace every docker command with podman
24+
2225
1. Download the enterprise image from [https://products.solace.com/](https://products.solace.com/)
2326
1. Load the image into your local docker
2427

2528
```
2629
docker load -i path/to/solace-agent-mesh-enterprise-{version}.tar.gz
2730
```
2831

32+
```
33+
podman load -i path/to/solace-agent-mesh-enterprise-{version}.tar.gz
34+
```
35+
2936
On successful loading, check the list of existing images
3037
```
3138
docker images
3239
```
3340

41+
```
42+
podman images
43+
```
44+
3445
> aside positive
3546
> Tip: you can rename the image and tag as follows
3647
> ```
3748
> docker tag <original_name>:<original_tag> solace-agent-mesh-enterprise:<version>
3849
> ```
50+
> ```
51+
> podman tag <original_name>:<original_tag> solace-agent-mesh-enterprise:<version>
52+
> ```
3953
40-
> aside positive
41-
> If you don't have `docker` you can use `podman` and replace every docker command with podman
4254
4355
## Install SAM CLI
4456
Duration: 00:05:00
@@ -173,6 +185,9 @@ This step is involved with running SAM enterprise with the new files generated.
173185
```
174186
docker network create -d bridge sam-network
175187
```
188+
```
189+
podman network create -d bridge sam-network
190+
```
176191
177192
> aside positive
178193
> skip this step if you are connecting to a cloud hosted broker instead
@@ -225,10 +240,16 @@ This step is involved with running SAM enterprise with the new files generated.
225240
```
226241
docker run -d -p 8080:8080 -p 55554:55555 -p 8008:8008 -p 8000:8000 -p 1883:1883 -p 5672:5672 -p 9000:9000 -p 2222:2222 --shm-size=2g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --name=solace solace/solace-pubsub-standard
227242
```
243+
```
244+
podman run -d -p 8080:8080 -p 55554:55555 -p 8008:8008 -p 8000:8000 -p 1883:1883 -p 5672:5672 -p 9000:9000 -p 2222:2222 --shm-size=2g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --name=solace solace/solace-pubsub-standard
245+
```
228246
1. Add the solace broker container to the same SAM network
229247
```
230248
docker network connect sam-network solace
231249
```
250+
```
251+
podman network connect sam-network solace
252+
```
232253
1. Open `.env` file and make the following changes
233254
- `SOLACE_BROKER_URL="ws://solace:8008"` - Update the broker URL to use the solace broker container
234255
- `FASTAPI_HOST="0.0.0.0"` - This where the webUI Gateway is hosted on the SAM Enterprise container. We change it to `0.0.0.0` to make sure its reachable by host
@@ -270,6 +291,16 @@ This step is involved with running SAM enterprise with the new files generated.
270291
docker compose up
271292
```
272293
294+
> aside positive
295+
> If you are using `podman compose up` you will have to update your docker-compose.yaml file to make sure you are running podman as root. to do this add the following under your `image` name in the compose file
296+
> ```
297+
> user: root
298+
> ```
299+
300+
```
301+
podman compose up
302+
```
303+
273304
> aside positive
274305
> When the Solace Enterprise container runs, the entry point command for the container is `sam run`. What this command does is go through all the yaml configuration files under the configs dir and run them. At this point its only the orchestrator agent and web UI gateway.
275306

0 commit comments

Comments
 (0)