Docker Perl Sublimetext3 development setup

I am setting up a perl development environment for the first time in a number of years I want to leverage docker and sublime text plus I run on MAC OSX.

I wanted to use Docker to create a dev env that i could share with others on my team.
I like SublimeText and integration with PerlCritic.
I understand about host mounted volumes to allow me to edit locally and save on the docker container.
What I cant work out is how to avoid installing all the perl dependencies on my MAC to enable Sublime to have access to them and allow the sublime perl critic integration to function.

  • Docker driver for Openstack
  • docker pull behind shadowsocks proxy
  • Trying to use webpack-dev-server in container, getting errors that are not there otherwise
  • docker restart policy doesn't work?
  • tunnel ssh from another pc to docker
  • How to link one docker container with another docker container
  • Is it possible to :-

    a) Install the complete perl environment in a docker container (this much i know is true)
    b) Use SublimeText on my MAC such that all the Sublime Plugins continue to work from the dependencies in the container?

    I also understand that Sublime Text has build plugins for perl but from what i understand that occurs at build time not whilst developing – thus still requiring dependencies locally on the MAC.

  • How can I find out which capabilities a container has been given?
  • Dockerizing nginx and Flask
  • Reading and writing files with dockerimage
  • NginX times out connecting to java app
  • Docker build-arg and copy
  • Access JMX inside docker container with mapped ports
  • One Solution collect form web for “Docker Perl Sublimetext3 development setup”

    I would think that you could have your perl install on a mounted docker volume (as you suggested)

    Then in the container do

    perl -V
    

    which amongst other things will give you

      @INC:
        /usr/local/lib64/perl5
        /usr/local/share/perl5
        /usr/lib64/perl5/vendor_perl
        /usr/share/perl5/vendor_perl
        /usr/lib64/perl5
        /usr/share/perl5
        .
    

    From your Mac you can then use the PERL5LIB environment to add these to the search path. Ideally these will all be in your mount point. The lib64 sections will not work as these are compiled modules.

    export PERL5LIB=/my/docker/mount/perl/lib:/my/docker/mount/lib2
    

    You will probably only need the share sections

    I would also match the perl version on the Mac to the docker version by using perlbrew. This is also available in perl -V

    Just as a general rule, never mess with the Mac Perl standard install as it causes many problems as the OS uses it for things

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.