Skip to content

Yarn no longer installed in devcontainer #4838

@JC-wk

Description

@JC-wk

Describe the bug
Since the yarn gpg issues #4836 it appears yarn has now been removed entirely

Steps to reproduce

  1. rebuild devcontainer
  2. run yarn
  3. command not found

Azure TRE release version (e.g. v0.14.0 or main):
main
Deployed Azure TRE components - click the (i) in the UI:
latest

I just noticed also we're running of dev images

“dev” images are rolling builds produced from the main branch for each image (e.g., go, cpp, dotnet, ruby). They serve as preview builds that incorporate the latest upstream OS packages, language/tool updates, and repository changes before a formal versioned release.
devcontainers/images#1628

switching to mcr.microsoft.com/vscode/devcontainers/python:3.12-bookworm might be recommended

Workarounds

Install yarn v1.22.22 via one of these methods by editing the dockerfile

Option 1 add gpg key and use last version to include yarn which was 3.0.4 (temporary option)

pin to 3.0.4-3.12-bookworm

FROM --platform="${TARGETPLATFORM}" mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}-bookworm
and add (line 18)

RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg \
  | sudo gpg \
        --batch \
        --yes \
        --dearmor \
        -o /usr/share/keyrings/yarn-archive-keyring.gpg

Option 2: install yarn via apt-get

Line 91
RUN npm install -g pajv@${PAJV_VERSION} yarn

Option 3: use npm

#4837

Metadata

Metadata

Assignees

No one assigned

    Labels

    has workarounda workaround is available for this issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions