Skip to content

Commit

Permalink
issue #1: global-dns support for Boot2Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lgazo committed Apr 28, 2015
1 parent 13c7c90 commit 7b9355a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/cutlery
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ fn_distro(){
elif [ -f /etc/redhat-release ]; then
os=`cat /etc/redhat-release`
OS_TYPE=RH
elif [ -f /etc/os-release ]; then
os="$(uname -s) $(uname -r)"
OS_TYPE=TCE
else
os="$(uname -s) $(uname -r)"
echo "Unsupported OS right now $os"
Expand Down
2 changes: 2 additions & 0 deletions bin/cutlery-discovery
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function register
sudo apt-get install dnsmasq
elif [ "OS_TYPE" == "RH" ]; then
sudo yum install dnsmasq
elif [ "OS_TYPE" == "TCE" ]; then
tce-load -wi dnsmasq
else
echo "Don't know how to install dnsmasq, try it manually"
exit 42
Expand Down
3 changes: 3 additions & 0 deletions bin/cutlery-global-dns
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ if [ "$OS_TYPE" == "DEB" ]; then
elif [ "$OS_TYPE" == "RH" ]; then
defaults_file="/etc/sysconfig/docker"
defaults_var="OPTIONS='"
elif [ "$OS_TYPE" == "TCE" ]; then
defaults_file="/var/lib/boot2docker/profile"
defaults_var="EXTRA_ARGS='"
else
echo "Unidentified OS"
exit 42
Expand Down

0 comments on commit 7b9355a

Please sign in to comment.