https://github.com/docker/libswarm
This service will deploy Docker container onto EC2 instance. It will do all of the work spinning up the instance if it doesn't exist already.
export AWS_ACCESS_KEY_ID=XXXX
| #cloud-config | |
| coreos: | |
| etcd: | |
| discovery: https://discovery.etcd.io/<token> | |
| addr: $private_ipv4:4001 | |
| peer-addr: $private_ipv4:7001 | |
| fleet: | |
| public-ip: $private_ipv4 # used for fleetctl ssh command | |
| units: |
https://github.com/docker/libswarm
This service will deploy Docker container onto EC2 instance. It will do all of the work spinning up the instance if it doesn't exist already.
export AWS_ACCESS_KEY_ID=XXXX
| ./swarmd "dockerserver tcp://localhost:4243" "aggregate 'ec2 --ami=xxxx --keypair=xxxx --tag=xxxx' 'dockerclient tcp://x.x.x.x:4243'" |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "bufio" | |
| "io" | |
| "os" | |
| "time" | |
| ) |
| Traceback (most recent call last): | |
| File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run | |
| result = self._run(*self.args, **self.kwargs) | |
| File "/docker-registry/lib/storage/boto_base.py", line 48, in _fetch_part | |
| boto_key.get_contents_to_file(f, headers={'Range': brange}) | |
| File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1578, in get_contents_to_file | |
| response_headers=response_headers) | |
| File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1418, in get_file | |
| query_args=None) | |
| File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1471, in _get_file_internal |
| Bundler could not find compatible versions for gem "json": | |
| In Gemfile: | |
| chef (~> 11.8.2) ruby depends on | |
| json (<= 1.7.7, >= 1.4.4) ruby | |
| omnibus (~> 1.3.0) ruby depends on | |
| json (1.8.1) |
| #!/bin/bash | |
| # remember original ruby location | |
| export CURRENT_RUBY=$(which ruby) | |
| alias ruby="ruby_wrapper" | |
| # call bundle exec if there's a Gemfile.lock | |
| function ruby_wrapper() { | |
| # unalias it to get the real ruby version |
| ─➤ vagrant provision 1 ↵ | |
| [default] The cookbook path '/Users/aaron.feng/code/artifact-cookbook-good/fixtures/databags' doesn't exist. Ignoring... | |
| [Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant. | |
| [Berkshelf] You should check for a newer version of vagrant-berkshelf. | |
| [Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues | |
| [Berkshelf] You can also join the discussion in #berkshelf on Freenode. | |
| [Berkshelf] Updating Vagrant's berkshelf: '/Users/aaron.feng/.berkshelf/default/vagrant/berkshelf-20131029-50324-z5k7zn-default' | |
| [Berkshelf] Using artifact (1.10.3) | |
| [Berkshelf] Using artifact_test (0.1.0) at './fixtures/artifact_test' | |
| [Berkshelf] Using windows (1.8.10) |
| docker run -lxc-conf="lxc.pivotdir = lxc_putold" -v /mnt/data:/mnt/data ubuntu touch /mnt/data/hello |
| ps aux | grep ngin[x] | tr -s ' ' | echo -n `cut -d' ' -f2` | tr ' ' ',' | xargs -I pid sh -c "ls -alh /proc/{pid}/fd" | grep socket | wc -l |