Skip to content

Instantly share code, notes, and snippets.

@gbraad
Last active Mar 19, 2017
Embed
What would you like to do?
Use Minishift docker to run Eclipse Che

Use Minishift docker to run Eclipse Che

$ minishift start \
  --cpus 2 \
  --memory 4096 \
  --iso-url=https://github.com/minishift/minishift-centos-iso/releases/download/v1.0.0-rc.3/minishift-centos7.iso
$ minishift ssh "mkdir -p /mnt/sda1/chedata"
$ alias minidocker="docker -H tcp://`minishift ip`:2376 \
  --tls --tlscacert=$PWD/.minishift/certs/ca.pem
  --tlscert=$PWD/.minishift/certs/cert.pem
  --tlskey=$PWD/.minishift/certs/key.pem"
$ minidocker run \
  --name che \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /mnt/sda1/chedata:/data:Z \
  -e CHE_DOCKER_SERVER__EVALUATION__STRATEGY=docker-local \
  --security-opt label:disable \
  eclipse/che start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment