mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
add devcontainer
This commit is contained in:
parent
7fa9dbefe3
commit
c6a7205d47
25
.devcontainer/Dockerfile
Normal file
25
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt update && apt install -y --no-install-recommends \
|
||||||
|
ca-certificates \
|
||||||
|
git \
|
||||||
|
openssh-client \
|
||||||
|
build-essential \
|
||||||
|
pkg-config \
|
||||||
|
cmake \
|
||||||
|
clang-tidy \
|
||||||
|
valgrind \
|
||||||
|
libgtest-dev \
|
||||||
|
libgmock-dev \
|
||||||
|
libfuse3-dev \
|
||||||
|
libwebsockets-dev
|
||||||
|
|
||||||
|
ARG USERNAME=user
|
||||||
|
ARG USER_UID=1000
|
||||||
|
ARG USER_GID=$USER_UID
|
||||||
|
|
||||||
|
RUN groupadd --gid $USER_GID $USERNAME
|
||||||
|
RUN useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
|
||||||
|
|
||||||
|
USER $USERNAME
|
23
.devcontainer/devcontainer.json
Normal file
23
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile",
|
||||||
|
"context": ".."
|
||||||
|
},
|
||||||
|
"capAdd": "SYS_ADMIN",
|
||||||
|
"runArgs":["--device", "/dev/fuse"],
|
||||||
|
"mounts": [{"source": "${localEnv:HOME}/.ssh", "target": "/home/user/.ssh", "type": "bind"}],
|
||||||
|
|
||||||
|
"remoteUser": "user",
|
||||||
|
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"ms-vscode.cpptools-extension-pack",
|
||||||
|
"ms-vscode.cmake-tools"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.defaultProfile.linux": "bash"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user