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

Development container broken due to expired GPG key #10698

Closed
koxu1996 opened this issue Dec 13, 2024 · 2 comments · Fixed by #10836
Closed

Development container broken due to expired GPG key #10698

koxu1996 opened this issue Dec 13, 2024 · 2 comments · Fixed by #10836

Comments

@koxu1996
Copy link

koxu1996 commented Dec 13, 2024

The latest devcontainer dev is based on devbox:1.0 image:

"image": "aztecprotocol/devbox:1.0",

However, if you try to use it, installation of docker-in-docker fails with:

GPG error: https://cli.github.com/packages stable InRelease: The following signatures were invalid: EXPKEYSIG 23F3D4EA75716059 GitHub CLI <[email protected]>

You can trigger the same GPG issue with a below one-liner:

docker run -it --rm --entrypoint /bin/bash aztecprotocol/devbox:1.0 -c "apt update"

For upstream report see cli/cli#9569.

The simplest solution is to update devbox image, you can either:

  • rebuild container from scratch,
  • add step fetching new GPG key.
@koxu1996
Copy link
Author

koxu1996 commented Dec 13, 2024

Workaround

  1. Prepare empty directory:
mkdir /tmp/devbox-fixed
cd /tmp/devbox-fixed
  1. Create the following Dockerfile:
FROM docker.io/aztecprotocol/devbox:1.0

RUN wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
    && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
  1. Build image, while overwriting the original tag:
docker build -t aztecprotocol/devbox:1.0 .
  1. Run devcontainer dev and be happy that it works 😌.

@koxu1996 koxu1996 changed the title devcontainer broken due to expired GPG key Development container broken due to expired GPG key Dec 13, 2024
@alexghr
Copy link
Contributor

alexghr commented Dec 18, 2024

Hi @koxu1996, thanks for raising this. devbox:1.0 is an old version of the dev container image. You can use aztecprotocol/devbox:1.1 which contains the right versions of our toolchains.

PR here to bump devcontainer #10836

@alexghr alexghr linked a pull request Dec 18, 2024 that will close this issue
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 a pull request may close this issue.

2 participants