2019-02-26 20:24:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -ev
|
|
|
|
|
2019-06-02 09:34:31 +02:00
|
|
|
ROOT=$(dirname $(dirname $(realpath "${0}")))
|
2019-02-26 20:24:02 +01:00
|
|
|
|
2019-03-19 14:04:13 +01:00
|
|
|
# Build documentation
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/_doc
|
2019-03-19 14:04:13 +01:00
|
|
|
make html
|
|
|
|
|
2019-02-26 20:24:02 +01:00
|
|
|
# Build basic.tar
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/_vm
|
2019-02-26 20:24:02 +01:00
|
|
|
tar cpf /srv/build/_vm.tar *
|
|
|
|
|
|
|
|
# Build native apps
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/apk/acme-sh
|
2019-02-26 20:24:02 +01:00
|
|
|
abuild -F
|
2019-06-02 09:51:21 +02:00
|
|
|
|
|
|
|
cd ${ROOT}/apk/geos
|
2019-06-05 10:17:53 +02:00
|
|
|
apk add -U swig python2-dev
|
2019-06-02 09:51:21 +02:00
|
|
|
abuild -F
|
|
|
|
|
|
|
|
cd ${ROOT}/apk/gdal
|
2019-06-05 10:17:53 +02:00
|
|
|
apk add -U curl-dev geos-dev@vm giflib-dev jpeg-dev libjpeg-turbo-dev libpng-dev linux-headers postgresql-dev python2-dev sqlite-dev swig tiff-dev zlib-dev
|
2019-06-02 09:51:21 +02:00
|
|
|
abuild -F
|
|
|
|
|
|
|
|
cd ${ROOT}/apk/proj4
|
|
|
|
abuild -F
|
|
|
|
|
2019-06-03 11:24:16 +02:00
|
|
|
cd ${ROOT}/apk/rabbitmq-server
|
2019-06-05 10:17:53 +02:00
|
|
|
apk add -U elixir erlang-compiler erlang-dev erlang-edoc erlang-eldap erlang-erl-docgen erlang-mnesia erlang-os-mon erlang-runtime-tools erlang-tools erlang-xmerl gawk grep libxslt logrotate py2-simplejson python2 rsync socat xmlto zip
|
2019-06-03 11:24:16 +02:00
|
|
|
abuild -F
|
|
|
|
|
2019-06-02 09:51:21 +02:00
|
|
|
cd ${ROOT}/apk/postgis
|
2019-06-05 10:17:53 +02:00
|
|
|
apk add -U gdal-dev@vm geos-dev@vm json-c-dev libxml2-dev pcre-dev perl perl-dev postgresql postgresql-dev proj4-dev@vm
|
2019-06-02 09:51:21 +02:00
|
|
|
abuild -F
|
|
|
|
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/apk/vmmgr
|
2019-02-26 20:24:02 +01:00
|
|
|
abuild -F
|
|
|
|
|
2019-06-04 19:16:46 +02:00
|
|
|
cd ${ROOT}/apk/wireguard
|
2019-06-05 10:17:53 +02:00
|
|
|
apk add -U libmnl-dev linux-virt-dev linux-firmware-none
|
2019-06-04 19:16:46 +02:00
|
|
|
FLAVOR=virt abuild -F
|
|
|
|
|
|
|
|
cd ${ROOT}/apk/wireguard-tools
|
2019-06-05 10:17:53 +02:00
|
|
|
apk add -U libmnl-dev
|
2019-06-04 19:16:46 +02:00
|
|
|
abuild -F
|
|
|
|
|
2019-06-02 09:34:31 +02:00
|
|
|
# Build apd pack runtimes
|
|
|
|
cd ${ROOT}/lxc-shared
|
2019-02-26 20:24:02 +01:00
|
|
|
lxc-build alpine3.8
|
|
|
|
lxc-build alpine3.8-php5.6
|
|
|
|
lxc-build alpine3.8-nodejs8
|
|
|
|
lxc-build alpine3.8-ruby2.4
|
|
|
|
lxc-build alpine3.9
|
|
|
|
lxc-build alpine3.9-java8
|
|
|
|
lxc-build alpine3.9-php7.2
|
|
|
|
lxc-build alpine3.9-python2.7
|
|
|
|
lxc-build alpine3.9-python3.6
|
|
|
|
lxc-build alpine3.9-nodejs10
|
|
|
|
lxc-build alpine3.9-ruby2.4
|
2019-03-01 12:21:49 +01:00
|
|
|
lxc-build alpine3.9-tomcat7
|
|
|
|
lxc-build alpine3.9-tomcat8.5
|
2019-02-26 20:24:02 +01:00
|
|
|
|
|
|
|
# Build services
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/lxc-services
|
2019-02-26 20:24:02 +01:00
|
|
|
lxc-build activemq
|
|
|
|
lxc-build mariadb
|
|
|
|
lxc-build postgres
|
|
|
|
lxc-build rabbitmq
|
|
|
|
lxc-build redis
|
|
|
|
lxc-build solr
|
|
|
|
|
|
|
|
# Build applications
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/lxc-apps
|
2019-02-26 20:24:02 +01:00
|
|
|
lxc-build ckan-datapusher
|
|
|
|
lxc-build ckan
|
|
|
|
lxc-build crisiscleanup
|
|
|
|
lxc-build cts
|
|
|
|
lxc-build ecogis
|
|
|
|
lxc-build frontlinesms
|
|
|
|
lxc-build gnuhealth
|
|
|
|
lxc-build kanboard
|
|
|
|
lxc-build mifosx
|
|
|
|
lxc-build motech
|
|
|
|
lxc-build odoo
|
|
|
|
lxc-build opendatakit
|
|
|
|
lxc-build opendatakit-build
|
|
|
|
lxc-build openmapkit
|
|
|
|
lxc-build pandora
|
|
|
|
lxc-build sahana-shared
|
|
|
|
lxc-build sahana
|
|
|
|
lxc-build sahana-demo
|
|
|
|
lxc-build sambro
|
|
|
|
lxc-build seeddms
|
|
|
|
lxc-build sigmah
|
|
|
|
lxc-build ushahidi
|
|
|
|
|
|
|
|
# Pack runtimes
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/lxc-shared
|
2019-02-26 20:24:02 +01:00
|
|
|
lxc-pack alpine3.8
|
|
|
|
lxc-pack alpine3.8-php5.6
|
|
|
|
lxc-pack alpine3.8-nodejs8
|
|
|
|
lxc-pack alpine3.8-ruby2.4
|
|
|
|
lxc-pack alpine3.9
|
|
|
|
lxc-pack alpine3.9-java8
|
|
|
|
lxc-pack alpine3.9-php7.2
|
|
|
|
lxc-pack alpine3.9-python2.7
|
|
|
|
lxc-pack alpine3.9-python3.6
|
|
|
|
lxc-pack alpine3.9-nodejs10
|
|
|
|
lxc-pack alpine3.9-ruby2.4
|
2019-03-01 12:21:49 +01:00
|
|
|
lxc-pack alpine3.9-tomcat7
|
|
|
|
lxc-pack alpine3.9-tomcat8.5
|
2019-02-26 20:24:02 +01:00
|
|
|
|
|
|
|
# Pack services
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/lxc-services
|
2019-02-26 20:24:02 +01:00
|
|
|
lxc-pack activemq
|
|
|
|
lxc-pack mariadb
|
|
|
|
lxc-pack postgres
|
|
|
|
lxc-pack rabbitmq
|
|
|
|
lxc-pack redis
|
|
|
|
lxc-pack solr
|
|
|
|
|
|
|
|
# Pack applications
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/lxc-apps
|
2019-02-26 20:24:02 +01:00
|
|
|
lxc-pack ckan-datapusher
|
|
|
|
lxc-pack ckan
|
|
|
|
lxc-pack crisiscleanup
|
|
|
|
lxc-pack cts
|
|
|
|
lxc-pack ecogis
|
|
|
|
lxc-pack frontlinesms
|
|
|
|
lxc-pack gnuhealth
|
|
|
|
lxc-pack kanboard
|
|
|
|
lxc-pack mifosx
|
|
|
|
lxc-pack motech
|
|
|
|
lxc-pack odoo
|
|
|
|
lxc-pack opendatakit
|
|
|
|
lxc-pack opendatakit-build
|
|
|
|
lxc-pack openmapkit
|
|
|
|
lxc-pack pandora
|
|
|
|
lxc-pack sahana-shared
|
|
|
|
lxc-pack sahana
|
|
|
|
lxc-pack sahana-demo
|
|
|
|
lxc-pack sambro
|
|
|
|
lxc-pack seeddms
|
|
|
|
lxc-pack sigmah
|
|
|
|
lxc-pack ushahidi
|