From b87bfb8c96c8491f1228e0258d05119f3420db05 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 9 Nov 2023 08:30:07 -0600 Subject: [PATCH] Fix Yarn version in devcontainer (#27788) --- .devcontainer/Dockerfile | 2 +- .devcontainer/post-create.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3c96546b4..b5e72a097 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -15,6 +15,6 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ RUN gem install foreman # [Optional] Uncomment this line to install global node packages. -RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g yarn" 2>&1 +RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && corepack enable" 2>&1 COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 8d4d63847..20f3437f4 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -11,6 +11,7 @@ bundle install git checkout -- Gemfile.lock # Fetch Javascript dependencies +corepack prepare yarn install --immutable # [re]create, migrate, and seed the test database