mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Add devcontainer
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
f5a46c61d2
commit
31e42879e2
2 changed files with 53 additions and 0 deletions
29
.devcontainer/Dockerfile
Normal file
29
.devcontainer/Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG debian_version=slim-bookworm
|
||||
ARG rust_version=1.70.0
|
||||
FROM rust:${rust_version}-${debian_version}
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
nano\
|
||||
openssh-server \
|
||||
# for rust-analyzer vscode plugin
|
||||
pkg-config \
|
||||
# developer dependencies
|
||||
libunwind-dev \
|
||||
libpulse-dev \
|
||||
portaudio19-dev \
|
||||
libasound2-dev \
|
||||
libsdl2-dev \
|
||||
gstreamer1.0-dev \
|
||||
libgstreamer-plugins-base1.0-dev \
|
||||
libavahi-compat-libdnssd-dev && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN rustup component add rustfmt && \
|
||||
rustup component add clippy && \
|
||||
cargo install cargo-hack
|
24
.devcontainer/devcontainer.json
Normal file
24
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "Librespot Devcontainer",
|
||||
"dockerFile": "Dockerfile",
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
//"postCreateCommand": "",
|
||||
"customizations": {
|
||||
// Configure properties specific to VS Code.
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"dev.containers.copyGitConfig": true
|
||||
},
|
||||
"extensions": [
|
||||
"eamodio.gitlens",
|
||||
"github.vscode-github-actions",
|
||||
"rust-lang.rust-analyzer"
|
||||
]
|
||||
}
|
||||
},
|
||||
"containerEnv": {
|
||||
"GIT_EDITOR": "nano"
|
||||
}
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
Loading…
Reference in a new issue