Skip to content

Instantly share code, notes, and snippets.

View andyshinn's full-sized avatar
🖥️
don't put computers in your mouth

Andy Shinn andyshinn

🖥️
don't put computers in your mouth
View GitHub Profile
config.vm.define :fuse do |fuse|
fuse.vm.provider :virtualbox do |vb|
vb.memory = 768
end
fuse.vm.hostname = "fuse-vagrant.mydomain.com"
fuse.vm.network :private_network, :ip => "172.16.48.50"
fuse.hostmanager.aliases = "fuse-vagrant"
fuse.vm.provision :puppet do |puppet|
puppet.manifest_file = "fuse.pp"
~/Projects/puppet-composer   exec_timeout ●  vagrant box outdated
Checking if box 'puppetlabs/ubuntu-12.04-x86_64-puppet' is up to date...
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
The requested URL returned error: 404 Not Found
andy@datagram:~/datagram_configuration$ sudo docker images -a
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
datagram latest 0fa7bbf0f2ae About an hour ago 537.7 MB
<none> <none> 7847eb0dce13 About an hour ago 537.7 MB
<none> <none> c2d0bd8b813b About an hour ago 537.7 MB
<none> <none> ea5d6b00a66e About an hour ago 459.9 MB
<none> <none> 553d054e6748 About an hour ago 459.9 MB
<none> <none> 8516c2d27d4b About an hour ago 459.8 MB
<none> <none> d64827295925 About an hour ago 449.7 MB
<none> <none> f1c69b173054 About an hour ago 268.4 MB
~/Projects/deis   master  deis register http://local.deisapp.com:8000
username: andy
password:
password (confirm):
email: andys@andyshinn.as
Couldn't connect to the Deis Controller. Make sure that the Controller URI is correct and the server is running.
✘  ~/Projects/deis   master  vagrant ssh
Last login: Sat May 24 08:17:50 2014 from 10.0.2.2
* * * ***** ddddd eeeeeee iiiiiii ssss
* * * * * * d d e e i s s
core@ip-172-16-64-214 ~ $ docker logs 0bebd4f59303
2014/05/26 23:16:11 docker daemon: 0.11.1 fb99f99; execdriver: native; graphdriver: btrfs
[cbb5c2c0] +job serveapi(unix:///var/run/docker.sock)
[cbb5c2c0] +job initserver()
[cbb5c2c0.initserver()] Creating server
2014/05/26 23:16:11 Listening for HTTP on unix (/var/run/docker.sock)
[cbb5c2c0] +job init_networkdriver()
[cbb5c2c0.init_networkdriver()] creating new bridge for docker0
[cbb5c2c0.init_networkdriver()] getting iface addr
[cbb5c2c0] -job init_networkdriver() = OK (0)
2014-05-26 22:00:54,231 INFO: 172.16.64.214 - - [26/May/2014:22:00:54] "PUT /v1/repositories/deis/slugrunner/tags/latest HTTP/1.1" 200 4 "-" "docker/0.11.1 go/go1.2 git-commit/fb99f99 kernel/3.14.4+ os/linux arch/amd64"
172.16.64.214 - - [26/May/2014:22:00:54] "PUT /v1/repositories/deis/slugrunner/images HTTP/1.1" 204 - "-" "docker/0.11.1 go/go1.2 git-commit/fb99f99 kernel/3.14.4+ os/linux arch/amd64"
2014-05-26 22:00:54,233 INFO: 172.16.64.214 - - [26/May/2014:22:00:54] "PUT /v1/repositories/deis/slugrunner/images HTTP/1.1" 204 - "-" "docker/0.11.1 go/go1.2 git-commit/fb99f99 kernel/3.14.4+ os/linux arch/amd64"
2014-05-26T23:16:52Z 4704a232e3fd confd[41]: ERROR template: config.yml:1:0: executing "config.yml" at <# The `common' part ...>: write /tmp/445184146: no space left on device
remote: ---> Running in 0bf74a7bfa50
remote: ---> 3acacd744018
remote: Removing intermediate container 0bf74a7bfa50
remote: Successfully built 3acacd744018
remote: -----> Pushing image to private registry
remote:
remote: Launching... done, v2
remote:
remote: -----> firehose deployed to Deis
remote: http://firehose.deis.mydomain.com
~/Projects/deis   master ●  make run
Job deis-router.1.service loaded on e8e0c542.../172.16.64.143
Job deis-router.2.service loaded on 76795b0c.../172.16.64.144
Job deis-router.3.service loaded on 6d1c05a0.../172.16.64.145
fleetctl --strict-host-key-checking=false load registry/systemd/deis-registry.service logger/systemd/deis-logger.service cache/systemd/deis-cache.service database/systemd/deis-database.service
Job deis-registry.service loaded on e8e0c542.../172.16.64.143
Job deis-database.service loaded on e8e0c542.../172.16.64.143
Job deis-logger.service loaded on e8e0c542.../172.16.64.143
Job deis-cache.service loaded on e8e0c542.../172.16.64.143
fleetctl --strict-host-key-checking=false load controller/systemd/*
@andyshinn
andyshinn / DEISAWS.md
Last active April 5, 2017 04:22
Deis AWS Deployment

Deploying Deis on AWS

These instructions will get you up and running with Deis and CoreOS in a AWS VPC. There already exists a CloudFormation script to get up and running in AWS. But if you want to get down and dirty, this document will help walk you through the steps.

I tried to build these instructions for both the AWS web console and equivilent AWS CLI. If you find errors, please feel free to comment so I can update them. You can also find me in the #deis IRC channel on Freenode if you have questions.

AWS

Since we will be running CoreOS and Deis inside a VPC we need some AWS setup first. We need a single subnet VPC, some security groups, and instances of CoreOS.

~/Projects/firehoseio/firehose-private   master  deis apps:info
=== firehose Application
{
"updated": "2014-05-27T02:44:45.286Z",
"uuid": "0c985847-0e4d-4a08-9eec-f7ef04350044",
"created": "2014-05-27T02:38:55.305Z",
"cluster": "deis",
"owner": "andy",
"id": "firehose",
"structure": "{\"cmd\": 1}"