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

(fix) install ssh to base image #1890

Merged
merged 1 commit into from
Jun 19, 2020
Merged

(fix) install ssh to base image #1890

merged 1 commit into from
Jun 19, 2020

Conversation

abeyum
Copy link
Contributor

@abeyum abeyum commented Jun 19, 2020

What this PR does / why we need it:
When attempting to clone a repository from within the docker images we encountered the error pasted below. In order to connect to github, we need the appropriate ssh credentials passed in via a env variable SSH_AUTH_SOCK. We aren't using file based ssh keys, instead we are using an ssh agent which is then shared with the container. Unfortunately, the ability to ssh is missing, hence this pull request.

Error: Command "git clone --recursive --depth=1 --branch=development [email protected]:<owner>/<repo>git /project/.garden/sources/module/app--61c96b198b" failed with code 128:
--
Cloning into '/project/.garden/sources/module/app--61c96b198b'...
error: cannot run ssh: No such file or directory
fatal: unable to fork

Which issue(s) this PR fixes:
n/a

Special notes for your reviewer:
n/a

Copy link
Collaborator

@edvald edvald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and simple :) Thanks @abeyum!

@edvald edvald merged commit dbc601b into garden-io:master Jun 19, 2020
@abeyum abeyum deleted the patch-1 branch June 19, 2020 20:22
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

Successfully merging this pull request may close these issues.

2 participants