Running Software Broker using Podman on Ubuntu
Here are the steps to get Solace Broker running using rootless podman on Ubuntu Linux.
a) Update packages
sudo apt-get update -y
b) Install additional packages
sudo apt-get install curl wget gnupg2 -y
c) Refresh system identification information
source /etc/os-release
d) Update repositories
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | sudo apt-key add -
e) Update/refresh packages
sudo apt-get update -qq -y
f) Install podman
sudo apt-get -qq --yes install podman
g) Pull solace image
podman pull docker.io/solace/solace-pubsub-standard
h) Check and ensure that the solace broker image is present
podman images
i) Create a storage directory
mkdir $HOME/storage-group
j) Run the container
podman run -d -u 0 -p 8080:8080 -p 55555:55555 -p 8008:8008 --shm-size=1g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --name=solace --mount type=bind,source=$HOME/storage-group,destination=/var/lib/solace,ro=false solace/solace-pubsub-standard
k) Checking broker logs
If you want to access the debug logs and other broker runtime artifacts, you can access them inside the podman machine by opening an ssh session.
tail -f $HOME/storage-group/jail/logs/debug.log
At any point in time, if you want to recreate the setup - you can run the following commands and start the steps afresh.
Shutdown the machine:
podman container stop solace
Remove the machine:
podman container rm solace
Remove the storage directory:
rm -rf $HOME/storage-group
Run the steps from I, J, and K described above.
For more information on rootless containers, refer to the documentation.
Comments
-
Just wanted to update you that there is an excellent post and video on this by @pkondrat
https://solace.community/discussion/1558/how-to-create-a-rootless-instance-of-pubsub-in-ubuntu
1