Public Repository

Last pushed: a year ago
Short Description
This image has included Komodo X, Perl Developer Kits and ActiveState Perl
Full Description

Make a handy starter script to run things below

--> Script: $HOME/bin/activestate

#!/bin/bash
container_name=$1
what_to_run=$2
xhost +
docker pull michaelpc/activestate-perl
docker run \
--name $container_name \
-e DISPLAY=$DISPLAY \
-w /web \
-v $PWD:/web \
-v /etc/default/docker:/etc/default/docker \
-v /lib/modules:/lib/modules:ro \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-v $HOME/.ssh:/etc/skel/.ssh \
-v $HOME/.config/google-chrome:/etc/skel/.config/google-chrome \
-v $HOME/.komodoide:/.komodoide \
-v /var/run \
--privileged \
--rm \
-it \
michaelpc/activestate-perl \
/sbin/my_init -- /start \
user $USER \
uid $UID \
before_run_as_root "gpasswd -a $USER docker" \
before_run_as_user "ln -s /.komodoide $HOME/.komodoide" \
cmd $what_to_run

Run Komodo-10.0.0

First time run Komodo IDE

docker run --name placeholder --rm -it michaelpc/activestate-perl perl -e sleep & ## open a container for copying komodo config
sudo rm -fr $HOME/.komodoide
docker cp placeholder:/root/.komodoide $HOME/.komodoide ## copy the default config to your home dir
docker rm -f placeholder

Later on run Komodo IDE

~/bin/activestate try komodo

Run ActivePerl (Perl-5.22.1) Only

~/bin/activestate try "perl -v"

Run PPM

~/bin/activestate try ppm

Run PDK-9.5.1

~/bin/activestate try perlapp

Run Carton Install

~/bin/activestate try "carton install"

Run cpanm

~/bin/activestate try "cpanm -v -L local Mojolicious"

Docker Pull Command
Owner
michaelpc

Comments (0)