4 if [[ $UID != 0 ]]; then
5 echo "You have to run this as root." 1>&2
9 if ! type docker >/dev/null 2>&1; then
10 echo "You have to install docker." 1>&2
14 SCRIPT_DIR=$(cd $(dirname $0); pwd)
16 docker build -t alterlinux-build:latest .
17 docker run -e _DOCKER=true -t -i --privileged -v $SCRIPT_DIR/out:/alterlinux/out -v /usr/lib/modules:/usr/lib/modules:ro alterlinux-build