Skip to content

Instantly share code, notes, and snippets.

View gbraad's full-sized avatar
🇳🇱
Working from home

Gerard Braad gbraad

🇳🇱
Working from home
View GitHub Profile
@gbraad
gbraad / README.md
Last active August 30, 2017 07:50
Create custom Fedora Atomic Host for OpenStack Magnum

Create custom Fedora Atomic Host for OpenStack Magnum

@gbraad
gbraad / README.md
Last active November 11, 2016 01:56
Restart devel environment

Restart C9 devel environment

$ docker start nginx-proxy-letsencrypt
$ docker start nginx-proxy
$ docker statt c9ide-devel
@gbraad
gbraad / 0028-deploy-openshift-cluster.md
Last active August 30, 2017 08:19
Deploy an OpenShift cluster
Title Date Category Tags
Deploy an OpenShift cluster
2016-11-21
Containers
containers, openshift, deployment, devops, cluster, ansible

In previous articles I have described how to setup a test cluster for OpenShift and how the deployment of an example application works using source-to-image. In this article, I am going to setup OpenShift using the Ansible playbooks.

@gbraad
gbraad / README.md
Last active January 19, 2017 06:41
Setup environment for Minishift development [WIP]
@gbraad
gbraad / README.md
Last active August 30, 2017 06:52
Setup development environment for Minishift on Windows

Setup development environment for Minishift on Windows

Run powershell or CMD as Administator and start:

> powershell -ExecutionPolicy unrestricted

This starts a new instance of powershell which allowss execution of scripts that are downloaded without a signature.

@gbraad
gbraad / README.md
Last active August 30, 2017 06:50
Reset wireless to get DHCP assigned again

Reset wireless to get DHCP assigned again

netcfg -d

reboot

netsh winsock reset catalog
@gbraad
gbraad / README.md
Last active March 14, 2017 15:11
Minishift hostfolders (manual mounting)

Minishift hostfolder (manual mounting)

Motivation

This allows a developer to mount their home directory inside the Minishift/CDK image, so they don't have to synchronize. This is to deal with the lack of Hyper-V offering a shared folder option like Guest Additions allows on Virtualbox for instance. In CDK a feature for sshfs was offered, but for Windows-based developers it is better to use the tools they are used to (such as not installing a ssh daemon, but using CIFS-based shares). Note: minikube only offers a similar functionality due to the fact of using Guest Additions in the B2D(Boot2Docker) image.

@gbraad
gbraad / README.md
Last active June 28, 2018 09:05
Eclipse Che on Minishift

Eclipe Che on Minishift

$ minishift start --cpu 4 --memory 8192 --iso-url https://github.com/minishift/minishift-centos-iso/releases/download/v1.0.0-rc.3/minishift-centos7.iso
$ minishift ssh "sudo setenforce 0"  # disable SELinux
$ minishift ssh "sudo 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 docker run -p 8088:8080 \
       --name che \
 -v /var/run/docker.sock:/var/run/docker.sock \
@gbraad
gbraad / README.md
Last active August 30, 2017 06:48
Use Minishift as a Docker platform

Use Minishift as a Docker platform

$ 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
$ alias minidocker="docker -H tcp://`minishift ip`:2376 \
  --tls --tlscacert=$PWD/.minishift/certs/ca.pem
 --tlscert=$PWD/.minishift/certs/cert.pem
@gbraad
gbraad / README.md
Last active March 17, 2017 19:22
Run Eclipse Che

Run Eclipse Che on Fedora 25

$ docker run -p 8080:8080 \
       --name che \
       -v /var/run/docker.sock:/var/run/docker.sock \
       -v /var/chedata:/data:Z -e CHE_HOST=10.0.21.42 -e CHE_DOCKER_IP_EXTERNAL=10.0.21.42 \
       -e CHE_DOCKER_SERVER__EVALUATION__STRATEGY=docker-local --security-opt label:disable \
 rhche/che-server # eclipse/che-server