Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
39 changes: 39 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM ubuntu:24.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
Comment thread
benhoyt marked this conversation as resolved.
bash-completion \
build-essential \
cmake \
gcovr \
git \
libcmocka-dev \
libglib2.0-dev \
libsystemd-dev \
libyaml-dev \
meson \
network-manager \
pandoc \
pkg-config \
pycodestyle \
pyflakes3 \
python3-cffi \
python3-coverage \
python3-dev \
python3-pytest \
python3-pytest-cov \
python3-yaml \
sudo \
Comment thread
Tony-WLB marked this conversation as resolved.
Outdated
systemd \
udev \
uuid-dev \
&& rm -rf /var/lib/apt/lists/*

RUN useradd -m -s /bin/bash netplan && \
usermod -aG sudo netplan && \
echo "netplan ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/netplan

WORKDIR /workspace

USER netplan
Comment thread
Tony-WLB marked this conversation as resolved.
Outdated
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Netplan Development",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"remoteUser": "netplan"
}
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,35 @@ If you face issues, refer to our [comprehensive contribution guide](https://netp

# Build dependencies

> If you prefer using a prebuilt development environment, see the dev container image definition in [`.devcontainer/Dockerfile`](.devcontainer/Dockerfile).
Comment thread
Tony-WLB marked this conversation as resolved.
Outdated

Install the required build and test dependencies (Ubuntu/Debian):

```sh
sudo apt install \
bash-completion \
Comment thread
Tony-WLB marked this conversation as resolved.
Outdated
build-essential \
pkg-config \
meson \
cmake \
gcovr \
libcmocka-dev \
libglib2.0-dev \
libyaml-dev \
libsystemd-dev \
uuid-dev \
bash-completion \
python3-dev \
libyaml-dev \
meson \
network-manager \
pandoc \
pkg-config \
pycodestyle \
pyflakes3 \
python3-cffi \
python3-coverage \
python3-dev \
python3-pytest \
python3-pytest-cov \
pyflakes3 \
pycodestyle \
libcmocka-dev \
gcovr \
pandoc
python3-yaml \
systemd \
udev \
uuid-dev
```

# Build using Meson
Expand Down
Loading