spec VS templates

Compare spec vs templates and see what are their differences.

spec

Development Containers: Use a container as a full-featured development environment. (by devcontainers)

templates

Repository for Dev Container Templates that are managed by Dev Container spec maintainers. See https://github.com/devcontainers/template-starter to create your own! (by devcontainers)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
spec templates
48 12
2,754 773
7.0% 6.5%
7.3 7.6
18 days ago 16 days ago
Shell
Creative Commons Attribution 4.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

spec

Posts with mentions or reviews of spec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-23.
  • Show HN: Lapdev, a new open-source remote dev environment management software
    7 projects | news.ycombinator.com | 23 Mar 2024
    Hi, Lapdev dev here. Let me try to answer your question.

    It's installed on a remote server so it provides remote environments. If you use VSCode remote, then you can "open" it through VSCode remote ssh.

    The environment that Lapdev provides essentially is a container (other format is on the roadmap) with things pre-installed as defined in Devcontainer(https://containers.dev/) format.

  • Show HN: Flox 1.0 – Open-source dev env as code with Nix
    17 projects | news.ycombinator.com | 13 Mar 2024
    Happy to take this one, as I am one of the cofounder of Daytona.

    Daytona solves all the automation and provisioning of the dev environment, actually wrote an article here laying out exactly what we do: https://www.daytona.io/dotfiles/diy-guide-to-transform-any-m...

    Daytona currently supports only the dev container (https://containers.dev/) "dev env infrastructure as code" standard, but are looking to support others such as devfile, nix and flox.

    Hope this helps

  • A Journey to Find an Ultimate Development Environment
    13 projects | dev.to | 2 Feb 2024
    The full usage of the container means that you'll do the development inside the container. All the tools for development need to be installed inside the container. One of the technologies that leverage this approach is Devcontainers.
  • How CDEs work - no bs blog post
    1 project | dev.to | 9 Jan 2024
    Two standards for CDE configuration exist: devfile.yml and devcontainer.json. Both assume that the CDE is a single container and allow specification of which tools should be deployed to this container, as well as a reference to scripts that should run after the container has been created.
  • Use Docker to create a local development Python environment
    2 projects | /r/docker | 8 Dec 2023
  • Launching dev containers from code - is impossible?
    4 projects | dev.to | 15 Nov 2023
    ... is how I introduced the concept of dev containers in my last article.
  • Dev Containers: Open, Develop, Repeat...
    9 projects | dev.to | 30 Oct 2023
    How it works? Dev Containers is a specification based on Docker. This specification describes a metadata file (devcontainer.json), which defines how the project (Docker container, IDE settings, plugins, etc) is set up.
  • Try MongoDB and Laravel in 1-click via GitHub Codespaces
    2 projects | dev.to | 24 Oct 2023
    Codespaces is built to run Dev Containers, an open standard for Development Containers. The Dev Container will reference a Docker build file, which describes the software and services our app is running on. It also defines things related to our development environment, including IDE plugins, network ports, and more.
  • Is there some catch to cause DNS issues on Linux, that is not common with Windows or Mac?
    1 project | /r/linuxquestions | 12 Oct 2023
    I was using Devcontainer with VS Code. In a part of the container build process, DNS lookup seemed to be failing in Debian 12. BTW, the container image was based on Debian 11. I probably tried it about 10 times in total, so I'm pretty sure it persisted, not an one time error. I noticed the build process was failing because the process failed to find some domains, with an error message like could not resolve host github.com. Some domains I noticed was github.com and ghcr.io, so it failed sometimes for one domain, and sometimes for the other.
  • Dev Container for React Native with Expo
    5 projects | dev.to | 22 Sep 2023
    // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node { "name": "Node.js & TypeScript", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [8081], "initializeCommand": "bash .devcontainer/initializeCommand.sh", // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "bash .devcontainer/postCreateCommand.sh", // Configure tool-specific properties. // "customizations": {}, // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root", // "containerEnv": { // }, // "remoteEnv": { // "DEV_USER_HOST": "${localEnv:USERNAME}" // }, "runArgs": ["-p=8081:8081", "--env-file", ".devcontainer/.env"] }

templates

Posts with mentions or reviews of templates. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-13.
  • Creating a movie finder app with Streamlit and OMDb API
    1 project | dev.to | 27 Nov 2023
    // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/python { "name": "Python 3", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", "customizations": { "codespaces": { "openFiles": [ "README.md", "streamlit_app.py" ] }, "vscode": { "settings": {}, "extensions": [ "ms-python.python", "ms-python.vscode-pylance" ] } }, "updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade && sudo xargs apt install -y
  • Microsoft Docker Development Container Templates
    8 projects | news.ycombinator.com | 13 Aug 2023
    Ooo, they have one for rails + postgres!

    https://github.com/devcontainers/templates/tree/main/src/rub...

  • .devcontainer Containerized environment workflow
    1 project | /r/docker | 17 Jun 2023
  • ChatGPT Meets GitHub Codespaces: How I'm Optimizing ChatGPT Quickstart Plugins for Remote Development
    2 projects | dev.to | 8 May 2023
    // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/python { "name": "Python 3", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/python:0-3.11-bullseye", "features": { "ghcr.io/devcontainers-contrib/features/coverage-py:2": {} } // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [5003], // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "pip install -r requirements.txt", "postAttachCommand": ".devcontainer/addcodespacename.sh && python main.py", // Configure tool-specific properties. "customizations": { "codespaces": { "openFiles": [ ".well-known/ai-plugin.json", "openapi.yaml" ] } } } // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" }
  • GitHub + Dev Hackathon 2023 - Self-hosted Azure Pipelines Agent Codespace/Dev Container
    3 projects | dev.to | 8 May 2023
  • How to Build a Kafka Producer in Rust with Partitioning
    5 projects | dev.to | 3 Mar 2023
    $ cd tracing_publisher $ mkdir .devcontainer $ cat > .devcontainer/devcontainer.json // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/rust { "name": "Rust", "service": "rust-log-processing", "dockerComposeFile": "../docker-compose.yml", "features": { "ghcr.io/devcontainers/features/rust:1": {} }, "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", "shutdownAction": "stopCompose" }
  • Run self-hosted GitHub runners on GitHub Codespaces (Video Tutorial)
    1 project | dev.to | 5 Feb 2023
    Based on a previous blog post, this devcontainer is now publicly available as a template for anyone to use at Dev Container Templates and integrated with publicly available Codespace images.
  • How to get the best Conda environment experience in Codespaces
    5 projects | dev.to | 30 Jan 2023
    When you start a Codespace for a project, it will try to use whatever Dev Container you have specified in your repo, else it will try to use a kitchen sink container. That default kitchen sink is can be way too much and so if you will be working with Conda environments with an Anaconda or Miniconda Dev Container template instead.
  • Configure Python Formatter and Linter for a VSCode Dev Container
    2 projects | dev.to | 10 Jan 2023
    This example uses the Docker in Docker dev container. There are others that may suit you better, feel free to customize to your needs. This example doesn’t rely on the exact type of dev container used.
  • Take your development environment anywhere and on any machine with Dev Containers.
    3 projects | dev.to | 31 Dec 2022
    there are already built docker images for common development environment. You can either use one of them, or build one from Docker file. Using a pre-built dev container doesn't mean you are only limited to that image, because you can still add other tools, which they are called features to that image. For a list of the pre-built templates check here, and for the other features that you can add check this. You don't need a Docker file, unless you want to build your dev environment step by step.

What are some alternatives?

When comparing spec and templates you can also consider the following projects:

features - A collection of Dev Container Features managed by Dev Container spec maintainers. See https://github.com/devcontainers/feature-starter to publish your own

kcat - Generic command line non-JVM Apache Kafka producer and consumer

conda-devcontainer-demo - Mini Conda + Mamba dev container setup to make working with environments easy.

microservice-rust-mysql - A template project for building a database-driven microservice in Rust and run it in the WasmEdge sandbox.

lapdev - Self-Hosted Remote Dev Environment

features - A collection of development container 'features' for machine learning and data science

devbox - Instant, easy, and predictable development environments

tracing-blog-post - Example code for a blog post about tracing

miniforge - A conda-forge distribution.