Skip to content

Instantly share code, notes, and snippets.

View clnperez's full-sized avatar

cnorman clnperez

View GitHub Profile
@clnperez
clnperez / gist:fd172fa1eb5f326d0df4
Created May 5, 2015 17:16
openstack-machine-create-fail
ssh dial tcp:%s:%d, config: %v129.41.144.16122 &{{<nil> 0 [] [] []} ibmcloud [0x786990] <nil> }
Creating new session...
ssh defer session close...
ssh: calling session.Run()...
Running command: %sDEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y curl
ssh dial tcp:%s:%d, config: %v129.41.144.16122 &{{<nil> 0 [] [] []} ibmcloud [0x786990] <nil> }
Creating new session...
ssh defer session close...
ssh: calling session.Run()...
Error creating machine: Process exited with: 100. Reason was: ()
@clnperez
clnperez / gist:6011bc91579da843869d
Created June 12, 2015 18:42
wait restructure for message
diff --git a/drivers/exoscale/exoscale.go b/drivers/exoscale/exoscale.go
index 5a62d3c..d4e2f4c 100644
--- a/drivers/exoscale/exoscale.go
+++ b/drivers/exoscale/exoscale.go
@@ -438,7 +438,7 @@ func (d *Driver) waitForJob(client *egoscale.Client, jobid string) error {
log.Infof("Waiting for job to complete...")
return utils.WaitForSpecificOrError(func() (bool, error) {
return d.jobIsDone(client, jobid)
- }, 60, 2*time.Second)
+ }, 60, 2*time.Second, "")
@clnperez
clnperez / gist:e3a5ae691ae13bf32d3b
Created June 12, 2015 20:58
wait restructure for message
diff --git a/drivers/exoscale/exoscale.go b/drivers/exoscale/exoscale.go
index 5a62d3c..d4e2f4c 100644
--- a/drivers/exoscale/exoscale.go
+++ b/drivers/exoscale/exoscale.go
@@ -438,7 +438,7 @@ func (d *Driver) waitForJob(client *egoscale.Client, jobid string) error {
log.Infof("Waiting for job to complete...")
return utils.WaitForSpecificOrError(func() (bool, error) {
return d.jobIsDone(client, jobid)
- }, 60, 2*time.Second)
+ }, 60, 2*time.Second, "")
@clnperez
clnperez / gist:127527e8dac8ae1d088d
Last active August 29, 2015 14:23
hanging indent in script
diff --git a/hack/make/.integration-daemon-stop b/hack/make/.integration-daemon-stop
index 364490b..0c9ecab 100644
--- a/hack/make/.integration-daemon-stop
+++ b/hack/make/.integration-daemon-stop
@@ -12,10 +12,11 @@ done
if [ -z "$DOCKER_TEST_HOST" ]; then
# Stop apparmor if it is enabled
- if [ "$(cat /sys/module/apparmor/parameters/enabled)" == "Y" ]; then
- (
@clnperez
clnperez / gist:a9e38933da2a45f26413
Created January 20, 2016 16:07
docker 1.9.1 integration tests log with go 1.6 beta on ppc64le
---> Making bundle: .integration-daemon-start (in bundles/1.9.1/test-integration-cli)
+++ /etc/init.d/apparmor start
* Starting AppArmor profiles
...done.
+++ exec docker daemon --debug --host unix:///go/src/github.com/docker/docker/bundles/1.9.1/test-integration-cli/docker.sock --storage-driver vfs --exec-driver native --pidfile bundles/1.9.1/test-integration-cli/docker.pid --userland-proxy=true
---> Making bundle: .integration-daemon-setup (in bundles/1.9.1/test-integration-cli)
---> Making bundle: .ensure-emptyfs (in bundles/1.9.1/test-integration-cli)
++++ tar -cC bundles/1.9.1/test-integration-cli/emptyfs .
++++ docker load
---> Making bundle: .ensure-frozen-images (in bundles/1.9.1/test-integration-cli)
@clnperez
clnperez / gist:80599c5955749cf1cc61
Created January 20, 2016 16:08
docker 1.8.3 integration tests log with go 1.6 beta on ppc64le
# WARNING! I don't seem to be running in the Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#
bundles/1.8.3 already exists. Removing.
---> Making bundle: binary (in bundles/1.8.3/binary)
@clnperez
clnperez / gist:d0f200193d9c74457ad4
Created January 20, 2016 17:16
docker 1.9.1 integration tests log with gccgo 5.3 on ppc64le
---> Making bundle: .integration-daemon-start (in bundles/1.9.1/test-integration-cli)
+++ /etc/init.d/apparmor start
Starting AppArmor profiles:Warning from stdin (line 1): /sbin/apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
.
+++ exec docker daemon --debug --host unix:///go/src/github.com/docker/docker/bundles/1.9.1/test-integration-cli/docker.sock --storage-driver vfs --exec-driver native --pidfile bundles/1.9.1/test-integration-cli/docker.pid --userland-proxy=true
---> Making bundle: .integration-daemon-setup (in bundles/1.9.1/test-integration-cli)
---> Making bundle: .ensure-emptyfs (in bundles/1.9.1/test-integration-cli)
++++ tar -cC bundles/1.9.1/test-integration-cli/emptyfs .
++++ docker load
---> Making bundle: .ensure-frozen-images (in bundles/1.9.1/test-integration-cli)
@clnperez
clnperez / ppc64le-s390-install.sh
Last active March 17, 2016 22:46
Alternate install sript to use with docker machien for Power and Z
#!/bin/sh
set -e
#
# This script is meant for quick & easy install via:
# 'curl -sSL https://get.docker.com/ | sh'
# or:
# 'wget -qO- https://get.docker.com/ | sh'
#
# For test builds (ie. release candidates):
# 'curl -fsSL https://test.docker.com/ | sh'
@clnperez
clnperez / gist:3dd3624844013594439496f2e5bf8606
Created July 21, 2017 20:20
example mutli-arch yaml file (hello-world)
image: clnperez/hello-world:latest
manifests:
-
image: ppc64le/hello-world:latest
-
image: hello-world:latest
-
image: armhf/hello-world
platform:
os: linux
@clnperez
clnperez / istio-auth.yaml
Last active July 9, 2018 15:20
mutli-arch ibmcom istio-auth.yaml
# GENERATED FILE. Use with Kubernetes 1.7+
# TO UPDATE, modify files in install/kubernetes/templates and run install/updateVersion.sh
################################
# Istio system namespace
################################
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
---