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

Add gnupg2 to the SageMaker Distribution #158

Open
athewsey opened this issue Jan 8, 2024 · 2 comments
Open

Add gnupg2 to the SageMaker Distribution #158

athewsey opened this issue Jan 8, 2024 · 2 comments

Comments

@athewsey
Copy link

athewsey commented Jan 8, 2024

For organizations that sign git commits with GPG, it would be helpful if GPG was installed in the SageMaker distribution by default?

For now, I've got it working by adding an entry to the SMStudio lifecycle configuration script like below, to install at run time:

if ! command -v gpg &> /dev/null
then
    echo "gpg not found: Trying to sudo apt-get install gnupg2"
    sudo apt-get install gnupg2
fi
@athewsey
Copy link
Author

Recently, I'm finding that the above no longer works properly with password-protected GPG keys in SMStudio... Trying to git commit produces:

error: gpg failed to sign the data

...and trying to gpg -s just hangs without prompting for the key password. pinentry seems to be installed fine, and killing gpg-agent doesn't seem to help.

@athewsey
Copy link
Author

Finally found a workaround that seems to solve the pinentry failures (on SageMaker Distribution 1.7)... Run:

export GPG_TTY=$(tty)

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

No branches or pull requests

1 participant