This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new ab9ff56ed2 chore: Create devcontainer.json (#13520)
ab9ff56ed2 is described below
commit ab9ff56ed2d3a81ced3458c2f3f8955e53cf6e57
Author: Raz Luvaton <[email protected]>
AuthorDate: Wed Jan 1 16:22:18 2025 +0200
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(+)
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000000..9dd627b01a
--- /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 0000000000..1af22306ed
--- /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"
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]