Skip to content

Commit

Permalink
Fix gpg Key Expiration for Debian Containers (#9497)
Browse files Browse the repository at this point in the history
Debian containers for yarn are having issues with key expirations. This change resolves that. Eventually the base images should be updated, but that timeline is unknown. There are a number of proposed solutions for the issue, but this one fixes ours.

References to the issue: yarnpkg/yarn#7866
Similar in AWS Builds: yarnpkg/yarn#7866
  • Loading branch information
GLStephen authored and mobfxoHB committed Aug 22, 2023
1 parent e27269a commit 5e9ee45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn-archive-keyring.gpg

# [Optional] Uncomment this section to install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends vim
Expand Down

0 comments on commit 5e9ee45

Please sign in to comment.