summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..bd79fe7
--- /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