Skip to content

Commit

Permalink
Merge pull request #72 from sinuscosinustan/add-devcontainer
Browse files Browse the repository at this point in the history
devcontainer: add manifest and Dockerfile

Signed-off-by: Andrew Jeffery <[email protected]>
  • Loading branch information
amboar authored Dec 8, 2024
2 parents 8335227 + 7db29d2 commit f32cee7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .devcontainer/Dockerfile
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
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
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"
}

0 comments on commit f32cee7

Please sign in to comment.