You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @guiguem Again you mentioned this in Tokai - I'm just adding an issue here while I'm on a roll
You mentioned there's a way to run the docker image forwarding your local system ssh key into the image so you can use it directly there without having to setup the permissions for git clone/push/pull/etc. - it'd be good to document this in the README.md of a package. Probably this one?
[Having said that, this documentation is not important if we choose gitlab, which we can't use ssh keys with...]
The text was updated successfully, but these errors were encountered:
Yes technically, it seems we need two things for using the ssh agent when building the image locally:
have BUILDKIT enabled (in most recent docker installation, this is enabled by default).
This can be done by either doing export DOCKER_BUILDKIT=1 or prepending the docker build command with DOCKER_BUILDKIT=1 (like DOCKER_BUILDKIT=1 docker build ...
need to expose the ssh agent socket
docker build --ssh default .
Therefore the total command to be sure it will work is:
DOCKER_BUILDKIT=1 docker build --ssh default .
I will update the README about these commands: please let me know if these work for you.
I guess this is a general thing that impacts all the HK packages (since they are all installed by ssh), but maybe people are more likely to build the entire software stack: I guess, my question is "is it fine to put this documentation only in hk-software or should we add this elsewhere?"
Hi @guiguem Again you mentioned this in Tokai - I'm just adding an issue here while I'm on a roll
You mentioned there's a way to run the docker image forwarding your local system ssh key into the image so you can use it directly there without having to setup the permissions for git clone/push/pull/etc. - it'd be good to document this in the
README.md
of a package. Probably this one?[Having said that, this documentation is not important if we choose gitlab, which we can't use ssh keys with...]
The text was updated successfully, but these errors were encountered: