https://www.gravatar.com/avatar/15eb8a0082859e35f30a519703170162?s=240&d=mp

Deploying Mojo::Darkpan via Docker

Dockerfile

The repo has a Dockerfile that appears suitable.

There does not appear to be an image that is published into Docker Hub.

Docker-Image-Mojo-Darkpan

I make a project https://gitlab.com/jtrowe/docker-image-mojo-darkpan that will use GitLab CI to build a Docker image.

The original Dockerfile in the Mojo::Darkpan repo proved to be a little fussy for me.

So I just wrote my own Dockerfile, and it works ok.

Self-Hosting Perl Modules, part 2 : Mojo::Darkpan

Install

cpanm Mojo::Darkpan

Run w/o Config

darkpan
# if you want a config file
# darkpan --config config.json

This is now running on port 3000.

There is no authentication on this. See Mojolicious::Plugin::BasicAuthPlus to configure it.

{
    "basic_auth": {
        "main": {
            "username": "admin",
            "password": "admin"
        }
    }
}
{
    "basic_auth": {
        "main": {
            "path": "passwd"
        }
    }
}

passwd:

Self-Hosting Perl Modules, part 1

Problem: I want a CPAN compatible hosting site for my Perl modules

I’ve not done this before so, investigate what is out there.

Searching for prior work

  • Duck Duck Go: “hosting darkpan modules”
  • MetaCPAN: “Pan”

Results:

App::DuckPAN

App::DuckPAN

“DuckPAN is an application built to provide developers a testing environment for DuckDuckHack Instant Answers.”

Not what I’m looking for.