Public Repository

Last pushed: a year ago
Short Description
Java 8 environment with Eclipse Mars
Full Description

Script for MAC (after running XQuartz and Socat)

#!/bin/bash

OPTION=$1
EXTRA=$2
NAME=eclipse
LINKS=""
COMMAND="/bin/bash"
IMAGE="eclipse"
PORTS="-p 8080:8080"
VOLUMES="-v pwd/projects:/home/user/projects -v pwd/m2:/home/user/.m2 -v pwd/workspace:/home/user/workspace -v pwd/eclipse-settings:/home/user/.eclipse"
ENV="-e DISPLAY=192.168.56.1:0"

if [ -z $OPTION ]; then
OPTION=run
fi

if [ $OPTION = "run" ]; then
docker run --rm -it $PORTS $ENV --name $NAME $VOLUMES $LINKS $IMAGE $COMMAND
fi

if [ $OPTION = "rm" ]; then
docker rm -f $NAME
fi

if [ $OPTION = "stop" ]; then
docker stop $NAME
fi

if [ $OPTION = "start" ]; then
docker start $NAME
fi

if [ $OPTION = "attach" ]; then
docker attach $NAME
fi

Docker Pull Command
Owner
arlindosilvaneto

Comments (0)