A Sublime Text plugin to use Docker Language Stacks as build systems
Clone or download
Permalink
Failed to load latest commit information.
images Renamed uppercase PNG extensions Feb 15, 2015
language-helloworlds Added opt_cleanup and logDockerCommand() to dockerutils.py. Apr 8, 2015
tests First attempt to add tests Nov 11, 2015
.gitignore Fixes to the function that checked for Docker install on Mac May 23, 2016
.no-sublime-package Added .no-sublime-package file to prevent Package Control from keepin… Feb 13, 2015
C++ in Docker Container.sublime-build Fixed selector name for C++ build system Dec 21, 2014
Clojure in Docker Container.sublime-build added closure support Dec 15, 2014
Docker Compose.sublime-build Fix docker-compose up running in wrong place Dec 5, 2015
DockerBuild.py Fixes to the function that checked for Docker install on Mac May 23, 2016
DockerClojureBuild.py Added opt_cleanup and logDockerCommand() to dockerutils.py. Apr 8, 2015
DockerJavaBuild.py Added opt_cleanup and logDockerCommand() to dockerutils.py. Apr 8, 2015
Dockerfile.sublime-build #5 changed date format from %N (milliseconds) ot %s (seconds) to make… Feb 15, 2015
Go in Docker Container.sublime-build Added golang support Dec 15, 2014
Java in Docker Container.sublime-build added java support Dec 15, 2014
Maven in Docker Container.sublime-build Added maven support Apr 2, 2015
Perl in Docker Container.sublime-build added perl support Dec 15, 2014
Python in Docker Container.sublime-build added python support Dec 15, 2014
README.md Update README.md Feb 16, 2015
Ruby in Docker Container.sublime-build added ruby support Dec 15, 2014
dockerutils.py Fixes to the function that checked for Docker install on Mac May 23, 2016
install_linux.sh Moved duplicated code in module dockerutils Jan 1, 2015
install_osx.sh Fixes to the function that checked for Docker install on Mac May 23, 2016

README.md

SublimeDocker

A Sublime Text package that include some build systems that use Docker Language Stacks. It currently build python, ruby, perl, c/c++ (gcc), clojure, go (golang), java, Dockerfile and Fig configuration files.

Prerequisite

Requires Docker. You can get it here https://get.docker.com/.

Your user should belong to the Docker group to run docker without using sudo.

Installation

Install using SublimeText PackageControl. Otherwise you can also Download/Clone the package and put it in your Packages-directory.

Usage

After installing, you will find new options in Tools > Build system of your Sublime menu:

  • C++ in Docker Container
  • Clojure in Docker Container
  • Dockerfile
  • Fig
  • Go in Docker Container
  • Java in Docker Container
  • Perl in Docker Container
  • Python in Docker Container
  • Ruby in Docker Container

Build and run using Docker containers

Build System Menu

Remember, you can always launch the selected build with Control+B (Linux/Windows) or Command+B (OS X).

Select different versions

You can select specific interpreter/compiler variants with Control+Shift+P (Linux/Windows) or Command+Shift+P (OS X) and typing build to reduce the selection to the available build variants for the selected build system as shown below for various language build systems. Build Variants Build Variants

Dockerfile: build images and run containers with a dockerfile

Build Variants

Fig: Run multiple containers using fig.yml file

Build Variants