6 changed files with 5 additions and 53 deletions
@ -1,16 +1,14 @@ |
|||
[Unit] |
|||
Description=AI Auto-Pilot |
|||
Description=AI application deployed at the Edge |
|||
After=local-fs.target |
|||
|
|||
[Service] |
|||
ExecStartPre=-podman network create --ignore app |
|||
|
|||
[Container] |
|||
ContainerName=intelligent-train |
|||
Image=quay.io/demo-ai-edge-crazy-train/intelligent-train:latest |
|||
ContainerName=app-edge-ai |
|||
Image=quay.io/nmasse-redhat/app-edge-ai:latest |
|||
Network=app |
|||
PublishPort=8080:8080 |
|||
EnvironmentFile=/etc/intelligent-train.env |
|||
|
|||
# Needed for Nvidia GPU Acceleration |
|||
PodmanArgs=--runtime /usr/bin/nvidia-container-runtime |
|||
@ -1,20 +0,0 @@ |
|||
[Unit] |
|||
Description=Mosquitto MQTT Broker |
|||
After=local-fs.target |
|||
|
|||
[Service] |
|||
ExecStartPre=-podman network create --ignore app |
|||
|
|||
[Container] |
|||
ContainerName=mosquitto |
|||
Image=docker.io/library/eclipse-mosquitto:latest |
|||
Network=app |
|||
PublishPort=1883:1883 |
|||
PublishPort=9001:9001 |
|||
Volume=/var/lib/mosquitto/data:/mosquitto/data:z |
|||
Volume=/var/lib/mosquitto/log:/mosquitto/log:z |
|||
Volume=/etc/mosquitto:/mosquitto/config:z |
|||
|
|||
[Install] |
|||
# Start by default on boot |
|||
WantedBy=multi-user.target default.target |
|||
@ -1,6 +0,0 @@ |
|||
MQTT_BROKER=mosquitto |
|||
MQTT_PORT=1883 |
|||
MQTT_TOPIC=train-image |
|||
MQTT_PUB_TOPIC=train-model-result |
|||
MODEL_PATH=models/model.onnx |
|||
MIN_CONF_THRESHOLD=0.7 |
|||
@ -1,7 +0,0 @@ |
|||
user mosquitto |
|||
persistence true |
|||
persistence_location /mosquitto/data/ |
|||
listener 1883 0.0.0.0 |
|||
protocol mqtt |
|||
allow_anonymous true |
|||
log_dest file /mosquitto/log/mosquitto.log |
|||
@ -1,12 +0,0 @@ |
|||
[Unit] |
|||
Description=Sync the intelligent-train git repo |
|||
Wants=network-online.target |
|||
After=network-online.target |
|||
|
|||
[Service] |
|||
Type=oneshot |
|||
RemainAfterExit=yes |
|||
ExecStart=/bin/sh -c 'if [ -d /root/intelligent-train ]; then cd /root/intelligent-train && git pull ; else git clone -b main https://github.com/Demo-AI-Edge-Crazy-Train/intelligent-train.git /root/intelligent-train ; fi' |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target |
|||
Loading…
Reference in new issue