summaryrefslogtreecommitdiffstats
path: root/run/devel.sh
blob: ad8fa15c037fdc30d93bb8ab0cdcc488dadb3339 (plain)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/bash

set -o errexit

if [ ! -d ../repos ]; then
    buildah unshare bash ../build/extract.sh
fi

port="$(($(id -u) - 900))22"

podman run --name "ccpi-devel" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p $port:2222/tcp -v ~/ccpi/data:/ccpi/data -v ~/ccpi/repos:/ccpi/repos localhost/ccpi bash -c "bash /root/setup/provision.sh; bash"