-
I'm running the I'd like to make the |
Beta Was this translation helpful? Give feedback.
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:
|
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
Hi @m3h0w,
You don't need to modify the image. You can easily change the
entrypoint
andcommand
via Docker Compose file:So, you can try using the same commands you had in the
entry.sh
script: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!