Skip to content

Instantly share code, notes, and snippets.

Mrunal Patel mrunalp

  • Red Hat, Inc
Block or report user

Report or block mrunalp

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 build_docker.sh
set -e
set -x
RUNC_GOPATH="$(mktemp -d)"
CONTAINERD_GOPATH="$(mktemp -d)"
PWD="$(pwd)"
function cleanup() {
rm -rf "${RUNC_GOPATH}"
rm -rf "${CONTAINERD_GOPATH}"
View policy.json
{
"default": [
{
"type": "insecureAcceptAnything"
}
],
"transports":
{
"docker-daemon":
{
View node-config.yaml
kubeletArguments:
container-runtime:
- remote
container-runtime-endpoint:
- /var/run/crio.sock
experimental-cri:
- 'true'
image-service-endpoint:
- /var/run/crio.sock
node-labels:
View kpod_load
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"
View test_write.go
package main
import (
"fmt"
"log"
"os"
"syscall"
"time"
)
View config.json
{
"ociVersion": "1.0.0-rc5-dev",
"platform": {
"os": "linux",
"arch": "amd64"
},
"process": {
"terminal": true,
"user": {
"uid": 0,
@mrunalp
mrunalp / test_vm.sh
Created Apr 27, 2017
Spawn a VM and run tests.
View test_vm.sh
#!/bin/bash -ue
usage()
{
cat << _EOF_
Usage: $0 options
OPTIONS:
-h Display help.
-i Path to the image.
@mrunalp
mrunalp / cleanup.sh
Created Jan 17, 2017
Cleanup cri-o test env
View cleanup.sh
#!/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
View rhel.patch
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 .
View rhel.patch
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 .
You can’t perform that action at this time.