ianmiell / shutit

Automation framework for programmers
http://ianmiell.github.io/shutit/
MIT License
2.15k stars 110 forks source link

docker networking workaround #291

Closed ianmiell closed 7 years ago

ianmiell commented 7 years ago

replace with ccgo thing:


                shutit.install('bind-utils') # host needed                                                                                                                                        
            # Workaround for docker networking issues + landrush.                                                                                                                                 
            shutit.send("""echo "$(host -t A index.docker.io | grep has.address | head -1 | awk '{print $NF}') index.docker.io" >> /etc/hosts""")                                                 
            shutit.send("""echo "$(host -t A registry-1.docker.io | grep has.address | head -1 | awk '{print $NF}') registry-1.docker.io" >> /etc/hosts""")                                       
            shutit.send("""echo "$(host -t A auth.docker.io | grep has.address | head -1 | awk '{print $NF}') auth.docker.io" >> /etc/hosts""")           
ianmiell commented 7 years ago

Already been done.