From f3f3864d7ce8247714f6a1acd441428fa9763180 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 13:50:39 -0400 Subject: [PATCH 01/37] Added readme and removed gitignore. --- .gitignore | 104 ----------------------------------------------------- README.md | 47 +++++++++++++++++++++++- 2 files changed, 46 insertions(+), 105 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6704566..0000000 --- a/.gitignore +++ /dev/null @@ -1,104 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port diff --git a/README.md b/README.md index 428853b..cf18292 100644 --- a/README.md +++ b/README.md @@ -1 +1,46 @@ -# systemd-devcontainer \ No newline at end of file +# systemd-devcontainer + +![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) +![Dev Container](https://img.shields.io/badge/Dev--Container-✔️-blue) +![GitHub Stars](https://img.shields.io/github/stars/yourusername/systemd-devcontainer?style=social) + +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. + +## Requirements & Installation + +### Visual Studio Code (VS Code) +Download here + +### Dev Containers Extension +In VS Code, open the Extensions view, search for "Dev Containers", and click Install. + +## Usage + +VS Code commands manage your editor. The Dev Containers extension adds to the existing list of commands, allowing for the creation and management of your development containers. + +You can access commands two ways: + +- Press F1 (or Ctrl+Shift+P / Cmd+Shift+P on Mac) to open the Command Palette +- Or type `>` in the command bar, then type Dev Containers to see available commands in the search bar + +Common commands include: + +- Dev Containers: Open Folder in Container +- Dev Containers: Rebuild Container +- Dev Containers: Open Container Configuration File +- Dev Containers: Clone Repository in Container Volume +- Dev Containers: Open in Container from URL + +📖 Read the docs +🎥 Watch a tutorial on YouTube + +## 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 @mafintosh. + +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 author @mcconnellj \ No newline at end of file From 44e42f96bc0333d9e445bb93ff83d42aecd70fc1 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 13:52:20 -0400 Subject: [PATCH 02/37] Updated author, and star count. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf18292..f0b5763 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) ![Dev Container](https://img.shields.io/badge/Dev--Container-✔️-blue) -![GitHub Stars](https://img.shields.io/github/stars/yourusername/systemd-devcontainer?style=social) +![GitHub Stars](https://img.shields.io/github/stars/Chuxel/systemd-devcontainer?style=social) 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. @@ -40,7 +40,7 @@ The MIT License lets you use, copy, modify, merge, publish, distribute, sublicen ## Credits -Created by @mafintosh. +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 author @mcconnellj \ No newline at end of file From 2189832e1a2576dff61821c4242bdaadadb95bea Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 14:03:52 -0400 Subject: [PATCH 03/37] More tweaks. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f0b5763..1abd35d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,12 @@ ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) ![Dev Container](https://img.shields.io/badge/Dev--Container-✔️-blue) -![GitHub Stars](https://img.shields.io/github/stars/Chuxel/systemd-devcontainer?style=social) +![GitHub Stars](https://img.shields.io/github/stars/yourusername/systemd-devcontainer?style=social) +![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) +![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white) +![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white) +[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/yourusername/systemd-devcontainer) + 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. From 54e3f432778f0d5775ef025a7293f61cc772d36b Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 14:05:34 -0400 Subject: [PATCH 04/37] Testing. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1abd35d..d2884fe 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,17 @@ # systemd-devcontainer ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) -![Dev Container](https://img.shields.io/badge/Dev--Container-✔️-blue) ![GitHub Stars](https://img.shields.io/github/stars/yourusername/systemd-devcontainer?style=social) -![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white) ![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white) [![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/yourusername/systemd-devcontainer) +Test. + +If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-java) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use. + + 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. ## Requirements & Installation From f7ea145eadee06e4fd038c030c9c2008e5c1a328 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 14:06:22 -0400 Subject: [PATCH 05/37] test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2884fe..7de72c5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # systemd-devcontainer ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) -![GitHub Stars](https://img.shields.io/github/stars/yourusername/systemd-devcontainer?style=social) +![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=social) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white) ![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white) [![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/yourusername/systemd-devcontainer) From e5b061dbbfd57a0a0cfdc22edc0ab637b5901b39 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 14:07:27 -0400 Subject: [PATCH 06/37] test --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7de72c5..b211ab1 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # systemd-devcontainer -![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) -![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=social) +![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge) +![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=for-the-badge) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white) ![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white) -[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/yourusername/systemd-devcontainer) +[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&style=for-the-badge)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/yourusername/systemd-devcontainer) + Test. From 97ceaa52dc5ff8936df838d5110bf0325d26a765 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 14:08:57 -0400 Subject: [PATCH 07/37] test --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b211ab1..ed62093 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # systemd-devcontainer -![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge) -![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=for-the-badge) -![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white) -![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white) -[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&style=for-the-badge)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/yourusername/systemd-devcontainer) +![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat) +![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) +![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat&logo=ubuntu&logoColor=white) +![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=flat&logo=docker&logoColor=white) +[![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/yourusername/systemd-devcontainer) + From c57ee696df2438d7f4b1d5cbbfe3c63560000ee9 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 14:10:24 -0400 Subject: [PATCH 08/37] test --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ed62093..ce8640c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -# systemd-devcontainer +# Ubuntu Devcontainer With Systemd ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat) ![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat&logo=ubuntu&logoColor=white) -![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=flat&logo=docker&logoColor=white) [![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/yourusername/systemd-devcontainer) From 65528d1bcf82adaf279275be3db7c9bc9092617c Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 14:12:04 -0400 Subject: [PATCH 09/37] Set ubuntu noble. --- .devcontainer/Dockerfile | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 270a0cc..526002f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 \ diff --git a/README.md b/README.md index ce8640c..ba014d1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ubuntu Devcontainer With Systemd +# A Simple Systemd Devcontainer ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat) ![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) From 88a05d1850290b9a07850b05416b5ee7e3ddafda Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:15:01 +0000 Subject: [PATCH 10/37] test --- README.md | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ba014d1..6396398 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,10 @@ ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat&logo=ubuntu&logoColor=white) [![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/yourusername/systemd-devcontainer) - - - Test. If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-java) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use. - 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. ## Requirements & Installation @@ -40,16 +36,7 @@ Common commands include: - Dev Containers: Clone Repository in Container Volume - Dev Containers: Open in Container from URL -📖 Read the docs -🎥 Watch a tutorial on YouTube - -## 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. +To verify that systemd is running as PID 1 inside the container, run: -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 author @mcconnellj \ No newline at end of file +```bash +ps -p 1 -o comm= From 65ad92ac0174dba1f0ab6da28930ce5470f6a12a Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:18:04 +0000 Subject: [PATCH 11/37] test --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6396398..cb7cc9e 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat) ![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat&logo=ubuntu&logoColor=white) -[![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/yourusername/systemd-devcontainer) +[![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) Test. -If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-java) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use. +If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Chuxel/systemd-devcontainer) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use. 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. From 67bb405e7a83ef493db7e253006fe90b87c9d30a Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:29:30 +0000 Subject: [PATCH 12/37] test --- README.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index cb7cc9e..a169252 100644 --- a/README.md +++ b/README.md @@ -5,19 +5,29 @@ ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat&logo=ubuntu&logoColor=white) [![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) -Test. +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. -If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Chuxel/systemd-devcontainer) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use. +## Quickstart -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. +If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-java) to get started. +It will install the Dev Containers extension if necessary, clone the repo into a container [volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume), and start up the dev container. + +## Installation + +1. Install [VS Code](https://code.visualstudio.com/) or [VS Code Insiders](https://code.visualstudio.com/insiders/) and this extension. + +2. Install and configure [Docker](https://www.docker.com/get-started) for your operating system, using one of the paths below or an [alternative Docker option](https://code.visualstudio.com/remote/advancedcontainers/docker-options), like Docker on a remote host or Docker compliant CLI. + + **Windows / macOS:** -## Requirements & Installation + 1. Install [Docker Desktop for Mac/Windows](https://www.docker.com/products/docker-desktop). + 2. If not using WSL2 on Windows, right-click on the Docker task bar item, select **Settings / Preferences** and update **Resources > File Sharing** with any locations your source code is kept. See [tips and tricks](https://aka.ms/vscode-remote/containers/troubleshooting) for troubleshooting. + 3. To enable the [Windows WSL2 back-end](https://aka.ms/vscode-remote/containers/docker-wsl2): Right-click on the Docker taskbar item and select **Settings**. Check **Use the WSL2 based engine** and verify your distribution is enabled under **Resources > WSL Integration**. -### Visual Studio Code (VS Code) -Download here + **Linux:** -### Dev Containers Extension -In VS Code, open the Extensions view, search for "Dev Containers", and click Install. + 1. Follow the [official install instructions for Docker CE/EE](https://docs.docker.com/install/#supported-platforms). If you use Docker Compose, follow the [Docker Compose install directions](https://docs.docker.com/compose/install/). + 2. Add your user to the `docker` group by using a terminal to run: `sudo usermod -aG docker $USER` Sign out and back in again so this setting takes effect. ## Usage From 3e4a968ace3a2cf2076d09d5059e04d1d0b96d1e Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:43:45 +0000 Subject: [PATCH 13/37] test --- README.md | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a169252..98bb8e9 100644 --- a/README.md +++ b/README.md @@ -9,25 +9,18 @@ Devcontainers provide preconfigured development environments so you can start co ## Quickstart -If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-java) to get started. -It will install the Dev Containers extension if necessary, clone the repo into a container [volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume), and start up the dev container. +Assuming you have installed 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/microsoft/vscode-remote-try-java) to: +- Install the Dev Containers extension if necessary +- Clone the repo into a container [volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume) +- Start the dev container ## Installation -1. Install [VS Code](https://code.visualstudio.com/) or [VS Code Insiders](https://code.visualstudio.com/insiders/) and this extension. - -2. Install and configure [Docker](https://www.docker.com/get-started) for your operating system, using one of the paths below or an [alternative Docker option](https://code.visualstudio.com/remote/advancedcontainers/docker-options), like Docker on a remote host or Docker compliant CLI. - - **Windows / macOS:** - - 1. Install [Docker Desktop for Mac/Windows](https://www.docker.com/products/docker-desktop). - 2. If not using WSL2 on Windows, right-click on the Docker task bar item, select **Settings / Preferences** and update **Resources > File Sharing** with any locations your source code is kept. See [tips and tricks](https://aka.ms/vscode-remote/containers/troubleshooting) for troubleshooting. - 3. To enable the [Windows WSL2 back-end](https://aka.ms/vscode-remote/containers/docker-wsl2): Right-click on the Docker taskbar item and select **Settings**. Check **Use the WSL2 based engine** and verify your distribution is enabled under **Resources > WSL Integration**. - - **Linux:** - - 1. Follow the [official install instructions for Docker CE/EE](https://docs.docker.com/install/#supported-platforms). If you use Docker Compose, follow the [Docker Compose install directions](https://docs.docker.com/compose/install/). - 2. Add your user to the `docker` group by using a terminal to run: `sudo usermod -aG docker $USER` Sign out and back in again so this setting takes effect. +1. Install [VS Code](https://code.visualstudio.com/) +2. Use VS Code 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: +- Install [Docker Desktop for Mac/Windows](https://www.docker.com/products/docker-desktop). +- 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 From b6f2bd274ce9ca0ef1d2472c4e31ce58fbdc828e Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:49:27 +0000 Subject: [PATCH 14/37] test --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 98bb8e9..d71e4c5 100644 --- a/README.md +++ b/README.md @@ -9,18 +9,15 @@ Devcontainers provide preconfigured development environments so you can start co ## Quickstart -Assuming you have installed 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/microsoft/vscode-remote-try-java) to: -- Install the Dev Containers extension if necessary -- Clone the repo into a container [volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume) -- Start the dev container +Assuming you have installed 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 the repo into a container [volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume), and start the dev container. -## Installation +## Manual Installation 1. Install [VS Code](https://code.visualstudio.com/) 2. Use VS Code 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: -- Install [Docker Desktop for Mac/Windows](https://www.docker.com/products/docker-desktop). -- 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. + - 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 From 133eb2b05818df42e6b56edd3a784ed51e2c2f6d Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:51:27 +0000 Subject: [PATCH 15/37] test --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d71e4c5..99751e1 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,9 @@ Assuming you have installed VS Code and Docker installed you can click [here](ht ## Manual Installation -1. Install [VS Code](https://code.visualstudio.com/) -2. Use VS Code 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: +- Install the code editor application [VS Code](https://code.visualstudio.com/) +- Use the VS Code extensions tab to install the [Dev Containers Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers). +- 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. From eaf1f15f17e22ffb9c07384648834662cfba9f38 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:52:40 +0000 Subject: [PATCH 16/37] test --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 99751e1..33d3165 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,15 @@ To verify that systemd is running as PID 1 inside the container, run: ```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 @mafintosh. + +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 author @mcconnellj \ No newline at end of file From d3578577cf188cbb38a84d4752ef12534a590c62 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 18:53:55 +0000 Subject: [PATCH 17/37] test --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 33d3165..f37bd01 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,10 @@ Devcontainers provide preconfigured development environments so you can start co ## Quickstart -Assuming you have installed 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 the repo into a container [volume](https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-clone-repository-in-container-volume), and start the dev container. +Assuming you have installed 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 From e67185993d74e86f2919a62077db3fe91ee4aec8 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:05:14 +0000 Subject: [PATCH 18/37] test --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index f37bd01..47a5066 100644 --- a/README.md +++ b/README.md @@ -24,22 +24,22 @@ Assuming you have installed VS Code and Docker installed you can click [here](ht ## Usage -VS Code commands manage your editor. The Dev Containers extension adds to the existing list of commands, allowing for the creation and management of your development containers. - -You can access commands two ways: - +The Dev Containers extension adds to the existing list of VS Code commands. Accessible in the command palete: - Press F1 (or Ctrl+Shift+P / Cmd+Shift+P on Mac) to open the Command Palette -- Or type `>` in the command bar, then type Dev Containers to see available commands in the search bar +- Or type `>` in the search bar, then type Dev Containers to see available commands -Common commands include: - -- Dev Containers: Open Folder in Container -- Dev Containers: Rebuild Container -- Dev Containers: Open Container Configuration File -- Dev Containers: Clone Repository in Container Volume -- Dev Containers: Open in Container from URL +- Clone the repository +```bash +git clone https://github.com/Chuxel/systemd-devcontainer.git +``` +- Open the repository in VS Code +```bash +cd systemd-devcontainer +code . +``` +- Using the command palette "Reopen in Container". -To verify that systemd is running as PID 1 inside the container, run: +- Verify that systemd is running as PID 1 inside the container ```bash ps -p 1 -o comm= From b3202be93d9432e83ce07b693ba9fe8982e50047 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:07:04 +0000 Subject: [PATCH 19/37] test --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 47a5066..f7dc47d 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,7 @@ Assuming you have installed VS Code and Docker installed you can click [here](ht ## Usage -The Dev Containers extension adds to the existing list of VS Code commands. Accessible in the command palete: -- Press F1 (or Ctrl+Shift+P / Cmd+Shift+P on Mac) to open the Command Palette -- Or type `>` in the search bar, then type Dev Containers to see available commands +The Dev Containers extension adds to the existing list of VS Code commands. The command palete can be accessed by pressing F1 (or Ctrl+Shift+P / Cmd+Shift+P on Mac) or by typing `>` in the search bar followed by "Dev Containers" to see all available commands. - Clone the repository ```bash From bd02fa9e7bb99c68b53ed15dbdbe8477eb8eaf71 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:08:07 +0000 Subject: [PATCH 20/37] test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7dc47d..82761f5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Assuming you have installed VS Code and Docker installed you can click [here](ht ## Usage -The Dev Containers extension adds to the existing list of VS Code commands. The command palete can be accessed by pressing F1 (or Ctrl+Shift+P / Cmd+Shift+P on Mac) or by typing `>` in the search bar followed by "Dev Containers" to see all available commands. +The Dev Containers extension adds to the existing list of VS Code commands. The `command palete can be accessed by`: pressing `F1` (or `Ctrl+Shift+P` / `Cmd+Shift+P` on Mac) or by `typing > in the search bar` followed by "Dev Containers" to see all available commands. - Clone the repository ```bash From 7ada0467ead9c15f23b645081f9f4e316d9d79f8 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:09:35 +0000 Subject: [PATCH 21/37] test --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82761f5..8590350 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ git clone https://github.com/Chuxel/systemd-devcontainer.git cd systemd-devcontainer code . ``` -- Using the command palette "Reopen in Container". +- Use the command palette to "Reopen in Container". -- Verify that systemd is running as PID 1 inside the container +You can verify that systemd is running as PID 1 inside the container by using ```bash ps -p 1 -o comm= From 3a5a97d92843e3c528b29f0c7281ec505d3315d3 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:11:20 +0000 Subject: [PATCH 22/37] test --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8590350..f0a5a40 100644 --- a/README.md +++ b/README.md @@ -27,17 +27,16 @@ Assuming you have installed VS Code and Docker installed you can click [here](ht The Dev Containers extension adds to the existing list of VS Code commands. The `command palete can be accessed by`: pressing `F1` (or `Ctrl+Shift+P` / `Cmd+Shift+P` on Mac) or by `typing > in the search bar` followed by "Dev Containers" to see all available commands. - Clone the repository -```bash -git clone https://github.com/Chuxel/systemd-devcontainer.git -``` - Open the repository in VS Code +- Use the command palette to "Reopen in Container". + ```bash +git clone https://github.com/Chuxel/systemd-devcontainer.git cd systemd-devcontainer code . ``` -- Use the command palette to "Reopen in Container". -You can verify that systemd is running as PID 1 inside the container by using +Confirm systemd is running as PID 1 by running the following `inside the container` ```bash ps -p 1 -o comm= From f347681d6207bcbd5054455ca74a7912f724061b Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:16:45 +0000 Subject: [PATCH 23/37] Added readme. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f0a5a40..b9ba559 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # A Simple Systemd Devcontainer +[![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) + +![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat) -![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat&logo=ubuntu&logoColor=white) -[![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) 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. @@ -48,7 +49,7 @@ The MIT License lets you use, copy, modify, merge, publish, distribute, sublicen ## Credits -Created by @mafintosh. +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 author @mcconnellj \ No newline at end of file +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 author [@mcconnellj](https://github.com/mcconnellj) \ No newline at end of file From 0e5b0b01232496a02e17be96fbaf10296af713bc Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:20:32 +0000 Subject: [PATCH 24/37] Readme. --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b9ba559..bf3da3d 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,10 @@ Devcontainers provide preconfigured development environments so you can start co ## Quickstart -Assuming you have installed 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: +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. +- Start the dev container ## Manual Installation @@ -25,11 +25,9 @@ Assuming you have installed VS Code and Docker installed you can click [here](ht ## Usage -The Dev Containers extension adds to the existing list of VS Code commands. The `command palete can be accessed by`: pressing `F1` (or `Ctrl+Shift+P` / `Cmd+Shift+P` on Mac) or by `typing > in the search bar` followed by "Dev Containers" to see all available commands. - - Clone the repository - Open the repository in VS Code -- Use the command palette to "Reopen in Container". +- Use the command palette `F1` to "Reopen in Container" ```bash git clone https://github.com/Chuxel/systemd-devcontainer.git @@ -37,7 +35,7 @@ cd systemd-devcontainer code . ``` -Confirm systemd is running as PID 1 by running the following `inside the container` +Run this inside the container to confirm systemd is running as PID 1 ```bash ps -p 1 -o comm= @@ -51,5 +49,4 @@ The MIT License lets you use, copy, modify, merge, publish, distribute, sublicen 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 author [@mcconnellj](https://github.com/mcconnellj) \ No newline at end of file +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 author [@mcconnellj](https://github.com/mcconnellj) \ No newline at end of file From 9d9a4569306addd533cc84b5aae7b7cda7420343 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 19:21:40 +0000 Subject: [PATCH 25/37] Readme. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bf3da3d..ea264b7 100644 --- a/README.md +++ b/README.md @@ -17,17 +17,17 @@ Assuming you have VS Code and Docker installed you can click [here](https://vsco ## Manual Installation -- Install the code editor application [VS Code](https://code.visualstudio.com/) -- Use the VS Code extensions tab to install the [Dev Containers Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers). -- Install and configure [Docker](https://www.docker.com/get-started) for your operating system: +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 -- Clone the repository -- Open the repository in VS Code -- Use the command palette `F1` to "Reopen in Container" +1. Clone the repository +2. Open the repository in VS Code +3. Use the command palette `F1` to "Reopen in Container" ```bash git clone https://github.com/Chuxel/systemd-devcontainer.git From 06030f236eba176ce7883d280d1a3af6dc2196ae Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:27:16 -0400 Subject: [PATCH 26/37] Readme. --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ea264b7..73be60d 100644 --- a/README.md +++ b/README.md @@ -25,19 +25,20 @@ Assuming you have VS Code and Docker installed you can click [here](https://vsco ## Usage -1. Clone the repository -2. Open the repository in VS Code -3. Use the command palette `F1` to "Reopen in Container" - ```bash +# Clone the repository git clone https://github.com/Chuxel/systemd-devcontainer.git -cd systemd-devcontainer -code . + +# Open the folder in VS Code +code systemd-devcontainer + +# Press F1 and "Reopen In Container" ``` -Run this inside the container to confirm systemd is running as PID 1 +Run inside the container! ```bash +# Confirm systemd is PID 1 ps -p 1 -o comm= ``` From d2a3ccf2a856d526fd3342d2f8153bf9c866df6e Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:28:17 -0400 Subject: [PATCH 27/37] Readme. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73be60d..8f78688 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ # A Simple Systemd Devcontainer +![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) + [![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) -![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) ![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) From 0644f94fcdf54b7f307f39fe9bca1516489bc1d5 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:28:53 -0400 Subject: [PATCH 28/37] Readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f78688..7ce5f24 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # A Simple Systemd Devcontainer +[![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) ![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) -[![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) ![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) From 66efcb53cfcbff4a6bec4d20ffa97c69880186fe Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:29:46 -0400 Subject: [PATCH 29/37] Readme. --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7ce5f24..7b6c447 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,15 @@ # A Simple Systemd Devcontainer -[![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) -![GitHub Stars](https://img.shields.io/github/stars/chuxel/systemd-devcontainer?style=flat) - - ![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) +![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) From 83a76ee054d75b38e1c671f6c8933bab4f80dd1a Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:30:24 -0400 Subject: [PATCH 30/37] Readme --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 7b6c447..6bd1666 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,7 @@ Devcontainers provide preconfigured development environments so you can start co ## 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: +Assuming you have VS Code and Docker installed you can click [![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) 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 From 2941a439390c86b88206c57626357d7b605e161b Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:30:52 -0400 Subject: [PATCH 31/37] Readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6bd1666..82c0329 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ 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 +## 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 [![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) to automaticaly: +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 From 71f80c8fce288dc928905b4920a9d16109b698e3 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:31:12 -0400 Subject: [PATCH 32/37] readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 82c0329..02023f3 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ 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) +## 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 From 83c5503ba0e20fabc73dff675eadae7d0e76ae1f Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:32:14 -0400 Subject: [PATCH 33/37] Readme --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 02023f3..50ddbba 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,9 @@ code systemd-devcontainer # Press F1 and "Reopen In Container" ``` -Run inside the container! +Run inside the container to confirm systemd is PID 1 ```bash -# Confirm systemd is PID 1 ps -p 1 -o comm= ``` From 8dce9cb7b80ca928fd6ff677fa108806de7b8127 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:33:10 -0400 Subject: [PATCH 34/37] readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 50ddbba..3d7489f 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,6 @@ The MIT License lets you use, copy, modify, merge, publish, distribute, sublicen 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 author [@mcconnellj](https://github.com/mcconnellj) \ No newline at end of file +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 author [@mcconnellj](https://github.com/mcconnellj) \ No newline at end of file From e1e8b9e739854ecae6fb4c95afb23aa72ca37380 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:33:29 -0400 Subject: [PATCH 35/37] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d7489f..3c5719e 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,4 @@ 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 author [@mcconnellj](https://github.com/mcconnellj) \ No newline at end of file +Please ⭐ star the repo to show your support. — README contributor [@mcconnellj](https://github.com/mcconnellj) \ No newline at end of file From ea05d7b5ebb1e5bddaa70223522274bc5cf7bc95 Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:36:54 -0400 Subject: [PATCH 36/37] Added back git ignore --- .gitignore | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bb6fa4d --- /dev/null +++ b/.gitignore @@ -0,0 +1,104 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and *not* Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port \ No newline at end of file From 19092993a193576f9f3e4d97935bf8044f9b8e3a Mon Sep 17 00:00:00 2001 From: josh mcconnell Date: Tue, 29 Jul 2025 15:37:52 -0400 Subject: [PATCH 37/37] Readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c5719e..b989e4b 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ code systemd-devcontainer # Press F1 and "Reopen In Container" ``` -Run inside the container to confirm systemd is PID 1 +Run the following inside the container to confirm systemd is PID 1 ```bash ps -p 1 -o comm=