This repository contains the components necessary to create a basic Docker container for ODK Aggregate the official server that stores, analyzes, and presents XForm survey data collected using ODK Collect or other OpenRosa-compliant applications.
The image is based on a Tomcat6 image, and bundles an ODK Aggregate v1.6.1.
ODK_HOSTNAME=
ODK_ADMIN_USER=
ODK_ADMIN_USERNAME=admin
ODK_AUTH_REALM=ODK Aggregate
ODK_PORT=8080
ODK_PORT_SECURE=8443
DATABASE_URL=jdbc:postgresql://db:5432/odk
POSTGRES_USER=postgres
POSTGRES_PASSWORD=
FLYWAY=https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.0.3/flyway-commandline-4.0.3-linux-x64.tar.gz
ODK=https://github.com/opendatakit/aggregate/releases/download/v1.6.1/ODK-Aggregate-v1.6.1-Linux-x64.run
Image can be built with the classic docker command
docker build -t unicef/odk:dev .
or more easily using the provided Makefile
that creates a local cache and add some
make build
build
: build docker imageunicef/odk:dev
imagerun
: run the server. Available on port8080
shell
: run the container (not the server) and open a bash shellpush
: push the image to Docker HUB.cache
: copy required files in the localcache
folder. Intended to be used for multiple buildsdebug
: map some directories to host's folder, to faciltate development and debugging.
a docker-composer.yml
is provided.