Skip to content

mcconnellj/systemd-devcontainer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Systemd Devcontainer

License: MIT Ubuntu GitHub Stars

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

Assuming you have VS Code and Docker installed you can click here to automaticaly:

  • Install the Dev Containers extension if necessary
  • Clone this repo into a container volume
  • Start the dev container

Manual Installation

  1. Install the code editor application VS Code
  2. Use the VS Code extensions tab to install the Dev Containers Extension.
  3. Install and configure Docker for your operating system:

Usage

# 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

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.

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%