Building the docker images with the related packages and python scripts #57
Unanswered
mohomadaqeel
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It may be related to where in the Dockerfile you put these instructions, and how you are managing the repository code. What I imagine happening is this: you clone the repo on your computer, edit the session file and then Docker file creates a container by cloning the repo again, overwriting your changes. I am not sure what may be happening with the copying of your files. You can send me the dockerfile via email so I can check. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since I'm new to Docker, this might seem like a basic question. To submit my work, I'm trying to build a Docker image where our developed Python scripts will be available in the /scripts folder inside the container after it's started, allowing you to use the ./start.sh script for evaluation. To do this, I added the following COPY commands in the Dockerfile:
COPY to_copy/c_ver2.py $HOME/CrazySim/ros2_ws/src/crazyswarm2/crazyflie/scripts/
COPY to_copy/node_generator_ver5.py $HOME/CrazySim/ros2_ws/src/crazyswarm2/crazyflie/scripts/
However, after building the image and starting the container, the files are not appearing in the expected folder. I also did not get any error message in the terminal as well.
In addition, I modified the session.yml and setup.sh files before building the image, but these changes are not reflected either.
But I verified that the necessary installations and dependencies I added in the Dockerfile are available inside the container.
Could you please help me understand what might be going wrong?
Beta Was this translation helpful? Give feedback.
All reactions