Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 2.04 KB

README.md

File metadata and controls

59 lines (43 loc) · 2.04 KB

Perl (perl)

Larry Wall's Practical Extraction und Report Language

Example Usage

"features": {
    "ghcr.io/haukex/devcontainer-features/perl:1": {}
}

Options

Options Id Description Type Default Value
local_lib Whether to initialize local::lib in .bashrc boolean true

Description

Currently supports Debian/Ubuntu and Alpine Linux.

Although Perl may already be preinstalled into many containers, this feature adds a few things that make bootstrapping Perl projects easier:

  • cpanm for package management
  • local::lib, so CPAN modules can be installed into the user's home directory without root instead of the system Perl
    • local::lib initialization is added to the user's .bashrc (can be disabled)
  • IO::Socket::SSL, so that Perl's core module HTTP::Tiny has SSL support
  • build-essential/build-base for basic compiler tooling for Perl module installation (may already be preinstalled on many containers)
  • perl-doc so perldoc/manpages are available

Please note that this feature uses whatever version of perl and the above modules that is available through the system's package manager. If you need a specific version of Perl, consider using e.g. Perlbrew or an official Perl Docker image.

Example devcontainer.json:

{
    // use whatever Debian/Ubuntu/Alpine base image you like here:
    "image": "mcr.microsoft.com/devcontainers/base:debian",
    "features": {
        "ghcr.io/haukex/devcontainer-features/perl:1": {}
    },
    // optional depending on your project:
    "postCreateCommand": "cpanm --installdeps ."
}

Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.