diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-03-03 04:47:49 +0100 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-03-03 04:47:49 +0100 |
commit | 6740f6fa208042e6986a81d6cf5d4006e41e43ec (patch) | |
tree | 696de349df8fcfaa826ba7773eced711c7a87d7d /update-planet.sh | |
parent | Fix the permissions during update (diff) | |
download | planet-6740f6fa208042e6986a81d6cf5d4006e41e43ec.tar.gz planet-6740f6fa208042e6986a81d6cf5d4006e41e43ec.tar.bz2 planet-6740f6fa208042e6986a81d6cf5d4006e41e43ec.zip |
Split the planet and container updatev2.0.4
The planet data and container image can be updated
seperately now. The container image may not be updated
as regular as the planet data.
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'update-planet.sh')
-rwxr-xr-x | update-planet.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/update-planet.sh b/update-planet.sh new file mode 100755 index 00000000..7e4792f3 --- /dev/null +++ b/update-planet.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +USER=${1:-gplanet} +GROUP=${2:-gplanet} + +mkdir -p htdocs data +chown -R $USER:$GROUP htdocs data + +docker run --privileged \ + --mount type=bind,source="$(pwd)"/htdocs,target=/var/www/planet.gentoo.org/build \ + --mount type=bind,source="$(pwd)"/data,target=/var/www/planet.gentoo.org/data \ + gentoo/planet-pluto:latest |