#!/bin/sh set -e SOURCE_DIR=$(realpath $(dirname "${0}"))/basic-runtimes # Build basic Alpine image mkdir -p /var/lib/lxc/shared/alpine wget https://github.com/gliderlabs/docker-alpine/raw/2bfe6510ee31d86cfeb2f37587f4cf866f28ffbc/versions/library-3.8/x86_64/rootfs.tar.xz -O - | tar xJf - -C /var/lib/lxc/shared/alpine cp ${SOURCE_DIR}/var/lib/lxc/shared/config /var/lib/lxc/shared/config # Build Docker images docker build -t java ${SOURCE_DIR}/java docker build -t php ${SOURCE_DIR}/php docker build -t python2 ${SOURCE_DIR}/python2 docker build -t python3 ${SOURCE_DIR}/python3 docker build -t ruby ${SOURCE_DIR}/ruby docker build -t tomcat ${SOURCE_DIR}/tomcat