forked from jchomaz/Vulture
scripts de gestion
This commit is contained in:
24
VContainers/run.sh
Executable file
24
VContainers/run.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Move to repository root
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Creating Pod vulture..."
|
||||
# Check if pod exists to avoid error
|
||||
if podman pod exists vulture; then
|
||||
echo "Pod vulture already exists."
|
||||
else
|
||||
podman pod create --name vulture -p 8080:80 -p 1883:1883 -p 8081:8081 -p 8083:8083 -p 8883:8883 -p 9001:9001
|
||||
fi
|
||||
|
||||
echo "Starting NanoMQ..."
|
||||
podman run -dt --rm --pod vulture --name nanomq -v ./VContainers/MQTT/config/nanomq.conf:/etc/nanomq.conf docker.io/emqx/nanomq:latest --conf /etc/nanomq.conf
|
||||
|
||||
echo "Starting VNode..."
|
||||
podman run -dt --rm --pod vulture --name vnode vnode:latest
|
||||
|
||||
echo "Starting VApp..."
|
||||
podman run -dt --rm --pod vulture --name vapp vapp:latest
|
||||
|
||||
echo "All containers started."
|
||||
Reference in New Issue
Block a user