add devcontainer

feature/devcontainer
Falk Werner 4 months ago
parent 7fa9dbefe3
commit c6a7205d47
No known key found for this signature in database

@ -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

@ -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…
Cancel
Save