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
require "spec_helper" | |
describe "dockerfile built my_app image" do | |
before(:all) do | |
@image = Docker::Image.all(:all => true).find { |image| | |
Docker::Util.parse_repo_tag( image.info['RepoTags'].first ).first == 'my_app' | |
} | |
p @image.json["Env"] | |
end |
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
require "docker" | |
docker_host = ENV['DOCKER_HOST'].dup | |
if(ENV['DOCKER_TLS_VERIFY']) | |
cert_path = File.expand_path ENV['DOCKER_CERT_PATH'] | |
Docker.options = { | |
client_cert: File.join(cert_path, 'cert.pem'), | |
client_key: File.join(cert_path, 'key.pem') | |
} |
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
:openstack: | |
:openstack_auth_url: http://10.0.0.106:5000/v2.0/tokens | |
:openstack_api_key: nomoresecrets | |
:openstack_username: admin | |
:openstack_tenant: admin | |
:openstack_region: RegionOne # Optional | |
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
[[local|localrc]] | |
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50 | |
ADMIN_PASSWORD=nomoresecrets | |
MYSQL_PASSWORD=iheartdatabases | |
RABBIT_PASSWORD=flopsymopsy | |
SERVICE_PASSWORD=$ADMIN_PASSWORD | |
#HOST_IP=10.0.0.106 | |
DEST=/opt/stack | |
LOGFILE=$DEST/logs/stack.sh.log |
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
wget https://johnlewis.ie/getnflash_johnlewis_rom.sh | |
chmod u+x getnflash_johnlewis_rom.sh | |
./getnflash_johnlewis_rom.sh |
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
AWS_ACCESS_KEY_ID=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/accessKey") | |
AWS_SECRET_ACCESS_KEY=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/secretKey") | |
AWS_S3_HOST=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/host") | |
AWS_S3_PORT=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/port") |
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
docker run --name deis-store-gateway \ | |
--hostname deis-store-gateway \ | |
--env HOST=$IP \ | |
--env EXTERNAL_PORT=8888 \ | |
--publish 8888:8888 \ | |
--detach \ | |
deis/store-gateway:latest |
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
docker run --name deis-store-monitor \ | |
--env HOST=$IP \ | |
--publish 6789 \ | |
--net host \ | |
--detach \ | |
deis/store-monitor:latest |
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
docker run --rm \ | |
coreos/etcd \ | |
/bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; \ | |
go install ; \ | |
/go/bin/etcdctl --peers $IP:4001 \ | |
set /deis/store/hosts/$IP $IP" |
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
docker run --name deis-store-daemon \ | |
--volumes-from=deis-store-daemon-data \ | |
--env HOST=$IP \ | |
--publish 6800 \ | |
--net host \ | |
--detach \ | |
deis/store-daemon:latest |