From ab9ff56ed2d3a81ced3458c2f3f8955e53cf6e57 Mon Sep 17 00:00:00 2001 From: Raz Luvaton <16746759+rluvaton@users.noreply.github.com> Date: Wed, 1 Jan 2025 16:22:18 +0200 Subject: [PATCH] chore: Create devcontainer.json (#13520) * Create devcontainer.json * update devcontainer * remove useless features --- .devcontainer/Dockerfile | 13 +++++++++++++ .devcontainer/devcontainer.json | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000000..9dd627b01abe --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,13 @@ +FROM rust:bookworm + +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + # Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131 + && apt-get purge -y imagemagick imagemagick-6-common + +# Add protoc +# https://datafusion.apache.org/contributor-guide/getting_started.html#protoc-installation +RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip \ + && unzip protoc-25.1-linux-x86_64.zip -d $HOME/.local \ + && rm protoc-25.1-linux-x86_64.zip + +ENV PATH="$PATH:$HOME/.local/bin" \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000000..1af22306ed8c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,16 @@ +{ + "build": { + "dockerfile": "./Dockerfile", + "context": "." + }, + "customizations": { + "vscode": { + "extensions": [ + "rust-lang.rust-analyzer" + ] + } + }, + "features": { + "ghcr.io/devcontainers/features/rust:1": "latest" + } +}