Skip to content

Commit 9348564

Browse files
author
Matthew Fisher
committed
Merge pull request #961 from deis/add-hosts-entry
fix(contrib): seed hosts for CDN workaround
2 parents c951ffa + d3dfa37 commit 9348564

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

contrib/coreos/user-data

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ coreos:
7777
Type=oneshot
7878
ExecStartPre=/usr/bin/rm /etc/motd
7979
ExecStart=/usr/bin/ln -s /run/deis/motd /etc/motd
80+
- name: cdn-workaround.service
81+
command: start
82+
content: |
83+
[Unit]
84+
Description=workaround for dotcloud/docker#2461
85+
86+
[Service]
87+
Type=oneshot
88+
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"
8089
write_files:
8190
- path: /run/deis/motd
8291
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 commit comments

Comments
 (0)