From a5b61b884821176bba2808546aa16009db3f0f90 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Wed, 27 Nov 2024 21:09:57 +0100 Subject: [PATCH] bring back devcontainer feature for go dockerfile install is not faster --- .devcontainer/Dockerfile | 11 ----------- .devcontainer/devcontainer.json | 3 +++ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a5c4aeed4..a75c539ce 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -42,17 +42,6 @@ RUN mkdir -p /root/.docker && echo "{}" > /root/.docker/config.json # Maintain SSH_AUTH_SOCK env var when using sudo RUN mkdir -p /etc/sudoers.d && echo 'Defaults env_keep += "SSH_AUTH_SOCK"' > /etc/sudoers.d/ssh_auth_sock -# Install Go 1.22 -RUN bash -c 'ARCH=$(uname -m | sed "s/x86_64/amd64/" | sed "s/aarch64/arm64/") && \ - curl -L https://go.dev/dl/go1.22.9.linux-${ARCH}.tar.gz | tar -C /usr/local -xzf - && \ - /usr/local/go/bin/go install -v golang.org/x/tools/gopls@latest && \ - /usr/local/go/bin/go install -v github.com/go-delve/delve/cmd/dlv@latest && \ - /usr/local/go/bin/go install -v honnef.co/go/tools/cmd/staticcheck@latest && \ - /usr/local/go/bin/go install -v github.com/cweill/gotests/gotests@latest && \ - /usr/local/go/bin/go install -v github.com/fatih/gomodifytags@latest && \ - /usr/local/go/bin/go install -v github.com/josharian/impl@latest && \ - /usr/local/go/bin/go install -v github.com/haya14busa/goplay/cmd/goplay@latest' - # Switch to the vscode user provided by the base image USER vscode diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8401994e5..16622529d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -16,6 +16,9 @@ // Add sshd to support gh cli codespace cp. "ghcr.io/devcontainers/features/sshd:1": { "version": "latest" + }, + "ghcr.io/devcontainers/features/go:1": { + "version": "1.22" } }, "remoteUser": "vscode",