Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pmorie's full-sized avatar
🎯
Focusing

Paul Morie pmorie

🎯
Focusing
  • Apple
  • Raleigh, NC
View GitHub Profile
@pmorie
pmorie / core.go
Last active September 3, 2015 18:16 — forked from lhuard1A/core.go
How to create a GO program that cores…
package main
import (
"fmt"
)
// #include <stdlib.h>
// #include "signal.h"
import "C"
Aug 28 18:26:26 kornbluth.localdomain docker[31710]: time="2015-08-28T18:26:26-04:00" level=info msg="POST /containers/32e5e44a3ae1a5f9710424e3001d580e9672223aa199dac0b4a03a867a36af26/start"
Aug 28 18:26:26 kornbluth.localdomain docker[31710]: time="2015-08-28T18:26:26-04:00" level=info msg="+job start(32e5e44a3ae1a5f9710424e3001d580e9672223aa199dac0b4a03a867a36af26)"
Aug 28 18:26:26 kornbluth.localdomain docker[31710]: time="2015-08-28T18:26:26-04:00" level=debug msg="activateDeviceIfNeeded(32e5e44a3ae1a5f9710424e3001d580e9672223aa199dac0b4a03a867a36af26)"
Aug 28 18:26:26 kornbluth.localdomain docker[31710]: time="2015-08-28T18:26:26-04:00" level=debug msg="libdevmapper(6): ioctl/libdm-iface.c:1768 (4) dm info docker-253:2-2754464-32e5e44a3ae1a5f9710424e3001d580e9672223aa199dac0b4a03a867a36af26 OF [16384] (*1)"
Aug 28 18:26:26 kornbluth.localdomain docker[31710]: time="2015-08-28T18:26:26-04:00" level=debug msg="libdevmapper(6): libdm-common.c:2304 (4) Udev cookie 0xd4d7242 (semid 107708416) created"
Aug
###
# setup
###
[vagrant@openshiftdev ~]$ git clone https://github.com/CrunchyData/os-pg-testing
Cloning into 'os-pg-testing'...
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 38 (delta 13), reused 34 (delta 9), pack-reused 0
Unpacking objects: 100% (38/38), done.
Checking connectivity... done.
apiVersion: v1
kind: Pod
metadata:
name: secret-example-pod
spec:
containers:
- name: secret-test-container
image: busybox
command: [ "/bin/sh", "-c", "cat /etc/secret-volume/*" ]
volumeMounts:
doodlepod-1-fpf68 10.1.0.8 ip-172-19-32-45.ec2.internal/172.19.32.45 deployment=doodlepod-1,deploymentconfig=doodlepod,generatedby=OpenShiftWebConsole,name=doodlepod Running About a minute
doodlepod 172.30.101.155:5000/demo-test/doodlepod@sha256:4f72f124d8228345a958b8d5db761ca1e4675650f28f9b79d40bc983c183ed28 Running 37 seconds
doodlepod-1-ghrxq 10.4.0.4 ip-172-19-32-44.ec2.internal/172.19.32.44 deployment=doodlepod-1,deploymentconfig=doodlepod,generatedby=OpenShiftWebConsole,name=doodlepod Running About a minute
// Optional: no more than one of the following may be specified.
// Optional: Defaults to ""; variable references $(VAR_NAME) are expanded
// using the previous defined environment variables in the container and
// any service environment variables. If a variable cannot be resolved,
// the reference in the input string will be unchanged. The $(VAR_NAME)
// syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
// references will never be expanded, regardless of whether the variable
// exists or not.
$ _output/local/go/bin/osc get pods
POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS CREATED MESSAGE
deploy-docker-registry-1hpk89 127.0.0.1/127.0.0.1 <none> Pending 6 seconds
deployment openshift/origin-deployer:31e42ed Waiting Image: openshift/origin-deployer:31e42ed is not ready on the node
deploy-router-1537ja 127.0.0.1/127.0.0.1 <none> Pending 8 seconds
deployment openshift/origin-deployer:31e42ed Waiting Image: openshift/origin-deployer:31e42ed is not ready on the node
★ pmorie:~/code/origin (master *)
$ docker images | grep origin
docker.io/openshift/origin-sti-builder late
@pmorie
pmorie / .go
Last active August 29, 2015 14:20
type pruneFuncDecorator struct {
pruner prune.ImagePruneFunc
}
func (p *pruneFuncDecorator) prune(image *imageapi.Image, streams []*imageapi.ImageStream) []error {
glog.Infof("my message")
return p.pruner()
}
// site of construction of image prune func
$ docker push !$
docker push docker-registry.usersys.redhat.com/kubernetes/kubelet
FATA[0000] Error: v1 ping attempt failed with error: Get https://docker-registry.usersys.redhat.com/v1/_ping: dial tcp 10.3.10.70:443: connection refused. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry docker-registry.usersys.redhat.com` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/docker-registry.usersys.redhat.com/ca.crt
My name is Paul Morie. I am writing on behalf of my wife, who is a FAA paid member.
The new image upload wizard appears to be functioning incorrectly. The priors:
- Windows 7 on Intel Core i7
- Chrome
- Firefox
When we upload a new image, the following behavior occurs: