Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(contrib): seed hosts for CDN workaround
Browse files Browse the repository at this point in the history
We are seeing lots of slow CDN issues. This is a workaround as
shown in moby/moby#2461 (comment)
  • Loading branch information
Matthew Fisher committed May 12, 2014
1 parent ecdff91 commit d3dfa37
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contrib/coreos/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ coreos:
Type=oneshot
ExecStartPre=/usr/bin/rm /etc/motd
ExecStart=/usr/bin/ln -s /run/deis/motd /etc/motd
- name: cdn-workaround.service
command: start
content: |
[Unit]
Description=workaround for dotcloud/docker#2461

[Service]
Type=oneshot
ExecStart=/bin/sh -c "grep -s cdn-registry-1.docker.io /etc/hosts || echo '54.224.119.89 cdn-registry-1.docker.io' >> /etc/hosts"
write_files:
- path: /run/deis/motd
content: " \e[31m* * \e[34m* \e[32m***** \e[39mddddd eeeeeee iiiiiii ssss\n\e[31m* * \e[34m* * \e[32m* * \e[39md d e e i s s\n \e[31m* * \e[34m***** \e[32m***** \e[39md d e i s\n\e[32m***** \e[31m* * \e[34m* \e[39md d e i s\n\e[32m* * \e[31m* * \e[34m* * \e[39md d eee i sss\n\e[32m***** \e[31m* * \e[34m***** \e[39md d e i s\n \e[34m* \e[32m***** \e[31m* * \e[39md d e i s\n \e[34m* * \e[32m* * \e[31m* * \e[39md d e e i s s\n\e[34m***** \e[32m***** \e[31m* * \e[39mddddd eeeeeee iiiiiii ssss\n\n\e[39mWelcome to Deis\t\t\tPowered by Core\e[38;5;45mO\e[38;5;206mS\e[39m\n"

0 comments on commit d3dfa37

Please sign in to comment.