Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
hubboss / bin / etc-hosts-aws_stage
Size: Mime:
#!/bin/bash

###
# Generate /etc/hosts entries for testing with aws_stage
#

ELB_DEFAULT_NAME=elb-default.stage-us-east-1.aws.dckr.io
ELB_HUB_NAME=elb-hub.stage-us-east-1.aws.dckr.io
ELB_IO_NAME=elb-io.stage-us-east-1.aws.dckr.io

hub_docker_com_elb=`dig +short $ELB_HUB_NAME | tail -n1`
docker_com_elb=`dig +short $ELB_DEFAULT_NAME | tail -n1`
docker_io_elb=`dig +short $ELB_IO_NAME | tail -n1`

echo "# $ELB_DEFAULT_NAME"
echo $docker_com_elb            hub-stage.docker.com
echo $docker_com_elb            hub-beta-stage.docker.com
echo $docker_com_elb            hub-gateway-stage.docker.com
echo "# $ELB_HUB_NAME"
echo $hub_docker_com_elb        registry-stage.hub.docker.com
echo "# $ELB_IO_NAME"
echo $docker_io_elb             index-stage.docker.io