From 193b352849258afe58efa6f0376ffb94d8450cec Mon Sep 17 00:00:00 2001 From: zjregee Date: Mon, 16 Sep 2024 12:20:01 +0000 Subject: [PATCH] feat: update devcontainer --- .devcontainer/Dockerfile | 14 -------------- .devcontainer/devcontainer.json | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index e22e5bd..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM mcr.microsoft.com/devcontainers/go:1-1.22-bookworm - -RUN apt-get update && apt-get install -y \ - git \ - build-essential \ - && rm -rf /var/lib/apt/lists/* - -RUN git clone -b liburing-2.7 https://github.com/axboe/liburing.git && \ - cd liburing && \ - ./configure --cc=gcc --cxx=g++ && \ - make -j$(nproc) && \ - make install && \ - cd ../ && \ - rm -rf liburing diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 730a5f2..a761c24 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { "name": "Go", - "dockerFile": "Dockerfile", - "postCreateCommand": "go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod tidy && go install golang.org/x/tools/cmd/goimports@latest" + "image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm", + "postCreateCommand": "go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod tidy" }