Skip to content

Commit

Permalink
Merge branch 'docker-1.7.1' into parallels
Browse files Browse the repository at this point in the history
* docker-1.7.1:
  Update Docker to v1.7.1

Conflicts:
	README.md
  • Loading branch information
legal90 committed Jul 15, 2015
2 parents ef2947e + a027fc5 commit b3312a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
18 changes: 7 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
BOOT2DOCKER_VERSION := 1.7.0
BOOT2DOCKER_VERSION := 1.7.1

B2D_ISO_FILE := boot2docker.iso
B2D_ISO_URL := https://github.com/boot2docker/boot2docker/releases/download/v$(BOOT2DOCKER_VERSION)/boot2docker.iso
B2D_ISO_CHECKSUM := e52d0ec9b0433520232457f141c19d70

PRL_B2D_ISO_FILE := boot2docker-prl.iso
PRL_B2D_ISO_URL := https://github.com/Parallels/boot2docker/releases/download/v1.7.0-prl-tools/boot2docker.iso
PRL_B2D_ISO_CHECKSUM := 6b6e5ddb06ade5adcd31194674e49ce7
B2D_ISO_CHECKSUM := 2c314e8686749097f4bd5cc215b1daa8

all: parallels virtualbox

Expand All @@ -26,17 +22,17 @@ build-virtualbox: $(B2D_ISO_FILE)
-var 'B2D_ISO_CHECKSUM=${B2D_ISO_CHECKSUM}' \
template.json

build-parallels: $(PRL_B2D_ISO_FILE)
build-parallels: $(B2D_ISO_FILE)
packer build -parallel=false -only=parallels-iso \
-var 'B2D_ISO_FILE=${PRL_B2D_ISO_FILE}' \
-var 'B2D_ISO_CHECKSUM=${PRL_B2D_ISO_CHECKSUM}' \
-var 'B2D_ISO_FILE=${B2D_ISO_FILE}' \
-var 'B2D_ISO_CHECKSUM=${B2D_ISO_CHECKSUM}' \
template.json

clean-virtualbox:
rm -rf *_virtualbox.box $(B2D_ISO_FILE)
rm -f *_virtualbox.box $(B2D_ISO_FILE)

clean-parallels:
rm -rf *_parallels.box $(PRL_B2D_ISO_FILE)
rm -f *_parallels.box $(B2D_ISO_FILE)

test-virtualbox:
@cd tests/virtualbox; bats --tap *.bats
Expand Down
2 changes: 1 addition & 1 deletion template.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"variables": {
"B2D_ISO_FILE": "boot2docker.iso",
"B2D_ISO_CHECKSUM": "e52d0ec9b0433520232457f141c19d70"
"B2D_ISO_CHECKSUM": "2c314e8686749097f4bd5cc215b1daa8"
},
"builders": [{
"type": "virtualbox-iso",
Expand Down
2 changes: 1 addition & 1 deletion tests/parallels/boot2docker_vagrant_parallels.bats
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bats

DOCKER_TARGET_VERSION=1.7.0
DOCKER_TARGET_VERSION=1.7.1

# Assume that Vagrantfile exists and basebox is added
@test "vagrant up" {
Expand Down
2 changes: 1 addition & 1 deletion tests/virtualbox/boot2docker_vagrant_virtualbox.bats
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
vagrant ssh -c 'docker ps'
}

DOCKER_TARGET_VERSION=1.7.0
DOCKER_TARGET_VERSION=1.7.1
@test "Docker is version DOCKER_TARGET_VERSION=${DOCKER_TARGET_VERSION}" {
DOCKER_VERSION=$(vagrant ssh -c "docker version | grep 'Client version' | awk '{print \$3}'" -- -n -T)
[ "${DOCKER_VERSION}" == "${DOCKER_TARGET_VERSION}" ]
Expand Down

0 comments on commit b3312a5

Please sign in to comment.