Spotter-VM/build/build-all.sh

95 lines
2.0 KiB
Bash
Raw Normal View History

#!/bin/sh
set -ev
ROOT=$(dirname $(dirname $(realpath "${0}")))
# Build documentation
2019-06-05 13:19:22 +02:00
cd ${ROOT}/doc
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 *
# Build native apps
cd ${ROOT}/apk/acme-sh
abuild -F
cd ${ROOT}/apk/geos
apk add -U swig python2-dev
abuild -F
cd ${ROOT}/apk/gdal
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
abuild -F
cd ${ROOT}/apk/proj4
abuild -F
2019-06-03 11:24:16 +02:00
cd ${ROOT}/apk/rabbitmq-server
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
cd ${ROOT}/apk/postgis
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
abuild -F
cd ${ROOT}/apk/vmmgr
abuild -F
2019-06-04 19:16:46 +02:00
cd ${ROOT}/apk/wireguard
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
apk add -U libmnl-dev
2019-06-04 19:16:46 +02:00
abuild -F
# Build apd pack runtimes
cd ${ROOT}/lxc-shared
2019-10-03 20:08:37 +02:00
lxcbuild alpine3.8
lxcbuild alpine3.8-php5.6
lxcbuild alpine3.8-ruby2.4
lxcbuild alpine3.9
lxcbuild alpine3.9-java8
lxcbuild alpine3.9-php7.2
lxcbuild alpine3.9-python2.7
lxcbuild alpine3.9-python3.6
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
# Build services
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
# Build applications
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