|
36 | 36 | </google-codelab-step> |
37 | 37 |
|
38 | 38 | <google-codelab-step label="Load Enterprise Image" duration="2"> |
39 | | - <ol type="1"> |
| 39 | + <aside class="special"><p> If you don't have <code>docker</code> you can use <code>podman</code> and replace every docker command with podman</p> |
| 40 | +</aside> |
| 41 | +<ol type="1"> |
40 | 42 | <li>Download the enterprise image from <a href="https://products.solace.com/" target="_blank">https://products.solace.com/</a></li> |
41 | 43 | <li>Load the image into your local docker</li> |
42 | 44 | </ol> |
43 | 45 | <pre><code>docker load -i path/to/solace-agent-mesh-enterprise-{version}.tar.gz |
44 | 46 | </code></pre> |
| 47 | +<pre><code>podman load -i path/to/solace-agent-mesh-enterprise-{version}.tar.gz |
| 48 | +</code></pre> |
45 | 49 | <p>On successful loading, check the list of existing images</p> |
46 | 50 | <pre><code>docker images |
47 | 51 | </code></pre> |
| 52 | +<pre><code>podman images |
| 53 | +</code></pre> |
48 | 54 | <aside class="special"><p> Tip: you can rename the image and tag as follows</p> |
49 | 55 | <pre><code>docker tag <original_name>:<original_tag> solace-agent-mesh-enterprise:<version> |
50 | 56 | </code></pre> |
51 | | -</aside> |
52 | | -<aside class="special"><p> If you don't have <code>docker</code> you can use <code>podman</code> and replace every docker command with podman</p> |
| 57 | +<pre><code>podman tag <original_name>:<original_tag> solace-agent-mesh-enterprise:<version> |
| 58 | +</code></pre> |
53 | 59 | </aside> |
54 | 60 |
|
55 | 61 |
|
|
147 | 153 | <ol type="1"> |
148 | 154 | <li>[Optional] Create a docker network bridge so that your SAM container can communicate with your Solace Broker container<pre><code>docker network create -d bridge sam-network |
149 | 155 | </code></pre> |
| 156 | +<pre><code>podman network create -d bridge sam-network |
| 157 | +</code></pre> |
150 | 158 | <aside class="special"><p> skip this step if you are connecting to a cloud hosted broker instead</p> |
151 | 159 | </aside> |
152 | 160 | </li> |
|
193 | 201 | </li> |
194 | 202 | <li>[Optional] Run local solace broker (alternatively: use Solace Cloud)<pre><code>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 |
195 | 203 | </code></pre> |
| 204 | +<pre><code>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 |
| 205 | +</code></pre> |
196 | 206 | </li> |
197 | 207 | <li>Add the solace broker container to the same SAM network<pre><code>docker network connect sam-network solace |
198 | 208 | </code></pre> |
| 209 | +<pre><code>podman network connect sam-network solace |
| 210 | +</code></pre> |
199 | 211 | </li> |
200 | 212 | <li>Open <code>.env</code> file and make the following changes<ul> |
201 | 213 | <li><code>SOLACE_BROKER_URL="ws://solace:8008"</code> - Update the broker URL to use the solace broker container</li> |
|
232 | 244 | </li> |
233 | 245 | <li>Run docker compose<pre><code>docker compose up |
234 | 246 | </code></pre> |
| 247 | +<aside class="special"><p> If you are using <code>podman compose up</code> 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 <code>image</code> name in the compose file</p> |
| 248 | +<pre><code>user: root |
| 249 | +</code></pre> |
| 250 | +</aside> |
| 251 | +<pre><code>podman compose up |
| 252 | +</code></pre> |
235 | 253 | <aside class="special"><p> When the Solace Enterprise container runs, the entry point command for the container is <code>sam run</code>. 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.</p> |
236 | 254 | </aside> |
237 | 255 | <aside class="special"><p> The docker compose file makes sure port <code>8001</code> from the container is exposed to port <code>8001</code> on the host</p> |
|
0 commit comments