Closed anildigital closed 1 year ago
Hi @anildigital. Firstly, I would like to apologise for not answering for a long time - this is a helper repo for MongooseIM, and we are rarely checking the issues.
/build.sh
is a script that you can execute inside mongooseim-builder
, so you can:
docker cp ~/.ssh/YOUR_PRIVATE_KEY mongooseim-builder:/root/.ssh/
. Make sure to remove the key afterwards, so it is not compromised. You can share the key in a volume as well.docker exec -i mongooseim-builder /build.sh foo git@gitlab.com:backend/foo.git 1567137e7337453d65373e00dacfd79f2d64a457
.You can execute bash
on the container as well, which would allow you to set up the repo credentials, and then you can just call /build.sh
.
Finally, you can just edit /build.sh
on the builder container before executing it.
I am closing this issue, because there are multiple workarounds, and it has been a long time since it was reported.
Not able to build the mongooseim when the repo is a private repo
docker exec -i mongooseim-builder /build.sh project_name repo commit
I am running our app named 'foo'
I get the following error.
I tried creating ssh keys inside a docker container and putting the public key in Gitlab and then
I tried using the git protocol URL as
It gets stuck at
Nothing seems helping.