Spotter-VM/build/build-all.sh

122 lines
3.1 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 czpf /srv/build/vm.tar.gz *
# Build native apps
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
2020-03-13 17:36:50 +01: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-eunit erlang-xmerl gawk grep libxslt py3-simplejson python3 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
2020-03-12 22:56:40 +01:00
# Build runtimes
cd ${ROOT}/lxc-shared
2020-03-12 22:56:40 +01:00
spoc-image build -p alpine3.8/image
spoc-image build -p alpine3.8-php5.6/image
spoc-image build -p alpine3.8-ruby2.4/image
2020-03-13 13:22:47 +01:00
spoc-image build -p alpine3.11/image
2020-03-13 17:36:50 +01:00
spoc-image build -p alpine3.11-java8/image
2020-03-13 13:22:47 +01:00
spoc-image build -p alpine3.11-php7.3/image
spoc-image build -p alpine3.11-python2.7/image
spoc-image build -p alpine3.11-python3.8/image
2020-03-13 17:36:50 +01:00
spoc-image build -p alpine3.11-ruby2.4/image
spoc-image build -p alpine3.11-ruby2.6/image
spoc-image build -p alpine3.11-tomcat7/image
spoc-image build -p alpine3.11-tomcat8.5/image
# Build services
cd ${ROOT}/lxc-services
2020-03-12 22:56:40 +01:00
spoc-image build -p activemq/image
spoc-image build -p mariadb/image
spoc-image build -p postgres/image
spoc-image build -p postgis/image
spoc-image build -p rabbitmq/image
spoc-image build -p redis/image
spoc-image build -p solr6/image
# Build applications
cd ${ROOT}/lxc-apps
2020-03-12 22:56:40 +01:00
2020-03-13 17:36:50 +01:00
spoc-image build -p ckan/ckan.image
spoc-image build -p ckan/ckan-datapusher.image
2020-03-12 22:56:40 +01:00
spoc-app publish ckan/app
spoc-image build -p crisiscleanup/image
spoc-app publish crisiscleanup/app
spoc-image build -p cts/image
spoc-app publish cts/app
spoc-image build -p decidim/image
spoc-app publish decidim/app
spoc-image build -p ecogis/image
# spoc-app publish ecogis/app
spoc-image build -p frontlinesms/image
spoc-app publish frontlinesms/app
spoc-image build -p gnuhealth/image
spoc-app publish gnuhealth/app
spoc-image build -p kanboard/image
spoc-app publish kanboard/app
spoc-image build -p mifosx/image
spoc-app publish mifosx/app
spoc-image build -p motech/image
spoc-app publish motech/app
spoc-image build -p odoo/image
spoc-app publish odoo/app
spoc-image build -p opendatakit/image
spoc-image build -p opendatakit-build/image
spoc-app publish opendatakit/app
spoc-image build -p openmapkit/image
spoc-app publish openmapkit/app
spoc-image build -p pandora/image
spoc-app publish pandora/app
spoc-image build -p sahana/image
spoc-app publish sahana/app
spoc-app publish sahana-demo/app
spoc-app publish sambro/app
spoc-image build -p seeddms/image
spoc-app publish seeddms/app
spoc-image build -p sigmah/image
spoc-app publish sigmah/app
spoc-image build -p ushahidi/image
spoc-app publish ushahidi/app