This file contains hidden or 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
[Unit] | |
Description=Go Commit Watcher | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
ExecStartPre=/usr/bin/mkdir -p /opt/commitwatcher | |
ExecStartPre=/usr/bin/wget -q -N -P /opt/commitwatcher https://storage.googleapis.com/go-builder-data/docker-commitwatcher.tar.gz | |
ExecStartPre=/usr/bin/docker load --input /opt/commitwatcher/docker-commitwatcher.tar.gz | |
ExecStartPre=-/usr/bin/docker kill commitwatcher |
This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Kubernetes on EC2", | |
"Mappings": { | |
"RegionMap": { | |
"eu-central-1": {"AMI": "ami-54ccfa49"}, | |
"ap-northeast-1": {"AMI": "ami-f7b08ff6"}, | |
"sa-east-1": {"AMI": "ami-1304b30e"}, | |
"ap-southeast-2": {"AMI": "ami-0f117e35"}, | |
"ap-southeast-1": {"AMI": "ami-c04f6c92"}, |
This file contains hidden or 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
[1122/222601:INFO:update_engine_client.cc(250)] Waiting for update to complete. | |
LAST_CHECKED_TIME=1416695162 | |
PROGRESS=0.000000 | |
CURRENT_OP=UPDATE_STATUS_UPDATE_AVAILABLE | |
NEW_VERSION=0.0.0.0 | |
NEW_SIZE=106497369 | |
LAST_CHECKED_TIME=1416695162 | |
PROGRESS=0.000000 | |
CURRENT_OP=UPDATE_STATUS_UPDATE_AVAILABLE | |
NEW_VERSION=0.0.0.0 |
This file contains hidden or 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
core@standalone ~ $ cat /etc/os-release | |
NAME=CoreOS | |
ID=coreos | |
VERSION=509.1.0 | |
VERSION_ID=509.1.0 | |
BUILD_ID= | |
PRETTY_NAME="CoreOS 509.1.0" | |
ANSI_COLOR="1;32" | |
HOME_URL="https://coreos.com/" | |
BUG_REPORT_URL="https://github.com/coreos/bugs/issues" |
This file contains hidden or 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
#cloud-config | |
coreos: | |
fleet: | |
public-ip: $public_ipv4 | |
metadata: region=us-west |
This file contains hidden or 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
package main | |
import ( | |
"log" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | |
log.Printf("request from %v\n", r.RemoteAddr) |
This file contains hidden or 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
205 docker images | |
206 docker run --name=redis redis /bin/true | |
207 docker export redis | sudo tar -x -C redis - | |
208 docker export redis | sudo tar -x -C redis -f - | |
209 ls redis/ | |
210 cat redis/entrypoint.sh | |
211 cp manifest.json redis.json | |
212 vim redis | |
213 vim redis.json | |
214 vim redis.json |
This file contains hidden or 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
rocket $ godep restore | |
rocket $ godep save | |
godep: no buildable Go source files in /Users/kelseyhightower/go/src/github.com/coreos/rocket | |
godep: error loading packages | |
rocket $ godep save ./... | |
rocket $ git status | |
On branch trusted-keys | |
Changes not staged for commit: | |
(use "git add/rm <file>..." to update what will be committed) | |
(use "git checkout -- <file>..." to discard changes in working directory) |
This file contains hidden or 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
cfg.lcurls, err = flags.URLsFromFlags(cfg.FlagSet, "listen-client-urls", "bind-addr", cfg.clientTLSInfo) | |
if err != nil { | |
return err | |
} | |
cfg.acurls, err = flags.URLsFromFlags(cfg.FlagSet, "advertise-client-urls", "addr", cfg.clientTLSInfo) | |
if err != nil { | |
return err | |
} | |
cfg.resolveUrls() |
This file contains hidden or 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
cat hello-layout/manifest | |
{ | |
"acKind": "ImageManifest", | |
"acVersion": "0.1.1", | |
"name": "coreos.com/hello", | |
"labels": [ | |
{ | |
"name": "version", | |
"value": "0.0.1" | |
}, |