Skip to content

frntn/devcontainers-features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frntn/devcontainers-features

This repo provides the packages for devcontainer features, hosted for free on GitHub Container Registry.

The name of the repo follows the naming convention of the source repo :

  • github .com/devcontainers/features
  • github .com/frntn/devcontainers-features

Packages

This repository contains a collection of the following features :

  • newman : command-line companion for Postman. Open source - Maintained and supported by community contributions.
  • postman : command-line companion for Postman. Closed source - Maintained and supported by Postman.
  • gitleaks : SAST tool for detecting and preventing hardcoded secrets to be leaked in git repo.

newman

It requires npm so must use a container with nodejs installed first.

Simply reference newman package inside your .devcontainer.json.

Example 1 : Pre-built node image - Debian Bullseye - 1.27 GB

Add the following files in .devcontainer.json file

// .devcontainer.json
{
    "name": "My Dev Container Name",
    "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18",
    "features": {
        "ghcr.io/frntn/devcontainers-features/newman:latest": {
            "version": "5.3.2"
        }
    },
    "remoteUser": "node"
}

Example 2 : Built from base image - Ubuntu Jammy - 485 MB

Add the following files in .devcontainer folder

// .devcontainer/devcontainer.json
{
    "name": "My Dev Container Name",
    "build": {
        "dockerfile": "Dockerfile.nodejs"
    },
    "features": {
        "ghcr.io/frntn/devcontainers-features/newman:latest": {
            "version": "5.3.2"
        }
    },
    "remoteUser": "root"
}
# .devcontainer/Dockerfile.nodejs
FROM mcr.microsoft.com/devcontainers/base:ubuntu
ARG DEBIAN_FRONTEND=noninteractive
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs

postman

TODO

gitleak

TODO

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages