Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker compose build failed when running to vcs import < dependencies.repos #18

Open
Hezhexi2002 opened this issue Jan 29, 2023 · 6 comments

Comments

@Hezhexi2002
Copy link

@sea-bass Hi,as the title described,the build process failed when running to vcs import < dependencies.repos:
image
I don't know if it is due to the network setup on my host machine because I use clash for windows to proxy my network,but the error still occurs after I set the --build-arg http_proxy and --build-arg https_proxy to my host proxy configuration:
image
so I want ask you if there any solution and I'd appreciate it if you could give me some advice!

@sea-bass
Copy link
Owner

Ooh, that is tricky one...

You could try RUN sudo apt install openssl in the Dockerfile and change the contents of the dependencies.repos file to use the SSH form (e.g., [email protected]/ROBOTIS-GIT/turtlebot3.git)... or set up the git config with your proxy as part of the build.

Both of these possible solutions are described in this StackOverflow post

@Hezhexi2002
Copy link
Author

Ooh, that is tricky one...

You could try RUN sudo apt install openssl in the Dockerfile and change the contents of the dependencies.repos file to use the SSH form (e.g., [email protected]/ROBOTIS-GIT/turtlebot3.git)... or set up the git config with your proxy as part of the build.

Both of these possible solutions are described in this StackOverflow post

OK,thanks for your detailed reply,I'll try the sugeestios you have mentioned above and give you feedback if there is any progress!:-)

@Hezhexi2002
Copy link
Author

Ooh, that is tricky one...
You could try RUN sudo apt install openssl in the Dockerfile and change the contents of the dependencies.repos file to use the SSH form (e.g., [email protected]/ROBOTIS-GIT/turtlebot3.git)... or set up the git config with your proxy as part of the build.
Both of these possible solutions are described in this StackOverflow post

OK,thanks for your detailed reply,I'll try the sugeestios you have mentioned above and give you feedback if there is any progress!:-)

Update:Sorry to give you the feedback so late because I'm not at home these days,but now the installation seems to be ok after I turn off the ssl certificate follow the blog:
image
but I'm not sure whether this will impact my network afterwards,Anyway,I will continue to follow up the feedback if there is any problem after

@Hezhexi2002
Copy link
Author

Ooh, that is tricky one...
You could try RUN sudo apt install openssl in the Dockerfile and change the contents of the dependencies.repos file to use the SSH form (e.g., [email protected]/ROBOTIS-GIT/turtlebot3.git)... or set up the git config with your proxy as part of the build.
Both of these possible solutions are described in this StackOverflow post

OK,thanks for your detailed reply,I'll try the sugeestios you have mentioned above and give you feedback if there is any progress!:-)

Update:Sorry to give you the feedback so late because I'm not at home these days,but now the installation seems to be ok after I turn off the ssl certificate follow the blog: image but I'm not sure whether this will impact my network afterwards,Anyway,I will continue to follow up the feedback if there is any problem after

The error still occurred and I confused the apt-get update part with vcs import < dependencies.repos,the screenshot still shows the process of apt-get update not vcs import < dependencies.repos which means I have to try other solutions:-(

@Hezhexi2002
Copy link
Author

Hezhexi2002 commented Feb 9, 2023

@sea-bass Hi,sorry to response you so lately but it is because I'm working on a other project these days.However,the problem still occurs when I attempt to build the image again and I have already set the git proxy in the Dockerfile this time:
image
but it did not work at all,the error still exists:
image
so is means I can only install the project through local setup?Looking forward to your reply!:-)

@elsayedelsheikh
Copy link
Contributor

You can either add --recursive parameter to vcs in the docker file

RUN vcs import --recursive < dependencies.repos

or clone them locally in a new directory src then copy it to the workspace:
In a native terminal inside the repository

mkdir src
vcs import < dependencies.repos ./src/

And modify this line to COPY src/ ./src/

RUN vcs import < dependencies.repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants