-
Notifications
You must be signed in to change notification settings - Fork 4
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
building Docker from private repo #223
Comments
Original comment by GoRobotGo (Bitbucket: GoRobotGo). There are a number of ways it might work. Using your approach you need to put the private key in your repository and use an ADD command to move the key from your repository to the docker image. Another approach is since your private repository is already mounted when you are building the docker image, you can use ADD commands in your Dockerfile to move items from your github repository to the docker image. Yet another approach is to use something like: RUN git clone https://username:password@github.com/username/repository.git ${WS}/src/repository |
Original comment by Tyler Frasca (Bitbucket: tmfrasca5). So even for cloning the top github repo which contains the Docker file, I need to add the private key to that top level repo?? |
Original comment by GoRobotGo (Bitbucket: GoRobotGo). You give a key to cloudsim.io. That allows it access to the github repo and it gets the docker file from there. So, no - you don't need to add the private key to the repo to get that. You only need to add the private key if you want to be able to run a git clone command within your docker file. In the example you can also see it uses ADD to move the footstep file from the repository to the docker image. |
Original comment by Tyler Frasca (Bitbucket: tmfrasca5). Yeah, that is what I have been doing, but I get:
when entering the key to cloudsim should it be line separating (like the way it is in the file) or all on a single line? |
Original comment by GoRobotGo (Bitbucket: GoRobotGo). When I enter the key in cloudsim I do this in a window: more ~/.ssh/id_rsa and then I copy everything - that includes the begin key and end key line. I then paste that into cloudsim. |
Original comment by Tyler Frasca (Bitbucket: tmfrasca5). Thanks, the issue was that I wasn't copying the full key -> including the begin and end lines |
Original report (archived issue) by Tyler Frasca (Bitbucket: tmfrasca5).
Hi, locally I can clone my private repository and then build it with:
But, I am having issues locally building the docker directly from the private repo.
I get this error:
Thus I am not able build my docker on the cloud.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: