Skip to content

Dev Container Feature: Add a feature that installs dependencies from an `Aptfile.dev` file

License

Notifications You must be signed in to change notification settings

viktorianer/devcontainer-features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Container Features

This repository contains a collection of Features.

  • apt - Install apt dependencies defined in an Aptfile.dev file.

Repo and Feature Structure

Similar to the devcontainers/features repo, this repository has a src folder. Each Feature has its own sub-folder, containing at least a devcontainer-feature.json and an entrypoint script install.sh.

├── src
│   ├── apt
│   │   ├── devcontainer-feature.json
│   │   └── install.sh
...

An implementing tool will composite the documented dev container properties from the feature's devcontainer-feature.json file, and execute in the install.sh entrypoint script in the container during build time. Implementing tools are also free to process attributes under the customizations property as desired.

Distributing Features

Versioning

Features are individually versioned by the version attribute in a Feature's devcontainer-feature.json. Features are versioned according to the semver specification. More details can be found in the dev container Feature specification.

Publishing

NOTE: The Distribution spec can be found here.

While any registry implementing the OCI Distribution spec can be used, this template will leverage GHCR (GitHub Container Registry) as the backing registry.

Features are meant to be easily sharable units of dev container configuration and installation code.

This repo contains a GitHub Action workflow that will publish each Feature to GHCR.

By default, each Feature will be prefixed with the <owner/<repo> namespace. For example, the Features in this repository can be referenced in a devcontainer.json with:

ghcr.io/viktorianer/devcontainer-features/apt:1

The provided GitHub Action will also publish a third "metadata" package with just the namespace, eg: ghcr.io/viktorianer/devcontainer-features. This contains information useful for tools aiding in Feature discovery.

'viktorianer/devcontainer-features' is known as the feature collection namespace.

Adding Features to the Index

If you'd like your Features to appear in our public index so that other community members can find them, you can do the following:

This index is from where supporting tools like VS Code Dev Containers and GitHub Codespaces surface Features for their dev container creation UI.

About

Dev Container Feature: Add a feature that installs dependencies from an `Aptfile.dev` file

Topics

Resources

License

Stars

Watchers

Forks

Packages