diff options
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 0000000..7e4792f --- /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 |