Skip to content

gbraad-devenv/fedora-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Fedora systemd Codespaces

Run Fedora with systemd as a GitHub Codespaces

Note

This image is based on my gbraad-devenv/fedora image, and is therefore personalized; it uses gbraad as user with my dotfiles and tailored to use services exposed by my homelab setup. The Containerfile has /sbin/init as entrypoint after setting USER root.

Try it out

Open in GitHub Codespaces

Summarized

The following is a short overview of what is necessary to make this work.

/.devcontainer/Containerfile

ARG BASE_VERSION="41"

FROM quay.io/fedora/fedora:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

USER root

RUN dnf install -y \
        systemd sudo git-core \
    && dnf clean all \
    && rm -rf /var/cache/yum

ENTRYPOINT ["/sbin/init"]

/.devcontainer/devcontainer.json

{
    "name": "Fedora with systemd on Codespaces",
    "build": {
        "dockerfile": "Containerfile"
    },
    "overrideCommand": false,
    "privileged": true
}

Screenshot

"A codespace running Fedora with systemd"

About

Run Fedora with systemd as a GitHub Codespaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published