From 025bab732d19e1115708f7cc4742b91ff80c9421 Mon Sep 17 00:00:00 2001 From: Markus Petke Date: Wed, 24 Jan 2024 14:09:43 +0100 Subject: [PATCH] fix tag --- Dockerfiles/cpp/.devcontainer/Dockerfile | 4 +++- Dockerfiles/cpp/.devcontainer/devcontainer.json | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfiles/cpp/.devcontainer/Dockerfile b/Dockerfiles/cpp/.devcontainer/Dockerfile index 3cf148d..1dec1eb 100644 --- a/Dockerfiles/cpp/.devcontainer/Dockerfile +++ b/Dockerfiles/cpp/.devcontainer/Dockerfile @@ -18,7 +18,7 @@ FROM --platform=$BUILDPLATFORM ubuntu:22.04 as builder -ARG SDK_TAG=v0.4.1 +ARG SDK_TAG RUN echo $SDK_TAG > /container/cpp/version.txt @@ -62,6 +62,8 @@ RUN conan remove --builds --src --force '*' FROM --platform=$TARGETPLATFORM ubuntu:22.04 as final +ARG SDK_TAG + RUN apt-get --fix-missing update && apt-get upgrade -y && \ apt-get install -y jq sudo curl wget git \ # install cpp packages diff --git a/Dockerfiles/cpp/.devcontainer/devcontainer.json b/Dockerfiles/cpp/.devcontainer/devcontainer.json index f153c93..fa7653d 100644 --- a/Dockerfiles/cpp/.devcontainer/devcontainer.json +++ b/Dockerfiles/cpp/.devcontainer/devcontainer.json @@ -2,7 +2,10 @@ "name": "Base Container", "build": { "dockerfile": "Dockerfile", - "context": "../../.." + "context": "../../..", + "args": { + "SDK_TAG": "v0.4.1" + } }, "features": { "ghcr.io/devcontainers/features/git:1.1.5": {