rosaria/install.sh

29 lines
546 B
Bash
Raw Permalink Normal View History

2021-12-22 17:20:23 +01:00
#!/bin/bash
# Check if root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
2023-01-20 14:53:06 +01:00
cd radio-lap
docker build . -t decawave
cd ..
2023-01-24 11:55:50 +01:00
cd hokuyo
docker build . -t hokuyo
cd ..
2023-01-20 14:53:06 +01:00
cd Legacy
2023-02-27 14:55:20 +01:00
docker build . -t irth7/rosaria-legacy:latest
2023-01-20 14:53:06 +01:00
cd ..
cp 99-decawave.rules /etc/udev/rules.d/
2023-01-24 11:55:50 +01:00
cp 99-hokuyo.rules /etc/udev/rules.d/
2021-12-22 17:20:23 +01:00
cp rosaria-docker.service /etc/systemd/system/
chmod g+w /etc/systemd/system/rosaria-docker.service
2021-12-22 17:20:23 +01:00
systemctl daemon-reload
2023-02-27 14:55:20 +01:00
# systemctl enable rosaria-docker.service
# systemctl restart rosaria-docker.service