This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z $1 ] | |
then | |
echo "You must set a domain name." | |
exit 1 | |
fi | |
# generate a private key and CSR | |
openssl req -nodes -newkey rsa:2048 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func updateSQS(t time.Time) { | |
log.Println("Sending heartbeat to SQS") | |
// create the SQS client | |
client, err := sqs.NewFrom(os.Getenv("AWS_ACCESS_KEY_ID"), os.Getenv("AWS_SECRET_ACCESS_KEY"), "us.east") | |
if err != nil { | |
log.Println("ERROR:", err) | |
} | |
// fake an existing sqs.Message by creating it and setting the ReceiptHandle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ flynn apps | |
ID NAME | |
af906746504042d5999d8135acda9a2a devops-web | |
b41affd16aec4a7d8ad06bc24b6f682c gitreceive | |
f3b9f6f7bb2e4b4d8e360752dc292aff router | |
7cca6ea4e74348d38ef88175d0119dae blobstore | |
f12a78c8df9c4d08b0ac5dc44ce4c2c2 postgres | |
e5eee5d32f1345ebb6c4de6220fc433f controller | |
$ flynn log f3b9f6f7bb2e4b4d8e360752dc292aff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ flynn route add -c /Users/ianneub/Downloads/server.crt -k /Users/ianneub/Downloads/server.key devops-web.demo.localflynn.com | |
http/77e595da631b53309cb428b26d27f598 | |
$ flynn route | |
ROUTE SERVICE ID | |
http:devops-web.demo.localflynn.com devops-web-web http/77e595da631b53309cb428b26d27f598 | |
$ curl 'https://devops-web.demo.localflynn.com/' -D - | |
curl: (35) Server aborted the SSL handshake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -k 'https://devops-web.demo.localflynn.com/' -D - | |
curl: (35) Server aborted the SSL handshake | |
$ flynn route | |
ROUTE SERVICE ID | |
https:devops-web.demo.localflynn.com devops-web-web http/77e595da631b53309cb428b26d27f598 | |
$ curl -vk 'https://devops-web.demo.localflynn.com/' -D - | |
* Adding handle: conn: 0x7fcf91804000 | |
* Adding handle: send: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/deis | |
/deis/logs | |
/deis/logs/host | |
/deis/logs/port | |
/deis/cache | |
/deis/cache/port | |
/deis/cache/host | |
/deis/controller | |
/deis/controller/port | |
/deis/controller/protocol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 2377k 100 2377k 0 0 1091k 0 0:00:02 0:00:02 --:--:-- 1092k | |
Verifying archive integrity... All good. | |
Uncompressing Deis Control Utility 100% | |
Refreshed deis-builder.service from v0.15.0 | |
Refreshed deis-cache.service from v0.15.0 | |
Refreshed deis-controller.service from v0.15.0 | |
Refreshed deis-database.service from v0.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'json' | |
raise "Invalid arguments: dssh [container-name] [command=/bin/bash]" if ARGV.length < 1 | |
service_name = "#{ARGV[0]}" | |
ARGV[1] ||= "/bin/bash" | |
command = ARGV[1..-1].join(' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import tutum | |
import string | |
import logging | |
import copy | |
import re | |
# requests_log = logging.getLogger("python-tutum") | |
# requests_log.setLevel(logging.INFO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015-09-03T22:23:11.688470157Z [fix-attrs.d] applying owners & permissions fixes... | |
2015-09-03T22:23:11.689396833Z [fix-attrs.d] 00-runscripts: applying... | |
2015-09-03T22:23:11.703805774Z [fix-attrs.d] 00-runscripts: exited 0. | |
2015-09-03T22:23:11.704387739Z [fix-attrs.d] done. | |
2015-09-03T22:23:11.704634468Z [cont-init.d] executing container initialization scripts... | |
2015-09-03T22:23:11.705508118Z [cont-init.d] dns_init.sh: executing... | |
2015-09-03T22:23:11.707549089Z DNS hacks, initial hosts generation. | |
2015-09-03T22:23:11.713697966Z Contents of dnsmasq-resolv.conf | |
2015-09-03T22:23:11.713719432Z ------------------- | |
2015-09-03T22:23:11.714421162Z nameserver 10.1.0.2 |
OlderNewer