Code Monkey home page Code Monkey logo

docker-counterclockwise's Introduction

docker-counterclockwise

Counterclockwise version 0.31.1 in Ubuntu 14.04.1 with Oracle Java 8u25.

Requirements

  • Docker 1.2+
  • An X11 socket

Quickstart

I decided to split Counterclockwise dockerization in three Dockerfiles

  1. ubuntu.docker enriches base ubuntu 14.04.1 image available at https://registry.hub.docker.com/_/ubuntu/
  2. java.docker starts from ubuntu.docker and installs java 8u25
  3. Dockerfile picks up from where java.docker left and installs lein, gtk dependencies and Counterclockwise itself

Due to this containerization, and to the naming chosen, to build the counterclockwise container run:

sudo docker build --rm -t mdavi/ubuntu.base:14.04.1 - < ubuntu.docker && \
sudo docker build --rm -t mdavi/java8:8u25 - < java.docker && \
sudo docker build --rm -t mdavi/counterclockwise:0.31.1 .

To run the IDE execute (change /somewhere to whichever location you like to mount the volume for keeping your workspace on your host machine and somewhereelse to the location where you want to configuration, plugins and dependencies):

sudo docker run --rm -it -e DISPLAY=$DISPLAY \
	-v /tmp/.X11-unix:/tmp/.X11-unix \
	-v /somewhere:/workspace \
	 -v /somewhereelse:/home/developer \
	mdavi/counterclockwise:0.31.1

Access lein REPL (read–eval–print loop)

To gain access to the native lein REPL, launch the Docker container with

sudo docker run --rm -it \
	mdavi/counterclockwise:0.31.1 /usr/local/bin/lein repl

This will launch a minimal immutable lein REPL

TODO

The generated container is absolutely too big, I would really like to compress it a bit. But to achieve this goal, I should study Docker more! Also, I need to improve Dockerfile. Add git (compiled from source), so that it will be possible to share and import projects in Counterclockwise easily.

docker-counterclockwise's People

Contributors

thanksforallthefish avatar

Stargazers

Carlo Denaro avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.