Sign inSign up

curioustechnoid/mojolicious

By curioustechnoid

•Updated almost 5 years ago

Docker image for Mojolicious - Perl Web Development Framework

Image
0

1.7K

curioustechnoid/mojolicious repository overview

This docker image has all the tools and libraries required to run Mojolicious Web Framework. You can read more about Mojolicious here⁠.

This uses alpine linux as base image, hence the small size. The default command for this image is a shell(/bin/sh).

Version 2.0 : Added Minions and related DB connectors for it.

⁠Included Modules in the image

  • Mojolicious (9.22, Waffle)
  • Perl (v5.32)
  • Mojo::mysql
  • LWP::Protocol::https
  • Crypt::Eksblowfish::Bcrypt
  • Mojolicious::Plugin::SecurityHeader
  • JSON
  • Minion
  • Minion::Backend::SQLite
  • Minion::Backend::mysql
  • Minion::Backend::Pg
  • Mojolicious 9.22 with Minion 3.0, latest⁠
  • Mojolicious 9.17 with Minion [2.0]
  • Mojolicious [1.1, 1.0]

⁠How to use this image

  1. Create your mojolicious project using:

    mojo generate app mojoproject

  2. Run it in docker:

    ⁠Method 1: Manual
  • Create your own Dockerfile for your project, you can use this sample file⁠. Once the dockerfile is created run the below commands:

    docker build -t myprojectimage .

    Then run the your docker image using:

    docker run --rm --name mojoproject -p 3000:3000 myprojectimage morbo script/mojoproject

    ⁠Method 2: Using Compose
  • Create your own docker-compose file to build and run your application, you can use this sample file⁠. First create the Dockerfile⁠ using the Method 1 above and then create the docker-compose⁠ file, Once both the files are created, run the below command:

    docker-compose up
    docker-compose down
    docker-compose up -d

⁠Source

You can find the source of this image on GitHub⁠.

Tag summary

Content type

Image

Digest

Size

99 MB

Last updated

almost 5 years ago

docker pull curioustechnoid/mojolicious