Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jhon Honce jwhonce

🏠
Working from home
View GitHub Profile
View driver.go
package main
import (
"context"
"fmt"
"math/rand"
"os"
"os/user"
"sync"
"time"
@jwhonce
jwhonce / README.text
Last active Sep 11, 2021
macos M1 podman machine readme
View README.text
Interim instructions for using podman-machine on x86 MacOS
SetUp
1. Place gvproxy in /usr/local/bin
2. Place podman where-ever.
1. brew install qemu. This gets us the dependencies we need.
2. brew uninstall qemu (package only)
View gist:76b6d3fd5c924bcc1eb4ceb1dc2abb46
> 2020/11/16 09:58:09.125378 length=148 from=0 to=147
GET /version HTTP/1.1\r
Host: localhost\r
User-Agent: docker-sdk-python/4.3.1\r
Accept-Encoding: gzip, deflate\r
Accept: */*\r
Connection: keep-alive\r
\r
< 2020/11/16 09:58:09.142178 length=843 from=0 to=842
HTTP/1.1 200 OK\r
@jwhonce
jwhonce / gist:c6d7f229b360e3f981a1573558640272
Created Oct 28, 2020
--add-host foobar:127.0.0.1 docker.io/library/busybox:latest ping -c 1 foobar
View gist:c6d7f229b360e3f981a1573558640272
Running: /home/jhonce/Projects/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test011228627/crio --runroot /tmp/podman_test011228627/crio-run --runtime crun --conmon /usr/bin/conmon --cni-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test011228627 --events-backend file --storage-driver vfs run --pod 972000de9d7c76dcdb963d98d791c9eebe3fb24ccd99b10bca8d2c59f93b32a7 --add-host foobar:127.0.0.1 docker.io/library/busybox:latest ping -c 1 foobar
PING foobar (127.0.0.1): 56 data bytes
ping: permission denied (are you root?)
output: PING foobar (127.0.0.1): 56 data bytes
@jwhonce
jwhonce / logs.text
Last active Sep 22, 2020
gitlab-runner logs
View logs.text
> 2020/09/21 22:59:50.430296 length=74 from=0 to=73
GET /v1.25/info HTTP/1.1\r
Host: docker\r
User-Agent: Go-http-client/1.1\r
\r
< 2020/09/21 22:59:50.471142 length=2775 from=0 to=2774
HTTP/1.1 200 OK\r
Api-Version: 1.26\r
Content-Type: application/json\r
Docker-Experimental: false\r
View gist:fb26e83b53e3dbe3306abdb43699725c
[+0146s] not ok 45 podman build - global runtime flags test
[+0146s] # (from function `die' in file test/system/helpers.bash, line 287,
[+0146s] # from function `run_podman' in file test/system/helpers.bash, line 170,
[+0146s] # in test file test/system/070-build.bats, line 43)
[+0146s] # `run_podman 125 --runtime-flag invalidflag build -t build_test $tmpdir' failed
[+0146s] # $ /var/tmp/go/src/github.com/containers/podman/bin/podman-remote --url unix:/tmp/podman.bJIBTT rm --all --force
[+0146s] # $ /var/tmp/go/src/github.com/containers/podman/bin/podman-remote --url unix:/tmp/podman.bJIBTT images --all --format {{.Repository}}:{{.Tag}} {{.ID}}
[+0146s] # quay.io/libpod/testimage:20200902 423caf5c7e48
[+0146s] # $ /var/tmp/go/src/github.com/containers/podman/bin/podman-remote --url unix:/tmp/podman.bJIBTT --runtime-flag invalidflag build -t build_test /tmp/podman_bats.7mqUl0/build-test
[+0146s] # STEP 1: FROM quay.io/libpod/testimage:20200902
View gist:48fa8c9c4c891097742c140596508ace
1dd0959e58320ac3ccbf78bf658677ea5c6723a5
0cb20c6a8deeb9423378a138ca8faab0115461d3
379e35329ab640bd1cb55d87af5bc86b90a7dcce
6dea667d20cb8a8ae58e3e1220780ec4d55a13cb
View gist:96fc822ecd7d8742e428f445dfa8bf8f
jhonce@jhonce-fc:libpod (issues/6598 *$%=)$ bin/podman ps --remote --url ssh://root@localhost:22/run/podman/podman.sock
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
jhonce@jhonce-fc:libpod (issues/6598 *$%=)$ bin/podman --remote --url ssh://root@localhost:22/run/podman/podman.sock ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
View gist:37396c7be3613464324ef4731874700f
[Connections]
[Connections.default]
default = true
remote_identity = "/home/jhonce/.ssh/ocp-tier3"
remote_uri = "ssh://root@localhost:22/run/podman/podman.sock"
View gist:a16ff9b3b1bb050056d02001bf829935
find . -name '*.go' ! -path './vendor/*' -exec gofmt -s -w {} \+
git diff --exit-code
VERSION=1.18.0 GOBIN=/home/jhonce/Projects/go/bin sh ./hack/install_golangci.sh
Using existing /home/jhonce/Projects/go/bin/golangci-lint has version 1.18.0 built from 31afdf8 on 2019-09-10T09:35:37Z
hack/golangci-lint.sh run
Running golangci-lint for tunnel
Build Tags tunnel: apparmor,seccomp,selinux,remote,varlink,remoteclient
Skipped directories tunnel: pkg/api
level=warning msg="[runner/golint] Golint: can't lint 2 files: no file name for file &{Doc:<nil> Package:29005365 Name:shm Decls:[0xc025bfe9c0 0xc025bfea00 0xc025bfea40 0xc025bd5020 0xc025bd55f0 0xc025bd57a0 0xc025bd5890 0xc025bd5a40 0xc025bd5bf0 0xc025bd5da0 0xc025bd5f50 0xc025f4c120 0xc025f4c420 0xc025f4c690 0xc025f4c9c0 0xc025f4cb70 0xc025f4ce70 0xc025f4d020] Scope:scope 0xc01ed07470 {\n\tfunc TestLockSemaphoreActuallyLocks\n\tfunc TestLockLifecycleSingleLock\n\tfunc TestAllocateTwoLocksGetsDifferentLocks\n\tfunc runLockTest\n\tfunc TestDeallocateUnallocatedLoc