Skip to content

rhel-yeah/codespaces-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codespaces Demo (RHEL)

Demo of configuring GitHub Codespaces for Red Hat Enterprise Linux (RHEL) UBI and companion base images.

Overview

This repo ships a Codespaces-ready devcontainer plus CI workflows that build and publish container images for RHEL UBI, Rocky Linux, and Fedora variants. Use it as a template for RHEL-flavored development environments or as a reference for shipping pre-built devcontainer images to GHCR.

Quickstart (Codespaces)

  1. Create a Codespace on the main branch.
  2. The devcontainer defined in .devcontainer/devcontainer.json will boot automatically using a rockylinux:9 base image.
  3. Post-create tasks in .devcontainer/post-create.sh make Zsh the default shell, install Powerlevel10k, and add git aliases from .devcontainer/aliases.sh.
  4. Start coding—common VS Code extensions (C/C++, Docker, Makefile tools, Copilot Chat, Remote Containers) are preinstalled.

Devcontainer details

Building images locally

docker build -f .devcontainer/Dockerfile --build-arg RHEL_VERSION=9 -t ghcr.io/<owner>/devcontainer-rhelyeah:rhel-9 .devcontainer

CI workflows (GHCR publishing)

Artifacts are pushed to ghcr.io/<owner>/devcontainer-rhelyeah:*.

Pre-commit

Run pre-commit locally or inside the container to keep formatting and lint checks aligned:

pre-commit run -a

Notes

  • [2024-08-03]: Removed support for RHEL7 images as VS Code is unsupported on it.

License

This project is licensed under the terms of the LICENSE file.

About

Demo of configuring CodeSpaces for use with RHEL universal base images (UBI)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors