[ckan-dev] Docker create_datastore

Ryan Brooks ryan at slatehorse.com
Fri May 25 13:32:08 UTC 2018


Hi Jorge,

Which version of CKAN are you using? For 2.8 that file is in /docker-entrypoint-initdb.d/00_create_datastore.sh (notably not .sql).

However, because it’s baked into the container in /docker-entrypoint-initdb.d, it should be run when the container is first created.

So the easy answer might be: skip over that and carry on.

Cheers,

Ryan

Further reading:

- https://docs.docker.com/samples/library/postgres/, details how to extend the image, and how /docker-entrypoint-initdb.d works.
- https://github.com/ckan/ckan/blob/2.8/contrib/docker/postgresql/Dockerfile#L15 shows where the file is added to the Docker image.
- https://github.com/ckan/ckan/blob/2.8/contrib/docker/postgresql/docker-entrypoint-initdb.d/00_create_datastore.sh is the file you’re after.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180525/1e7714df/attachment-0002.sig>


More information about the ckan-dev mailing list