Describe the bug
Since the yarn gpg issues #4836 it appears yarn has now been removed entirely
Steps to reproduce
- rebuild devcontainer
- run yarn
- 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
Describe the bug
Since the yarn gpg issues #4836 it appears yarn has now been removed entirely
Steps to reproduce
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
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-bookwormFROM --platform="${TARGETPLATFORM}" mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}-bookwormand add (line 18)
Option 2: install yarn via apt-get
Line 91
RUN npm install -g pajv@${PAJV_VERSION} yarnOption 3: use npm
#4837