Skip to content

Commit 45c6606

Browse files
committed
devcontainer configuration
1 parent ae8956e commit 45c6606

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM debian
2+
3+
WORKDIR /
4+
RUN apt update -y && apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake unzip zip sudo libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
5+
6+
RUN git clone https://github.com/microsoft/vcpkg && cd vcpkg && git checkout 134505003bb46e20fbace51ccfb69243fbbc5f82
7+
RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics
8+
RUN /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus
9+
10+
RUN groupadd -r user && useradd -r -g user user --home /home/user && mkdir -p /home/user && chown user /home/user && echo "user ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/user
11+
WORKDIR /home/user
12+
RUN wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
13+
USER user
14+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
15+
RUN chmod +x rustup.sh
16+
RUN ./rustup.sh -y
17+
18+
USER root
19+
ENV HOME=/home/user

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "rustdesk",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
"BUILDKIT_INLINE_CACHE": "0"
7+
}
8+
},
9+
"workspaceMount": "source=${localWorkspaceFolder},target=/home/user/rustdesk,type=bind,consistency=cache",
10+
"workspaceFolder": "/home/user/rustdesk",
11+
"postStartCommand": "./entrypoint",
12+
"remoteUser": "user",
13+
"customizations": {
14+
"vscode": {
15+
"extensions": [
16+
"vadimcn.vscode-lldb",
17+
"mutantdino.resourcemonitor",
18+
"rust-lang.rust-analyzer",
19+
"tamasfe.even-better-toml",
20+
"serayuzgur.crates"
21+
],
22+
"settings": {
23+
"files.watcherExclude": {
24+
"**/target/**": true
25+
}
26+
}
27+
}
28+
}
29+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ flatpak/.flatpak-builder/debian-binary
4040
flatpak/build/**
4141
# bridge file
4242
lib/generated_bridge.dart
43+
# vscode devcontainer
44+
.gitconfig
45+
.vscode-server/
46+
.ssh
47+
.devcontainer/.*

0 commit comments

Comments
 (0)