I have create docker-compose.yml with running the postgres image with the volumes attributes set so it copies a list of .sql scripts from a folder into docker-entrypoint-initdb.d/
E.g.
db:
image: postgres
volumes:
- ./migrations:/docker-entrypoint-initdb.d/
This works locally when I run docker-compose up.
I was wondering how would I achieve the same result using the Bamboo build plan?
I can run the postgres image using the docker task and run docker image but I can't seen to the replicate the initial sql scripts on startup.
I set the following properties:
Host directories: Container data volume
/migrations /docker-entrypoint-initdb.d/
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.