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-05 13:19:22 +02:00
|
|
|
cd ${ROOT}/doc
|
2019-03-19 14:04:13 +01:00
|
|
|
make html
|
|
|
|
|
2019-11-17 15:24:26 +01:00
|
|
|
# Build basic tar
|
2019-06-05 13:19:22 +02:00
|
|
|
cd ${ROOT}/vm
|
|
|
|
tar cpf /srv/build/vm.tar *
|
2019-02-26 20:24:02 +01:00
|
|
|
|
|
|
|
# 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-10-03 20:08:37 +02:00
|
|
|
lxcbuild alpine3.8
|
2019-11-17 15:24:26 +01:00
|
|
|
lxcbuild alpine3.8-nginx
|
2019-10-03 20:08:37 +02:00
|
|
|
lxcbuild alpine3.8-php5.6
|
|
|
|
lxcbuild alpine3.8-nodejs8
|
|
|
|
lxcbuild alpine3.8-ruby2.4
|
|
|
|
lxcbuild alpine3.9
|
2019-11-17 15:24:26 +01:00
|
|
|
lxcbuild alpine3.9-nginx
|
2019-10-03 20:08:37 +02:00
|
|
|
lxcbuild alpine3.9-java8
|
|
|
|
lxcbuild alpine3.9-php7.2
|
|
|
|
lxcbuild alpine3.9-python2.7
|
|
|
|
lxcbuild alpine3.9-python3.6
|
|
|
|
lxcbuild alpine3.9-nodejs10
|
|
|
|
lxcbuild alpine3.9-ruby2.4
|
2019-11-17 15:24:26 +01:00
|
|
|
lxcbuild alpine3.9-ruby2.6
|
2019-10-03 20:08:37 +02:00
|
|
|
lxcbuild alpine3.9-tomcat7
|
|
|
|
lxcbuild 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-10-03 20:08:37 +02:00
|
|
|
lxcbuild activemq
|
|
|
|
lxcbuild mariadb
|
|
|
|
lxcbuild postgres
|
|
|
|
lxcbuild postgis
|
|
|
|
lxcbuild rabbitmq
|
|
|
|
lxcbuild redis
|
|
|
|
lxcbuild solr6
|
2019-02-26 20:24:02 +01:00
|
|
|
|
|
|
|
# Build applications
|
2019-06-02 09:34:31 +02:00
|
|
|
cd ${ROOT}/lxc-apps
|
2019-10-03 20:08:37 +02:00
|
|
|
lxcbuild ckan
|
|
|
|
lxcbuild crisiscleanup
|
|
|
|
lxcbuild cts
|
2019-11-17 17:36:25 +01:00
|
|
|
lxcbuild decidim
|
2019-10-03 20:08:37 +02:00
|
|
|
lxcbuild ecogis
|
|
|
|
lxcbuild frontlinesms
|
|
|
|
lxcbuild gnuhealth
|
|
|
|
lxcbuild kanboard
|
|
|
|
lxcbuild mifosx
|
|
|
|
lxcbuild motech
|
|
|
|
lxcbuild odoo
|
|
|
|
lxcbuild opendatakit
|
|
|
|
lxcbuild openmapkit
|
|
|
|
lxcbuild pandora
|
|
|
|
lxcbuild sahana
|
|
|
|
lxcbuild sahana-demo
|
|
|
|
lxcbuild sambro
|
|
|
|
lxcbuild seeddms
|
|
|
|
lxcbuild sigmah
|
|
|
|
lxcbuild ushahidi
|