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:
1
docker/files/build-frank.sh
Executable file
1
docker/files/build-frank.sh
Executable file
@ -0,0 +1 @@
|
||||
docker build --file /home/pi/dockerfile/app/frank.Dockerfile --tag frank:latest /home/pi/dockerfile/app
|
||||
13
docker/files/frank.service
Normal file
13
docker/files/frank.service
Normal 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
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user