Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f3f3864
Added readme and removed gitignore.
mcconnellj Jul 29, 2025
44e42f9
Updated author, and star count.
mcconnellj Jul 29, 2025
2189832
More tweaks.
mcconnellj Jul 29, 2025
54e3f43
Testing.
mcconnellj Jul 29, 2025
f7ea145
test
mcconnellj Jul 29, 2025
e5b061d
test
mcconnellj Jul 29, 2025
97ceaa5
test
mcconnellj Jul 29, 2025
c57ee69
test
mcconnellj Jul 29, 2025
65528d1
Set ubuntu noble.
mcconnellj Jul 29, 2025
88a05d1
test
mcconnellj Jul 29, 2025
65ad92a
test
mcconnellj Jul 29, 2025
67bb405
test
mcconnellj Jul 29, 2025
3e4a968
test
mcconnellj Jul 29, 2025
b6f2bd2
test
mcconnellj Jul 29, 2025
133eb2b
test
mcconnellj Jul 29, 2025
eaf1f15
test
mcconnellj Jul 29, 2025
d357857
test
mcconnellj Jul 29, 2025
e671859
test
mcconnellj Jul 29, 2025
b3202be
test
mcconnellj Jul 29, 2025
bd02fa9
test
mcconnellj Jul 29, 2025
7ada046
test
mcconnellj Jul 29, 2025
3a5a97d
test
mcconnellj Jul 29, 2025
f347681
Added readme.
mcconnellj Jul 29, 2025
0e5b0b0
Readme.
mcconnellj Jul 29, 2025
9d9a456
Readme.
mcconnellj Jul 29, 2025
06030f2
Readme.
mcconnellj Jul 29, 2025
d2a3ccf
Readme.
mcconnellj Jul 29, 2025
0644f94
Readme.
mcconnellj Jul 29, 2025
66efcb5
Readme.
mcconnellj Jul 29, 2025
83a76ee
Readme
mcconnellj Jul 29, 2025
2941a43
Readme
mcconnellj Jul 29, 2025
71f80c8
readme
mcconnellj Jul 29, 2025
83c5503
Readme
mcconnellj Jul 29, 2025
8dce9cb
readme
mcconnellj Jul 29, 2025
e1e8b9e
readme
mcconnellj Jul 29, 2025
ea05d7b
Added back git ignore
mcconnellj Jul 29, 2025
1909299
Readme.
mcconnellj Jul 29, 2025
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
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/base:jammy
FROM mcr.microsoft.com/devcontainers/base:noble

RUN apt-get update \
&& apt-get install --no-install-recommends -y rsyslog systemd systemd-cron \
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ dist
.dynamodb/

# TernJS port file
.tern-port
.tern-port
55 changes: 54 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,54 @@
# systemd-devcontainer
# A Simple Systemd Devcontainer

![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat)
![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat&logo=ubuntu&logoColor=white)
![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat)

Devcontainers provide preconfigured development environments so you can start coding right away without extra setup. This repository is an example of a lightweight devcontainer setup that boots with systemd as PID 1 — ideal for running or testing services that require a real init system.

## Quickstart

[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&style=flat)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Chuxel/systemd-devcontainer)

Assuming you have VS Code and Docker installed you can click [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Chuxel/systemd-devcontainer) to automaticaly:
- Install the Dev Containers extension if necessary
- Clone this repo into a container [volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume)
- Start the dev container

## Manual Installation

1. Install the code editor application [VS Code](https://code.visualstudio.com/)
2. Use the VS Code extensions tab to install the [Dev Containers Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
3. Install and configure [Docker](https://www.docker.com/get-started) for your operating system:
- Windows & macOS: Install [Docker Desktop for Mac/Windows](https://www.docker.com/products/docker-desktop).
- Linux: Install [Docker CE/EE for Linux](https://docs.docker.com/install/#supported-platforms) use `sudo usermod -aG docker $USER` to authorize your user before logging out and back in.

## Usage

```bash
# Clone the repository
git clone https://github.com/Chuxel/systemd-devcontainer.git

# Open the folder in VS Code
code systemd-devcontainer

# Press F1 and "Reopen In Container"
```

Run the following inside the container to confirm systemd is PID 1

```bash
ps -p 1 -o comm=
```

## License

The MIT License lets you use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the project — for personal or commercial use. Just keep the original license text included. No warranties are provided.

## Credits

Created by [@Chuxel](https://github.com/Chuxel).

His work on this repo is simple and effective, as if crafted by a true wizard!

Please ⭐ star the repo to show your support. — README contributor [@mcconnellj](https://github.com/mcconnellj)