unifios-utilities/podman-update/00-podman-update.sh

29 lines
1.1 KiB
Bash
Raw Normal View History

2021-05-25 12:24:44 +00:00
#!/bin/sh
2021-05-25 12:40:13 +00:00
mkdir -p /mnt/data/.cache
2021-05-25 12:24:44 +00:00
PODMAN_DL=/mnt/data/.cache/podman
CONMON_DL=/mnt/data/.cache/conmon
SECCOMP=/usr/share/container/seccomp.json
if [ ! -f CONMON_DL ]; then
curl -fsSLo $CONMON_DL https://github.com/containers/conmon/releases/download/v2.0.27/conmon.arm64
fi
chmod +x $CONMON_DL
mv /usr/libexec/podman/conmon /usr/libexec/podman/conmon.old
ln -s $CONMON_DL /usr/libexec/podman/conmon
if [ ! -f $PODMAN_DL ]; then
2021-05-25 13:24:54 +00:00
curl -fsSLo $PODMAN_DL https://raw.githubusercontent.com/boostchicken/udm-utilities/master/podman-update/bin/podman-3.2.0-dev
2021-05-25 12:24:44 +00:00
fi
chmod +x $PODMAN_DL
2021-05-25 12:40:13 +00:00
mv /usr/bin/podman /usr/bin/podman.old
ln -s $PODMAN_DL /usr/bin/podman
2021-05-25 12:24:44 +00:00
if [ ! -f $SECCOMP ]; then
mkdir -p /usr/share/container/
curl -fsSLo /usr/share/container/seccomp.json https://raw.githubusercontent.com/boostchicken/udm-utilities/master/podman-update/bin/seccomp.json
fi
2021-05-25 12:40:13 +00:00
sed -i 's/driver = ""/driver = "overlay"/' /etc/containers/storage.conf
# Comment out if you don't want to enable docker-compose or remote docker admin
2021-05-25 12:24:44 +00:00
/usr/bin/podman system service --time=0 tcp:0.0.0.0:2375 &