Skip to content

Instantly share code, notes, and snippets.

View mrunalp's full-sized avatar

Mrunal Patel mrunalp

View GitHub Profile
kubeletArguments:
container-runtime:
- remote
container-runtime-endpoint:
- /var/run/crio.sock
experimental-cri:
- 'true'
image-service-endpoint:
- /var/run/crio.sock
node-labels:
diff --git a/cmd/kpod/load.go b/cmd/kpod/load.go
index ae346bc8..97783682 100644
--- a/cmd/kpod/load.go
+++ b/cmd/kpod/load.go
@@ -1,6 +1,8 @@
package main
import (
+ "fmt"
+ "os"
package main
import (
"fmt"
"log"
"os"
"syscall"
"time"
)
{
"ociVersion": "1.0.0-rc5-dev",
"platform": {
"os": "linux",
"arch": "amd64"
},
"process": {
"terminal": true,
"user": {
"uid": 0,
@mrunalp
mrunalp / test_vm.sh
Created April 27, 2017 21:34
Spawn a VM and run tests.
#!/bin/bash -ue
usage()
{
cat << _EOF_
Usage: $0 options
OPTIONS:
-h Display help.
-i Path to the image.
@mrunalp
mrunalp / cleanup.sh
Created January 17, 2017 21:28
Cleanup cri-o test env
#!/bin/bash -x
runc list | awk '{print $1}' | grep -v ID | xargs runc delete -f
mount | grep shm | grep /tmp/tmp | awk '{print $3}' | xargs umount
mount | grep devicemapper | grep /tmp/tmp | awk '{print $3}' | xargs umount
rm -rf /tmp/tmp.*
mount | grep shm | grep /var/lib/ocid | awk '{print $3}' | xargs umount
mount | grep devicemapper | grep /var/lib/ocid | awk '{print $3}' | xargs umount
rm -rf /var/lib/ocid
diff --git a/Makefile b/Makefile
index a84c539..de40636 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ MAN_INSTALL_PATH := ${PREFIX}/share/man/man8/
VERSION := ${shell cat ./VERSION}
all: $(RUNC_LINK)
- go build -i -ldflags "-X main.gitCommit=${COMMIT} -X main.version=${VERSION}" -tags "$(BUILDTAGS)" -o runc .
+ go build -i -ldflags "-X main.gitCommit ${COMMIT} -X main.version ${VERSION}" -tags "$(BUILDTAGS)" -o runc .
diff --git a/Makefile b/Makefile
index a84c539..16b0ec1 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ MAN_INSTALL_PATH := ${PREFIX}/share/man/man8/
VERSION := ${shell cat ./VERSION}
all: $(RUNC_LINK)
- go build -i -ldflags "-X main.gitCommit=${COMMIT} -X main.version=${VERSION}" -tags "$(BUILDTAGS)" -o runc .
+ go build -i -tags "$(BUILDTAGS)" -o runc .

For keybase.io

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="rgba" mode="assign"> <const>rgb</const> </edit>
<edit name="hinting" mode="assign"> <bool>true</bool> </edit>
<edit name="autohint" mode="assign"> <bool>true</bool> </edit>
<edit name="antialias" mode="assign"> <bool>true</bool> </edit>
<edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit>
<edit name="lcdfilter" mode="assign"> <const>lcdlight</const> </edit>