View Setup GitLab.md

GitLab for intranet use

Make sure baobao.local points to the IP in your network. Make sure this can be resolved using DNS, esle you have to perform additional changes in the containers /etc/hosts files and the runner config.

Run server

docker run --detach \
    --restart always \
    --name gitlab \
View virtual-tablet-log.txt
Looking for VirtualTablet HID control device...
Skipping Device: 20376676
Skipping Device: 20376676
Skipping Device: 20376676
Skipping Device: 20376676
Skipping Device: 20376676
Skipping Device: 20376676
Skipping Device: 20376676
Skipping Device: 20376676
Skipping Device: 20376676
View output
 gbraad ? … ? github.com ? praveenkumar ? machine-kvm2-driver ? make build  ? ? master 
mkdir -p out
go build \
-installsuffix "static" \
-ldflags "-X github.com/praveenkumar/machine-kvm2-driver/main.pluginVersion=0.11.0 " \
-tags libvirt.1.3.1 \
-o out/docker-machine-driver-kvm2
# pkg-config --cflags libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt libvirt
Package libvirt was not found in the pkg-config search path.
Perhaps you should add the directory containing `libvirt.pc'
View README.md

Start C9 IDE from systemd

Install Cloud9 first as [username]

$ ansible-playbook https://github.com/gbraad/ansible-playbooks/raw/master/playbooks/install-c9sdk.yml

Create service unit /etc/systemd/system/c9.service

View setup.sh
#!/bin/sh
export PATH=/usr/local/go/bin:$PATH
mkdir -p /workspace/minishift/src/github.com/minishift/
ln -s /projects/minishift /workspace/minishift/src/github.com/minishift/minishift
export GOPATH=/workspace/minishift/
export PATH=GOPATH/bin:$PATH
View README.md

Add swap to virtual machine

dd if=/dev/zero of=/.swapfile bs=1M count=2048
chmod 0600 /.swapfile
mkswap /.swapfile
swapon /.swapfile
View README.md

C9 IDE on Docker for ...

macOS

$ docker run -d \
  --restart=always \
  --name=c9ide-devel \
  -p 8181:8181 \
  -v $HOME/Workspace:/workspace:rw \
View README.md

Minishift registry mirror on Windows

Prerequisites

  • Windows 10
  • Hyper-V installed
  • Docker for Windows

Instructions

View README.md

Exploring MobyLinuxVM (or Docker host)

Use privileged Alpine chroot

$ docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
$ chroot /host

Use privileged nsenter

View README.md

Minishift

Starting Minishift

In the previous version, when you didn't install the driver plugin, Minishift would fail with an issue.

$ minishift start