Skip to content

Remote SSH issue with Docker on Push: module 'pygit2.credentials' has no attribute 'GIT_CREDTYPE_SSH_KEY' #301

@tduval-unifylogic

Description

@tduval-unifylogic

Hi! I am very interested in using the QuitStore!!

I have a git repository on a remote where I need to use id_rsa/ssh authentication and attemptign to perform a push and receive an attribute error: AttributeError: module 'pygit2.credentials' has no attribute 'GIT_CREDTYPE_SSH_KEY'

Not sure if this is a bug. I am assuming this is operator error where I am not configuring things properly for the container, and could use some help! I also figure there are others who have the same scenario and could benefit from a detailed explanation.

What has to be configured in order to get the ssh key to be recognized?

I have placed the following in the Dockerfile (and doing build before run) :

-- in builder section
USER root
RUN mkdir /root/.ssh/
RUN echo /Users/username/.ssh/id_rsa > /root/.ssh/id_rsa

-- in deploy section
QUIT_SSH_KEY_HOME=/root/.ssh

Command used to start the container:
docker run -d --name quitstore-esm -p 8080:8080 -v /path/to/repo:/data aksw/quitstore

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions