From 1151e212543263c46a183fc582211cbd7791e500 Mon Sep 17 00:00:00 2001 From: Viginum-DataScientist-6 <210390336+Viginum-DataScientist-6@users.noreply.github.com> Date: Wed, 30 Jul 2025 13:38:26 +0000 Subject: [PATCH] feat(devcontainer): install prebuilt nektos/act executable - Remove the now-unneeded gh CLI devcontainer feature. --- .devcontainer/Dockerfile | 8 ++++++-- .devcontainer/devcontainer.json | 7 ++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e6b7108..887d576 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -19,7 +19,7 @@ RUN pipx install poetry==${POETRY_VERSION} WORKDIR /app COPY pyproject.toml poetry.lock setup.py README.md ./ # pre-install dependencies -RUN --mount=type=cache,target=/root/.cache poetry install --no-root +RUN --mount=type=cache,target=/root/.cache poetry install --no-root COPY notebooks /app/notebooks/ COPY d3lta /app/d3lta/ @@ -27,4 +27,8 @@ RUN --mount=type=cache,target=/root/.cache poetry install FROM d3lta-prod AS d3lta-dev -RUN --mount=type=cache,target=/root/.cache poetry install --with dev \ No newline at end of file +RUN --mount=type=cache,target=/root/.cache poetry install --with dev + +# install nektos/act as specified in https://nektosact.com/installation/index.html#bash-script +# the -b flag specifies the target directory (cf. https://github.com/nektos/act/blob/61396d8085a9d812cebf94fa954f5938d48bf2b9/install.sh#L13) +RUN curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash -s -- -b /usr/bin diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8f4c736..34e2851 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,6 +11,7 @@ ] } }, - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {} -} \ No newline at end of file + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {} + } +}