From c01fd3b015831ecfe437f29fe0a4487f6ede1ccd Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Sat, 11 Jan 2025 15:07:22 +0000 Subject: [PATCH] Move docker install to poststart of devcontainer --- .devcontainer/Containerfile | 8 -------- .github/install.sh | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.devcontainer/Containerfile b/.devcontainer/Containerfile index 8d37cd0..8edbec7 100644 --- a/.devcontainer/Containerfile +++ b/.devcontainer/Containerfile @@ -3,14 +3,6 @@ ARG BASE_VERSION="41" FROM ${BASE_IMAGE}:${BASE_VERSION} -USER root - -RUN dnf install -y \ - moby-engine \ - containerd \ - && dnf clean all \ - && rm -rf /var/cache/yum - USER gbraad RUN git clone https://github.com/gbraad/dotfiles.git /home/gbraad/.dotfiles \ diff --git a/.github/install.sh b/.github/install.sh index 5c2b843..17c9893 100644 --- a/.github/install.sh +++ b/.github/install.sh @@ -6,4 +6,11 @@ ln -s ~/.dotfiles /workspaces/dotfiles cd ~ +# install docker +sudo dnf install -y \ + moby-engine \ + containerd \ + && dnf clean all \ + && rm -rf /var/cache/yum + exit 0 \ No newline at end of file