From 73646494c23be1be0b134a980d2ca79c7416a274 Mon Sep 17 00:00:00 2001 From: John Stairs Date: Fri, 10 Nov 2023 20:20:26 +0000 Subject: [PATCH] Update to Yardl 0.3.2 --- .devcontainer/Dockerfile | 8 +++++--- .devcontainer/devcontainer.json | 2 +- .github/workflows/ci.yml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e08d20e..31b0e23 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,3 +1,5 @@ +ARG DEVCONTAINER_BASE=mcr.microsoft.com/devcontainers/base:1.0.9-ubuntu-22.04 + ######################################################### # file-normalizer stage # In order to use BuildKit remote caching, input files must have @@ -7,7 +9,7 @@ # subsequent stage and normalize the permissions. ######################################################### -FROM mcr.microsoft.com/oss/busybox/busybox:1.33.1 as file-normalizer +FROM --platform=linux/amd64 ${DEVCONTAINER_BASE} as file-normalizer COPY environment.yml \ .devcontainer/devcontainer.bashrc \ @@ -20,7 +22,7 @@ RUN chmod -R 555 /data/ # Installs all dependencies and tooling for development. ######################################################### -FROM mcr.microsoft.com/vscode/devcontainers/base:0.201.8-focal AS devcontainer +FROM --platform=linux/amd64 ${DEVCONTAINER_BASE} AS devcontainer # Install needed packages and setup non-root user. ARG USERNAME="vscode" @@ -89,7 +91,7 @@ RUN mkdir -p /home/vscode/.local/share/CMakeTools \ && chown vscode:conda /home/vscode/.local/share/CMakeTools/cmake-tools-kits.json # Install the yardl tool -ARG YARDL_VERSION=0.3.1 +ARG YARDL_VERSION=0.3.2 RUN wget --quiet "https://github.com/microsoft/yardl/releases/download/v${YARDL_VERSION}/yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" \ && tar -xzf "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" \ && mv yardl "/opt/conda/envs/${CONDA_ENVIRONMENT_NAME}/bin/" \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c2a36ac..da591a8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,7 +6,7 @@ "dockerfile": "Dockerfile", "context": ".." }, - "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], + "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", "--platform=linux/amd64"], // Configure tool-specific properties. "customizations": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8163e9d..f853a09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: mkdir ${YARDL_DIR} cd ${YARDL_DIR} echo "${{github.workspace}}/yardl" >> $GITHUB_PATH - YARDL_VERSION=0.3.1 + YARDL_VERSION=0.3.2 wget --quiet "https://github.com/microsoft/yardl/releases/download/v${YARDL_VERSION}/yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" tar -xzf "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" rm "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz"