2018-04-30 23:13:11 +02:00
|
|
|
#!/bin/sh
|
2018-07-15 21:55:35 +02:00
|
|
|
set -e
|
2018-04-30 23:13:11 +02:00
|
|
|
|
|
|
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/basic-runtimes
|
|
|
|
|
2018-09-04 21:42:26 +02:00
|
|
|
# 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
|
|
|
|
|
2018-04-30 23:13:11 +02:00
|
|
|
# Build Docker images
|
2018-04-30 23:23:54 +02:00
|
|
|
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
|