diff options
author | 2020-03-03 02:05:54 +0100 | |
---|---|---|
committer | 2020-03-03 02:05:54 +0100 | |
commit | 78259d45d52b1ef8d9a634d86aed11743ea4d39c (patch) | |
tree | cfbaa69a939e929175f0b2013cfde7f963a9e243 /update.sh | |
parent | Remove Sven Wegener (diff) | |
download | planet-78259d45d52b1ef8d9a634d86aed11743ea4d39c.tar.gz planet-78259d45d52b1ef8d9a634d86aed11743ea4d39c.tar.bz2 planet-78259d45d52b1ef8d9a634d86aed11743ea4d39c.zip |
Initial version of the pluto based planetv2.0.0
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/update.sh b/update.sh new file mode 100755 index 00000000..bd79fe7d --- /dev/null +++ b/update.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +USER=${1:gplanet} +GROUP=${2:gplanet} + +docker build --build-arg USER_ID=$(id -u $USER) \ + --build-arg GROUP_ID=$(id -g $GROUP) \ + -t gentoo/planet-pluto:latest . + +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 |