Skip to content

Features to be used in devcontainer for developing IaC in VSCode

License

Notifications You must be signed in to change notification settings

dBildungsplattform/infra-dcfeatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Container Features:

This repository contains Features to be used in devcontainers used for developing software in the context infrastructure.

Features are individually versioned by the version attribute in a Feature's devcontainer-feature.json. Features are versioned according to the semver specification.

Contents

This repository contains following features:

Usage

To use the features from this repository, add the desired features to devcontainer.json.

This example use google-cloud-cli feature on devcontainer.

{
    "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
    "features": {
        "ghcr.io/dhoeric/features/onepassword-cli:1": {
            "version": "latest"
        }
    }
}

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
│   ├── ionosctl
│   │   ├── devcontainer-feature.json
│   │   └── install.sh
│   ├── hostctl
│   │   ├── devcontainer-feature.json
│   │   └── install.sh
|   ├── ...
│   │   ├── 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.

About

Features to be used in devcontainer for developing IaC in VSCode

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages