-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devcontainer: add manifest and Dockerfile
Devcontainer allows to develop software within a container which is isolated from the system, except for passing the workspace to the container. This allows the development on non-Linux systems such as macOS without having to run a full-blown virtual machine, but only a small container (where the Linux layer is either remote or in a small QEMU instance via e.g. Colima). Signed-off-by: Tan Siewert <[email protected]>
- Loading branch information
1 parent
8335227
commit 7db29d2
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
flex \ | ||
swig \ | ||
bison \ | ||
meson \ | ||
device-tree-compiler \ | ||
libyaml-dev \ | ||
cmake \ | ||
pkg-config \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG USERNAME=vscode | ||
ARG GROUPNAME=vscode | ||
|
||
# If you are on macOS using Colima with virtiofs or 9p, you may need to update the UID/GID values to match your host system. | ||
# ARG USER_UID=501 | ||
# ARG USER_GID=20 | ||
# | ||
# RUN groupmod --gid $USER_GID -o $GROUPNAME \ | ||
# && usermod --uid $USER_UID --gid $USER_GID $USERNAME \ | ||
# && chown -R $USER_UID:$USER_GID /home/$USERNAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "culvert dev environment", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/python:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/meson-asdf:2": {}, | ||
"ghcr.io/devcontainers/features/git:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-azuretools.vscode-docker", | ||
"ms-python.python", | ||
"ms-vscode.cmake-tools", | ||
"ms-vscode.cpptools-extension-pack", | ||
"zxh404.vscode-proto3" | ||
], | ||
"settings": { | ||
"python.pythonPath": "/usr/local/bin/python3" | ||
} | ||
} | ||
}, | ||
"postCreateCommand": "pip install meson" | ||
} |