Wow, saw the dhis2 docker image available.
Tried to run it from the docker repo but failed with the following exception:
Hibernate configuration loaded, using dialect: org.hisp.dhis.hibernate.dialect.DhisPostgresDialect, region factory: org.hibernate.cache.ehcache.EhCacheRegionFactory (DefaultHibernateConfigurationProvider.java [localhost-startStop-1])
Aug 23, 2019 10:13:35 AM org.postgresql.Driver connect
SEVERE: Connection error:
org.postgresql.util.PSQLException: The connection attempt failed.
Try to compile and run with the default database following the instructions.
But the database is not being create. Exits with the following error:
/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/create-target-db.sh
: invalid option /docker-entrypoint-initdb.d/create-target-db.sh: line 2: set: -
dhis2-database | set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [–] [arg …]
dhis2-database exited with code 2
I see, looks like you you are using old docker image. Dhis-web is the old image repository, that was initiated and supported by @pgracio for a long time. We haven’t removed it, because it is still used by community. All the other repositories (core-dev, core) are supported by DHIS2 team and that was what my first answer was about. We encourage community to give our official images a try, but If you want to continue using the old image, I will let others who uses the same repository answer.