Skip to content

Error using the image in CI/CD pipelines #10

@albeus

Description

@albeus

I have been using this image in Gitlab pipelines. I use a standard way to add ssh keys to the environment, es:

    before_script:
    - eval $(ssh-agent -s)
    - echo -n "${DEV_AAI_KEY}" | ssh-add - > /dev/null
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh

Since the latest image version, my pipelines are broken:

bind: No such file or directory
unix_listener: cannot bind to path: /root/.ssh/sockets/aap_adm@wp-np2-26.ebi.ac.uk-22.LIXMnQy4cW5klzgB
lost connection

I think that the error is related to this changeset: 868516f#diff-56744b58678a7421584a05b2fe5341f5b117e4a21b8b12df1cad23bb13889b9d

In particular, the ssh config file requires the path "~/.ssh/sockets" to be present. Since we are not using the script /usr/local/bin/add-ssh-key this path is missing.

Probably it would be better to include in some way the required files in the image.
What do you think about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions