mirror of
https://github.com/NexVeridian/ark-invest-api-rust.git
synced 2025-09-02 01:49:11 +00:00
feat: swap to crane
This commit is contained in:
parent
a7b5e5fb34
commit
c2267a4bea
10 changed files with 2975 additions and 102 deletions
|
@ -4,16 +4,16 @@ FROM mcr.microsoft.com/devcontainers/rust:bookworm
|
|||
RUN apt-get update && \
|
||||
apt install -y build-essential xz-utils musl-tools musl-dev gcc-multilib pkg-config libssl-dev clang mold
|
||||
|
||||
RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') && \
|
||||
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
|
||||
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit && \
|
||||
rm -rf lazygit.tar.gz
|
||||
# RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') && \
|
||||
# curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
|
||||
# sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit && \
|
||||
# rm -rf lazygit.tar.gz
|
||||
|
||||
RUN BTOP_VERSION=$(curl -s "https://api.github.com/repos/aristocratos/btop/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') && \
|
||||
wget "https://github.com/aristocratos/btop/releases/download/v${BTOP_VERSION}/btop-x86_64-linux-musl.tbz" && \
|
||||
sudo tar -xvf btop-x86_64-linux-musl.tbz && \
|
||||
cd btop && ./install.sh && cd .. && \
|
||||
rm -rf btop-x86_64-linux-musl.tbz btop
|
||||
# RUN BTOP_VERSION=$(curl -s "https://api.github.com/repos/aristocratos/btop/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') && \
|
||||
# wget "https://github.com/aristocratos/btop/releases/download/v${BTOP_VERSION}/btop-x86_64-linux-musl.tbz" && \
|
||||
# sudo tar -xvf btop-x86_64-linux-musl.tbz && \
|
||||
# cd btop && ./install.sh && cd .. && \
|
||||
# rm -rf btop-x86_64-linux-musl.tbz btop
|
||||
|
||||
RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
|
||||
# RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
|
||||
# cargo install cargo-nextest --locked
|
||||
|
|
|
@ -31,13 +31,17 @@
|
|||
],
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/git:1": {}
|
||||
// "ghcr.io/devcontainers/features/nix:1": {
|
||||
// "packages": [
|
||||
// "btop",
|
||||
// "lazygit"
|
||||
// ]
|
||||
// }
|
||||
"ghcr.io/devcontainers/features/git:1": {},
|
||||
"ghcr.io/devcontainers/features/docker-in-docker": {},
|
||||
"ghcr.io/devcontainers/features/nix:1": {
|
||||
"packages": [
|
||||
"btop",
|
||||
"lazygit",
|
||||
"cargo-nextest",
|
||||
"nixpkgs-fmt"
|
||||
],
|
||||
"extraNixConfig": "experimental-features = nix-command flakes"
|
||||
}
|
||||
},
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
@ -65,7 +69,8 @@
|
|||
"ms-azuretools.vscode-docker",
|
||||
"redhat.vscode-yaml",
|
||||
"GitHub.copilot",
|
||||
"GitHub.copilot-chat"
|
||||
"GitHub.copilot-chat",
|
||||
"jnoortheen.nix-ide"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue