Skip to content

Instantly share code, notes, and snippets.

View bacongobbler's full-sized avatar

Matthew Fisher bacongobbler

View GitHub Profile
### v2.0.0-rc2 -> v2.0.0
#### Fixes
- [`db4cd9d`](https://github.com/deis/postgres/commit/db4cd9db4df12489ab0d9ff27094322e889ed871) (postgres) - rootfs: always perform an initial backup
- [`7c89a3c`](https://github.com/deis/postgres/commit/7c89a3c290e845fe909faad835b8410ce8bbe6b9) (postgres) - rootfs: enable archive_mode before initial boot
- [`5910902`](https://github.com/deis/controller/commit/591090224719c47b209a1e1e74c1168f16248b92) (controller) - scheduler: cast ports to int before passing them on to k8s
- [`20ea192`](https://github.com/deis/workflow/commit/20ea192cf9537217d010ff1dc5e3f2807d32bce4) (workflow) - health: remove documentation on unused HEALTHCHECK_PORT
- [`cfdd9ab`](https://github.com/deis/charts/commit/cfdd9ab996a49ca119d954d81fc4569bd52ff89c) (charts) - deis-dev/tpl/deis-builder-rc.yaml: make the objectstore-creds secret read-only in builder
diff --git a/contrib/ci/test.sh b/contrib/ci/test.sh
index 0cc62df..3de3a37 100755
--- a/contrib/ci/test.sh
+++ b/contrib/ci/test.sh
@@ -51,50 +51,9 @@ echo "token" > $CURRENT_DIR/tmp/k8s/token
echo "cert" > $CURRENT_DIR/tmp/k8s/ca.crt
# boot minio
-MINIO_JOB=$(docker run -dv $CURRENT_DIR/tmp/aws-admin:/var/run/secrets/deis/minio/admin -v $CURRENT_DIR/tmp/aws-user:/var/run/secrets/deis/minio/user -v $CURRENT_DIR/tmp/k8s:/var/run/secrets/kubernetes.io/serviceaccount quay.io/deisci/minio:canary boot server /home/minio/)
+MINIO_JOB=$(docker run -dv $CURRENT_DIR/tmp/aws-admin:/var/run/secrets/deis/minio/admin -v $CURRENT_DIR/tmp/aws-user:/var/run/secrets/deis/minio/user -v $CURRENT_DIR/tmp/k8s:/var/run/secrets/kubernetes.io/serviceaccount -v $CURRENT_DIR/tmp/minio:/tmp/minio quay.io/deisci/minio:canary bash -c 'cd /tmp/minio && tar xzf /tmp/minio/dbwal.tar.gz && mv /tmp/minio/dbwal /home/minio && boot server /home/minio/')
@bacongobbler
bacongobbler / galley.go
Created January 20, 2016 00:11
chef-kitchen for kubernetes! Uses Kubernetes and Helm.
package main
import (
"fmt"
"encoding/json"
"io/ioutil"
"log"
"os"
"os/exec"
)
refs the new proposal in #4019. All input/feedback on the doc is welcome.
refs #3813
Please note that this document is being maintained at https://gist.github.com/bacongobbler/d2f0ef2311d1e3e28997 to keep a living history of any changes made.
During a typical deployment of an application release, the controller performs a status check from Fleet after it has been deployed to ensure that it is running. However, Fleet is a glorified systemd wrapper, which means that it only checks systemd if the process is running (in this case, `docker run`). If a container's web process takes some time to boot, this may cause a false positive status check from the user's perspective. This proposal introduces a new concept into Deis known as a health check, which will make the controller check Deis' Publisher component for real-time stats on the app to ensure the container is running before recycling the old release.
Goals
-----
#!/usr/bin/env bash
deis register http://deis.$DEIS_TEST_DOMAIN --username CHANGEME --password CHANGEME --email CHANGEME
deis keys:add ~/.ssh/id_rsa.pub
#!/bin/bash
inotifywait -r -m -e close_write --format '%w%f' $GOPATH/src/github.com/deis/deis | while read MODFILE
do
echo rsync\'ing $GOPATH/src/github.com/deis/deis ...
rsync -r $GOPATH/src/github.com/deis/deis root@docker.bacongobbler.com:go/src/github.com/deis
echo done
done
@bacongobbler
bacongobbler / bashrc.sh
Last active August 29, 2015 14:15
handy deis scripts
export DEISCTL_TUNNEL="some-ip-address"
export DEISCTL_UNITS="$GOPATH/src/github.com/deis/deis/deisctl/units"
export FLEETCTL_TUNNEL="$DEISCTL_TUNNEL"
export DEV_REGISTRY="your-dev-registry"
export DEIS_NUM_INSTANCES=3
export DEIS_TEST_DOMAIN="$DEISCTL_TUNNEL.xip.io"
export DEIS_TEST_AUTH_KEY="id_rsa"
export DEIS_TEST_SSH_KEY="$HOME/.ssh/id_rsa"
export DEIS_TEST_APP="example-go"
><> cd docker-registry-driver-swift
><> docker build .
Sending build context to Docker daemon 132.1 kB
Sending build context to Docker daemon
Step 0 : FROM registry
registry:latest: The image you are pulling has been verified
27d47432a69b: Pull complete
5f92234dcf1e: Pull complete
51a9c7c1f8bb: Pull complete
@bacongobbler
bacongobbler / bashrc.sh
Created February 3, 2015 03:58
bash PS1: flipping tables since 2014
function __gen_ps1() {
local EXIT="$?"
PS1=""
local RCol='\[\e[0m\]'
local Red='\[\e[0;31m\]'
local Gre='\[\e[0;32m\]'
local BYel='\[\e[1;33m\]'
local BBlu='\[\e[1;34m\]'
#!/bin/bash
export GOPATH=${WORKSPACE}
export DEV_REGISTRY=${HOST_IPADDR}:5000
export PATH=$PATH:${GOPATH}/bin
export DEIS_TEST_APP=example-clojure-ring
cd src/github.com/deis/deis
tests/bin/test-latest.sh