Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]

[target.aarch64-apple-darwin]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]

[target.aarch64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]

[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]
2 changes: 2 additions & 0 deletions .devcontainer/alpine/Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM node:20-alpine
RUN apk add --no-cache bash
32 changes: 32 additions & 0 deletions .devcontainer/alpine/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "Node (Alpine ARM64)",
"build": {
"dockerfile": "Dockerfile-alpine"
},

// Ensure ARM64 platform
"runArgs": [
"--platform=linux/arm64",
"--network=host"
],
// Persist npm cache
"mounts": [
{
"source": "devcontainer-npm-cache-${devcontainerId}",
"target": "/root/.npm",
"type": "volume"
}
],
// Install useful Alpine + Node tooling + Rust + libdatadog build dependencies
"onCreateCommand": "apk add --no-cache git bash build-base python3 autoconf automake libtool gcc libc-dev curl musl-dev linux-headers libgcc gcompat && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source ~/.cargo/env && rustup target add aarch64-unknown-linux-gnu",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vscode.vscode-typescript-next",
"ms-azuretools.vscode-docker"
]
}
}
}
Loading