|
I'm running the I'd like to make the |
Replies: 2 comments 3 replies
|
Here's what I did instead for now: entry.sh: Dockerfile: Plus the relevant service in docker-compose with volumes mount for completeness: |
|
Hi @m3h0w,
So, you can try using the same commands you had in the mongo-seed:
# (...)
entrypoint: ["sh"]
command: ["-c", "seed; sleep infinity"]I didn't test it with Docker Compose, but it should work, as the following Docker command works exactly as you would like to: docker run --rm --entrypoint="sh" pkosiec/mongo-seeding -c 'seed; sleep infinity'Let me know if that helps. Cheers! |
Hi @m3h0w,
You don't need to modify the image. You can easily change the
entrypointandcommandvia Docker Compose file:So, you can try using the same commands you had in the
entry.shscript:I didn't test it with Docker Compose, but it should work, as the following Docker command works exactly as you would like to:
Let me know if that helps. Cheers!