Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM docker.io/alpine:3.22 AS builder

ARG USERNAME=criudev
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN apk update
RUN apk add cmake \
make \
clang \
llvm \
git \
autoconf \
automake \
libtool \
m4 \
flex \
bison \
pkgconfig \
bash \
linux-headers \
patch \
coreutils \
gettext \
gettext-dev

RUN apk add sudo
RUN adduser -D -u $USER_UID -g $USER_GID $USERNAME \
&& addgroup $USERNAME wheel \
&& sed -i 's/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/g' /etc/sudoers

USER $USERNAME
12 changes: 12 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools-extension-pack"
]
}
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ build/
dist/
CMakeCache.txt
_CPack_Packages
.vscode/
.idea/
*.swp
*.swo
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ having it will make the final artifact more complete.

## Build

**Note:** in case you don't want to do the setup yourself we provide a [devcontainer](https://containers.dev/) for this project.

We only tested this in Alpine Linux, building on other Linux distributions should work
but the instructions below should work on most major linux distros.

Expand Down