Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Error with docker-compose #26

Open
citizenrich opened this issue Oct 16, 2018 · 6 comments
Open

Error with docker-compose #26

citizenrich opened this issue Oct 16, 2018 · 6 comments

Comments

@citizenrich
Copy link

citizenrich commented Oct 16, 2018

The docker-compose.yml db fails and exits with:

: invalid option /docker-entrypoint-initdb.d/create-target-db.sh: line 2: set: -
dhis2-database | set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]

To reproduce, just run only docker-compose up using Docker for Mac (beta) 2.0.0.0-beta1-mac75 (27117). I can have a try tomorrow with stable but I'm not sure it related to docker versions.

@yjaques
Copy link

yjaques commented Feb 5, 2019

Same issue. Any fix or workaround?

@citizenrich
Copy link
Author

ping @pgracio

@gjlisiak
Copy link

Also having issues with docker-compose.

dhis2-database | /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-web | wait-for-it.sh: waiting for database:5432 without a timeout
dhis2-database exited with code 2

@nastib
Copy link

nastib commented Oct 23, 2019

I also having a same issues with docker-compose !
dhis2-database | /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 ...]

@yjaques
Copy link

yjaques commented Oct 23, 2019

Dear @nastib I had the good fortune to meet with the DHIS2 team a couple weeks back, and got the whole situation clarified.

  1. do NOT use this docker container, it is out of date, no longer maintained!
  2. there are no good instructions on the web, I think the team will do that soon.
  3. they helped me get everything up and running using their official image and I wrote some instructions for it, when I get some time in the next weeks I will go ahead and get that up on github, I just have too much on my plate right now, but the nuts and bolts are in the attached markdown.
    README.md.zip

@rrowlands
Copy link
Contributor

The formal documentation for what @yjaques described can be found here:

https://developers.dhis2.org/2019/10/dhis2-and-docker/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants