Code Monkey home page Code Monkey logo

features-starter's Introduction

Dev Container Features starter template

๐Ÿงฐ Starter kit for your very own features monorepo

๐Ÿš€ Perfect for getting off the ground quickly
๐Ÿ“– Learn more about Dev Container Features
๐Ÿ“ข Give feedback on Dev Containers

Usage

Click Use this template! That's the first step. After instantiating this template repo, there are a few things you'll need to do manually:

  1. Change the name in the LICENSE file to be your name or your organization's name. Right now it's YOUR_NAME.

  2. Remove the top half of this readme. After reading it of course.

  3. Change any of the other readme text to match your own new awesome feature collection. ๐Ÿš€

Remember how you can use features like this?

// devcontainer.json
{
  "features": {
    "ghcr.io/devcontainers/features/node": {}
  }
}

Guess what? This is how those features are made! ๐Ÿฐ This is a monorepo. There's multiple features paired up with counterpart folders in src/ and test/. For example, the hello feature has a src/hello/ folder with the devcontainer-feature.json manifest file and the actual install.sh script along with some tests in test/hello/. You can try out the tests and see hello in action by running:

devcontainer features test -f hello

๐Ÿ“š For more information on how Dev Container Features work, check out some of our [Guides]!

๐Ÿ’ก Pro tip: All of the options: { optionName: { ... } } fields that you define in the devcontainer-feature.json file will be mapped to env $OPTIONNAME vars in install.sh so your installer script can respond to them. Here's a sample of a $VERSION option that you might use to install a specific version of a tool:

{
  "options": {
    "version": {
      "type": "string",
      "default": "3.6.2"
    }
  }
}

๐Ÿ“• You can find some more sample options in the src/ of the demo features.

To publish your features, just run the Publish features workflow in the Actions tab. This will automagically โœจ package and push your Features to ghcr.io/<you>/<your-repo>/* so you can use them! You'll even see them appear on the sidebar in the GitHub web UI.

โฌ†๏ธ Take me to the Publish button!

After you've created your amazing feature collection, you might want to add it to the official index so that it can be listed in autocomplete in tools like VS Code and GitHub Codespaces. ๐Ÿคฉ Just open an Issue Form on the devcontainers/collections repo and some magic will happen to add it to our index file.

License

Even though the LICENSE file in this repository says "YOUR_NAME", that's just to be a good template. It's actually licensed under these terms:

MIT License

Copyright (c) 2022 Microsoft Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

My awesome Dev Container Features

๐Ÿคฉ My collection of awesome Dev Container Features

  • My Favorite Color - A feature to remind you of your favorite color
  • Hello, World! - A hello world feature

โ†—๏ธ See all features at containers.dev/features

Usage

"features": {
  "ghcr.io/octocat/my-awesome-features/<feature-id>": {}
}

Development

GitHub Actions Codespaces Devcontainers

To test a specific feature, you can use the devcontainer CLI:

devcontainer features test -f <feature-id>

Someone with appropriate access must manually trigger the Publish features workflow to create a new release.

features-starter's People

Contributors

jcbhmr avatar joshspicer avatar samruddhikhandale avatar jarrodcolburn avatar eitsupi avatar bamurtaugh avatar github-actions[bot] avatar chuxel avatar chrmarti avatar mrhappyma avatar joshuanianji avatar parroty avatar markphip avatar sdankel avatar nmemoto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.