blob: 8ca43c3f35789d07ad0e1630cc8801fade8dad3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
USER=${1:gplanet}
GROUP=${2:gplanet}
mkdir -p htdocs data
chown -R $USER:$GROUP htdocs data
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
|