Update frank to latest arq. We are having issues with duplicate kots being printed. This might be because the server arq is updated.

Also added the frank service and build frank script to the frank playbook so that new containers can be built on the device when ansible is not an option
This commit is contained in:
2021-06-23 09:41:56 +05:30
parent 40aced4fa3
commit 8a243fe387
6 changed files with 53 additions and 8 deletions

1
docker/files/build-frank.sh Executable file
View File

@ -0,0 +1 @@
docker build --file /home/pi/dockerfile/app/frank.Dockerfile --tag frank:latest /home/pi/dockerfile/app

View File

@ -0,0 +1,13 @@
[Unit]
Description=Frank container service
After=docker.service knox-redis-tunnel.service
Wants=network-online.target docker.socket knox-redis-tunnel.service
Requires=docker.socket knox-redis-tunnel.service
[Service]
Restart=always
ExecStart=/usr/bin/docker start -a frank
ExecStop=/usr/bin/docker stop -t 10 frank
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
docker run --detach --name frank --hostname=moh1 --env-file=/home/pi/frank.env --network=host --restart=no --device /dev/usb/lp0:/printer frank:latest