alessfg / docker-ethercis

Docker environment for EtherCIS, an open source platform compatible with the OpenEHR standard
MIT License
8 stars 18 forks source link

postgres/Dockerfile copying to wrong destination #2

Closed rcruicks closed 8 years ago

rcruicks commented 8 years ago

tried getting this to work on IBM Bluemix - found that the COPY of the 01 and 02 scripts don't show up -- missing / on target directory

< COPY ./01_db_creation.sh ./docker-entrypoint-initdb.d

COPY ./01_db_creation.sh ./docker-entrypoint-initdb.d/ < COPY ./02_db_init.sh ./docker-entrypoint-initdb.d COPY ./02_db_init.sh ./docker-entrypoint-initdb.d/

alessfg commented 8 years ago

I have just tested on Windows 10 and Ubuntu and it seems to be running correctly on both platforms. Which OS does the IBM Bluemix system use? The files might not be copying correctly due to some OS specific path inference.

Can you try replacing COPY ./01_db_creation.sh ./docker-entrypoint-initdb.d by COPY ./01_db_creation.sh ./docker-entrypoint-initdb.d/01_db_creation.sh and COPY ./02_db_init.sh ./docker-entrypoint-initdb.d by COPY ./02_db_init.sh ./docker-entrypoint-initdb.d/02_db_init.sh in the postgres Dockerfile and see if it works?

rcruicks commented 8 years ago

that would work too - because the directory doesn't exist before the first copy.it is created as a file, then overwritten by the second copy.