Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit a3b874d

Browse files
author
Leonid Makarov
committed
Merge pull request #74 from blinkreaction/develop
Release v1.5.0
2 parents 8b8c8c1 + 4364c18 commit a3b874d

6 files changed

+32
-11
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 1.5.0 (2016-04-14)
4+
5+
- Switched to blinkreaction/boot2docker base box [v1.10.3](https://atlas.hashicorp.com/blinkreaction/boxes/boot2docker/versions/1.10.3)
6+
- boot2docker/docker 1.10.3, docker-compose 1.6.2
7+
- Using `upgrade` command with choco on Windows
8+
- Added winpty on Windows
9+
- This allows running interactive docker commands in Babun directly (without using `vagrant ssh -c`)
10+
- Using VirtualBox DNS proxy with the DNS Discovery service
11+
12+
313
## 1.4.0 (2016-01-20)
414

515
- Version updates

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Boot2docker Vagrant Box
2+
23
Boot2docker Vagrant box for optimized Docker and Docker Compose use on Mac and Windows.
34

45

Vagrantfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Vagrant.configure("2") do |config|
9999
config.vm.define "boot2docker"
100100

101101
config.vm.box = "blinkreaction/boot2docker"
102-
config.vm.box_version = "1.9.1"
102+
config.vm.box_version = "1.10.3"
103103
config.vm.box_check_update = true
104104

105105
## Network ##
@@ -262,10 +262,12 @@ Vagrant.configure("2") do |config|
262262
v.cpus = $vconfig['v.cpus'] # CPU settings. VirtualBox works much better with a single CPU.
263263
v.memory = $vconfig['v.memory'] # Memory settings.
264264

265-
# Disable VirtualBox DNS proxy as it may cause issues.
266-
# See https://github.com/docker/machine/pull/1069
265+
# Use VirtualBox DNS proxy mode (but not the resolver mode).
266+
# See https://www.virtualbox.org/manual/ch09.html#nat-adv-dns
267+
# and https://www.virtualbox.org/manual/ch09.html#nat_host_resolver_proxy
268+
# Also see https://github.com/docker/machine/pull/1069 for a different perspective on this.
269+
v.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
267270
v.customize ['modifyvm', :id, '--natdnshostresolver1', 'off']
268-
v.customize ['modifyvm', :id, '--natdnsproxy1', 'off']
269271
end
270272

271273
## Provisioning scripts ##
@@ -308,7 +310,7 @@ Vagrant.configure("2") do |config|
308310
echo "Starting system-wide DNS service... "
309311
docker rm -f dns > /dev/null 2>&1 || true
310312
docker run -d --name dns --label "group=system" \
311-
-p $1:53:53/udp -p 172.17.42.1:53:53/udp --cap-add=NET_ADMIN --dns 8.8.8.8 \
313+
-p $1:53:53/udp -p 172.17.42.1:53:53/udp --cap-add=NET_ADMIN --dns 10.0.2.3 \
312314
-v /var/run/docker.sock:/var/run/docker.sock \
313315
blinkreaction/dns-discovery@sha256:f1322ab6d5496c8587e59e47b0a8b1479a444098b40ddd598e85e9ab4ce146d8 > /dev/null
314316
SCRIPT

scripts/presetup-mac.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
DOCKER_VERSION=1.9.1
4-
DOCKER_COMPOSE_VERSION=1.5.2
3+
DOCKER_VERSION=1.10.3
4+
DOCKER_COMPOSE_VERSION=1.6.2
55

66
# Console colors
77
red='\033[0;31m'

scripts/presetup-win.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ REM Installing Chocolatey
22
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
33

44
REM Installing virtualbox
5-
choco install virtualbox -y
5+
choco upgrade virtualbox -y
66

77
REM Killing the default adapter and DHCP server to avoid network issues down the road
88
"C:\Program Files\Oracle\VirtualBox\VBoxManage" dhcpserver remove --netname "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
99
"C:\Program Files\Oracle\VirtualBox\VBoxManage" hostonlyif remove "VirtualBox Host-Only Ethernet Adapter"
1010

1111
REM Installing vagrant
12-
choco install vagrant -y
12+
choco upgrade vagrant -y

scripts/presetup-win.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

3-
DOCKER_VERSION=1.9.1
4-
DOCKER_COMPOSE_VERSION=1.5.2
3+
DOCKER_VERSION=1.10.3
4+
DOCKER_COMPOSE_VERSION=1.6.2
5+
WINPTY_VERSION=0.2.2
56

67
# Console colors
78
red='\033[0;31m'
@@ -37,6 +38,13 @@ echo-green "Installing docker-compose v${DOCKER_COMPOSE_VERSION}..."
3738
curl -sSL https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-Windows-x86_64.exe > /usr/local/bin/docker-compose
3839
chmod +x /usr/local/bin/docker-compose
3940

41+
# Install winpty
42+
echo-green "Installing winpty (console) v$WINPTY_VERSION..."
43+
curl -sSL -O https://github.com/rprichard/winpty/releases/download/$WINPTY_VERSION/winpty-$WINPTY_VERSION-cygwin-2.4.1-ia32.tar.gz
44+
tar -xf winpty-$WINPTY_VERSION-cygwin-2.4.1-ia32.tar.gz
45+
mv winpty-$WINPTY_VERSION-cygwin-2.4.1-ia32/bin/* /usr/bin
46+
rm -rf winpty-$WINPTY_VERSION-cygwin-2.4.1-ia32*
47+
4048
# Git settings
4149
echo-green "Adjusting git defaults..."
4250
git config --global core.autocrlf input

0 commit comments

Comments
 (0)