Private reposetory in docker are a bad idea #54
Replies: 1 comment 1 reply
-
I do not think the problem is related to the usage of a private repository. I think something is wrong with the start CMD used in your docker container. What start CMD did you use in the docker container? You can add a sleep command to your start command to make sure that your container stays alive, even when the start command fails to execute. The last line of your Dockerfile should then look like this: After starting the competition environment, you can inspect what happened during the start by using running Please let me know if this helped you. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
we just want to leave the hint that its not a good idea to use private repository to build a docker image.
Everything looks fine when you use
RUN git clone https://username:password@github.com/repository.git
in the dockerfile expect of the container dies immediately after start when using thestart_competition_environment.sh
magic. Withdocker run
the container starts and the cloned repository is present and even the ros nodes are executable.Best regards and have fun
WeedInspector
Beta Was this translation helpful? Give feedback.
All reactions