Skip to content

Instantly share code, notes, and snippets.

@charlesmarshall
charlesmarshall / build-output
Created October 9, 2014 21:44
build output with set -x
remote: + ARGS=3
remote: + '[' 3 -ne 3 ']'
remote: + USER=charles
remote: + REPO=presence.git
remote: + BRANCH=refs/heads/deis
remote: ++ get_app_name presence.git
remote: ++ echo presence.git
remote: ++ awk -F. '{print $1}'
remote: + APP_NAME=presence
remote: ++ dirname /home/git/builder
$ date && deis apps && date && deis apps && date
Thu Oct 9 15:10:03 UTC 2014
=== Apps
presence
Thu Oct 9 15:10:04 UTC 2014
=== Apps
presence
Thu Oct 9 15:12:11 UTC 2014
@charlesmarshall
charlesmarshall / install-failure
Created October 8, 2014 16:18
install failure
curl -sSL http://deis.io/deisctl/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1772k 100 1772k 0 0 652k 0 0:00:02 0:00:02 --:--:-- 652k
Verifying archive integrity... All good.
Uncompressing Deis Control Utility 100% Extraction failed.
Terminated
@charlesmarshall
charlesmarshall / deisctl-list
Created October 8, 2014 16:07
output of `deisctl list`
UNIT MACHINE LOAD ACTIVE SUB
[email protected] 574169c3.../10.0.1.247 loaded activating start-post
[email protected] 4298afc5.../10.0.3.34 loaded active running
[email protected] 120c6f83.../10.0.2.227 loaded active running
deis-database-data.service 120c6f83.../10.0.2.227 loaded active exited
[email protected] 120c6f83.../10.0.2.227 loaded active running
deis-logger-data.service 120c6f83.../10.0.2.227 loaded active exited
[email protected] 120c6f83.../10.0.2.227 loaded active running
deis-publisher.service 574169c3.../10.0.1.247 loaded active running
deis-publisher.service 574169c3.../10.0.1.247 loaded active running
@charlesmarshall
charlesmarshall / deis-registry-debug
Created October 8, 2014 15:46
output of fleetctl journal -f [email protected]
Oct 08 15:44:43 ip-10-0-2-227 sh[25900]: 2014-10-08T15:44:43Z 7e2e8a1fe7f7 confd[179]: ERROR 100: Key not found (/deis/store) [58429]
Oct 08 15:44:43 ip-10-0-2-227 sh[25900]: 2014-10-08T15:44:43Z 7e2e8a1fe7f7 confd[179]: ERROR 100: Key not found (/deis/store) [58429]
Oct 08 15:44:43 ip-10-0-2-227 sh[25900]: registry: waiting for confd to write initial templates...
@charlesmarshall
charlesmarshall / up.sh
Created September 18, 2014 11:03
vagrant up for coreos
#!/bin/bash
vagrant destroy -f
vagrant box update
ssh-keygen -f ~/.ssh/known_hosts -R 172.17.8.101
oldIFS="$IFS"
IFS="¬"
content="$(cat ./user-data)"
discovery="$(curl -s https://discovery.etcd.io/new)"
echo "new token: ${discovery}"
echo ${content} | sed -E "s#discovery: (.*)#discovery: ${discovery}#g" > ./user-data
@charlesmarshall
charlesmarshall / deis-status.sh
Created September 17, 2014 09:58
Simple script to parse out deis info data from a set of sub directories
#!/bin/bash
oldIFS=$IFS
IFS="
"
DIR=$1
printf "\n\n%-25s %-15s %10s %17s\n" "REPO" "DEIS NAME" "STATUS" "IP"
echo "======================================================================="
for d in $(find $DIR -maxdepth 1 -type d | sort ); do
if [[ "${d}" == "$DIR" ]]; then
@charlesmarshall
charlesmarshall / logs
Created September 11, 2014 16:16
logs
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Migrating...
Running migrations for api:
- Nothing to migrate.
- Loading initial data for api.
Installed 0 object(s) from 0 fixture(s)
@charlesmarshall
charlesmarshall / fleet-replace
Created September 10, 2014 14:16
replace fleet with other version
#!/bin/bash
fleet_location=""
fleetctl_location=""
version=""
delete_existing_dl(){
rm -Rf ./fleet-v${1}*
}
@charlesmarshall
charlesmarshall / etcd-data-to-docker-env-cascading
Created September 3, 2014 10:51
Cascading data fetch from etcd to docker -e string
etcdTestData(){
etcdctl set /env/globals/DB_HOST "global_database" 1> /dev/null
etcdctl set /env/staging/DB_HOST "staging_database" 1> /dev/null
etcdctl set /env/repo1/DB_HOST "repo1_database" 1> /dev/null
etcdctl set /env/repo2/staging/DB_HOST "repo2_staging_database" 1> /dev/null
}
##
# this will fetch data from: