2018-09-05 17:41:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
SOURCE_DIR=$(realpath $(dirname "${0}"))
|
|
|
|
|
2018-09-12 16:08:10 +02:00
|
|
|
# Install build scripts
|
|
|
|
cp ${SOURCE_DIR}/zz-extra/lxc-build /usr/bin/lxc-build
|
|
|
|
cp ${SOURCE_DIR}/zz-extra/fix-apk /usr/bin/fix-apk
|
2018-09-05 17:46:44 +02:00
|
|
|
|
2018-09-05 17:41:38 +02:00
|
|
|
# Build basic Alpine LXC 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
|
2018-09-11 17:08:09 +02:00
|
|
|
chmod 755 /var/lib/lxc/shared/alpine
|
2018-09-05 17:41:38 +02:00
|
|
|
touch /var/lib/lxc/shared/alpine/etc/resolv.conf
|
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/alpine.lxcfile
|
|
|
|
|
2018-09-05 18:25:27 +02:00
|
|
|
# Build shared overlays
|
2018-09-05 17:41:38 +02:00
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/java.lxcfile
|
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/libxml.lxcfile
|
2018-09-12 14:19:36 +02:00
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/php.lxcfile
|
2018-09-05 17:41:38 +02:00
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/python2.lxcfile
|
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/python3.lxcfile
|
2018-09-12 14:19:36 +02:00
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/nodejs.lxcfile
|
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/ruby.lxcfile
|
|
|
|
lxc-build ${SOURCE_DIR}/basic-runtimes/tomcat.lxcfile
|
2018-09-05 17:41:38 +02:00
|
|
|
|
|
|
|
# Build applications
|
|
|
|
lxc-build ${SOURCE_DIR}/activemq
|
|
|
|
lxc-build ${SOURCE_DIR}/ckan
|
|
|
|
lxc-build ${SOURCE_DIR}/ckan-datapusher
|
|
|
|
lxc-build ${SOURCE_DIR}/postgres
|
|
|
|
lxc-build ${SOURCE_DIR}/redis
|
|
|
|
lxc-build ${SOURCE_DIR}/solr
|