From fd5349442923e3f3abb4026d8d1730ff703488ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=B4=87=CA=80=C9=B4=E1=B4=85=20S=E1=B4=84=CA=9C?= =?UTF-8?q?=E1=B4=8F=CA=80=C9=A2=E1=B4=87=CA=80s?= Date: Sat, 20 Feb 2021 10:04:56 +0000 Subject: [PATCH] [tests] Pre-install Gemfile in devcontainer --- .devcontainer/Dockerfile | 7 ++++++- .devcontainer/devcontainer.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 82ba4822..0355f00d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,14 +6,19 @@ FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT} ENV DEBIAN_FRONTEND=noninteractive +COPY Gemfile /tmp/Gemfile + RUN \ apt-get update \ && \ apt-get -y install --no-install-recommends \ jq \ libjq-dev \ + libonig-dev \ gnupg2 \ && \ sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin \ && \ - curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | /bin/bash - + curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | /bin/bash - \ + && \ + bundle install --gemfile /tmp/Gemfile diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e664c344..156c901d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,6 +3,7 @@ { "name": "Ruby", "build": { + "context": "..", "dockerfile": "Dockerfile", "args": { // Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5