Skip to content

Instantly share code, notes, and snippets.

Darren Shepherd ibuildthecloud

Block or report user

Report or block ibuildthecloud

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View README.md

Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio

Install WSL2

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2

Compile Kernel

Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download https://thirdpartysource.microsoft.com/download/Windows%20Subsystem%20for%20Linux%20v2/May%202019/WSLv2-Linux-Kernel-master.zip and extract to a folder. The latest version of the kernel source is available at (https://github.com/microsoft/WSL2-Linux-Kernel)

View keybase.md

Keybase proof

I hereby claim:

  • I am ibuildthecloud on github.
  • I am ibuildthecloud (https://keybase.io/ibuildthecloud) on keybase.
  • I have a public key whose fingerprint is 4FF5 E1D0 D3E2 E50C 0BCB 39A0 31C9 9FD9 691B 79C3

To claim this, I am signing this object:

@ibuildthecloud
ibuildthecloud / README.md
Last active Jul 10, 2016
Runv on RancherOS v0.5.0
View README.md

Switch to ubuntu console

sudo ros console switch -f ubuntu

Install packages to build to runv

sudo apt-get update
@ibuildthecloud
ibuildthecloud / fix.sql
Last active Mar 15, 2016
Fix failed upgrade to v0.63.0
View fix.sql
TRUNCATE `process_execution`;
ALTER TABLE `process_execution` DROP `created`;
View something.patch
diff --git a/resources/content/schema/base/container.json b/resources/content/schema/base/container.json
index e1dcddd..65e482c 100644
--- a/resources/content/schema/base/container.json
+++ b/resources/content/schema/base/container.json
@@ -232,6 +232,10 @@
"nullable": false,
"default" : "0"
},
+ "myFoo" : {
+ "type" : "string",
@ibuildthecloud
ibuildthecloud / cloud-config.yml
Last active Dec 11, 2015
cloud-config w/ script
View cloud-config.yml
#cloud-config
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
#!/bin/bash
echo "I'm doing things on start"
touch /tmp/i-did-something
View system-service
#cloud-config
rancher:
services:
my-service:
labels:
# This indicates to run in system-docker as opposed to user docker.
# Comment if you want user docker.
io.rancher.os.scope: system
image: nginx
@ibuildthecloud
ibuildthecloud / yaml
Created Dec 1, 2015
cloud-config for rancher-agent
View yaml
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAA...
rancher:
services:
rancher-agent-install:
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
image: rancher/agent:v0.8.2
View bad ps
=== BEGIN goroutine stack dump ===
goroutine 7965 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
/go/src/github.com/docker/docker/pkg/signal/trap.go:67 +0xa5
github.com/docker/docker/pkg/signal.func\ufffd\ufffd001(0x7f3abcd54268, 0xc20c7f17a0)
/go/src/github.com/docker/docker/pkg/signal/trap.go:48 +0x35e
created by github.com/docker/docker/pkg/signal.func\ufffd\ufffd002
/go/src/github.com/docker/docker/pkg/signal/trap.go:53 +0x13a
goroutine 1 [chan receive, 7 minutes]:
You can’t perform that action at this time.