Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #63 from hypriot/update_to_docker_1_11
Browse files Browse the repository at this point in the history
update to Docker 1.11
  • Loading branch information
Govinda-Fichtner committed May 9, 2016
2 parents caec4bc + f193930 commit bca6ad5
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 17 deletions.
2 changes: 1 addition & 1 deletion builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export HYPRIOT_IMAGE_VERSION
# specific versions of kernel/firmware and docker tools
export KERNEL_BUILD="20160404-055934"
export KERNEL_VERSION="4.1.20"
export DOCKER_ENGINE_VERSION="1.10.3-1"
export DOCKER_ENGINE_VERSION="1.11.1-1"
export DOCKER_COMPOSE_VERSION="1.6.2-28"
export DOCKER_MACHINE_VERSION="0.4.1-72"
export DEVICE_INIT_VERSION="0.1.5"
Expand Down
2 changes: 1 addition & 1 deletion builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ apt-get install -y \

# install hypriot packages for docker-tools
apt-get install -y \
"docker-hypriot=${DOCKER_ENGINE_VERSION}" \
"docker-engine=${DOCKER_ENGINE_VERSION}" \
"docker-compose=${DOCKER_COMPOSE_VERSION}" \
"docker-machine=${DOCKER_MACHINE_VERSION}" \
"device-init=${DEVICE_INIT_VERSION}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
end

describe command('docker images hypriot/rpi-swarm') do
its(:stdout) { should match /hypriot\/rpi-swarm .*latest .*8cd4dc8bb230 / }
its(:stdout) { should match /hypriot\/rpi-swarm .*latest .*07fafcb46ec6 / }
its(:exit_status) { should eq 0 }
end
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

describe command('dpkg -l device-init') do
its(:stdout) { should match /ii device-init/ }
its(:stdout) { should match /0.1.4/ }
its(:stdout) { should match /0.1.5/ }
its(:exit_status) { should eq 0 }
end

Expand All @@ -16,7 +16,7 @@
its(:content) { should match /docker:/ }
its(:content) { should match /images:/ }
its(:content) { should match /- "\/var\/local\/rpi-consul_v0\.6\.4\.tar.gz"/ }
its(:content) { should match /- "\/var\/local\/rpi-swarm_v1.2\.0\.tar\.gz"/ }
its(:content) { should match /- "\/var\/local\/rpi-swarm_v1.2\.1\.tar\.gz"/ }
end

describe file('/usr/local/bin/device-init') do
Expand Down
48 changes: 36 additions & 12 deletions builder/test-integration/spec/hypriotos-image/docker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
require 'spec_helper'

describe package('docker-hypriot') do
describe package('docker-engine') do
it { should be_installed }
end

describe command('dpkg -l docker-hypriot') do
its(:stdout) { should match /ii docker-hypriot/ }
its(:stdout) { should match /1.10.3-1/ }
describe command('dpkg -l docker-engine') do
its(:stdout) { should match /ii docker-engine/ }
its(:stdout) { should match /1.11.1-1/ }
its(:exit_status) { should eq 0 }
end

Expand All @@ -16,28 +16,52 @@
it { should be_owned_by 'root' }
end

describe file('/usr/lib/docker/dockerinit') do
describe file('/usr/bin/docker-containerd') do
it { should be_file }
it { should be_mode 755 }
it { should be_owned_by 'root' }
end

describe file('/etc/init.d/docker') do
describe file('/usr/bin/docker-containerd-ctr') do
it { should be_file }
it { should be_mode 755 }
it { should be_owned_by 'root' }
end

describe file('/usr/bin/docker-containerd-shim') do
it { should be_file }
it { should be_mode 755 }
it { should be_owned_by 'root' }
end

describe file('/usr/bin/docker-runc') do
it { should be_file }
it { should be_mode 755 }
it { should be_owned_by 'root' }
end

describe file('/lib/systemd/system/docker.service') do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
end

describe file('/lib/systemd/system/docker.socket') do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
end

describe file('/etc/default/docker') do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
its(:content) { should match /--storage-driver=overlay/ }
# its(:content) { should match /--storage-driver=overlay/ }
end

describe file('/var/lib/docker') do
it { should be_directory }
it { should be_mode 701 }
it { should be_mode 711 }
it { should be_owned_by 'root' }
end

Expand All @@ -49,19 +73,19 @@

describe file('/etc/bash_completion.d/docker') do
it { should be_file }
it { should be_mode 755 }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_file }
end

describe command('docker -v') do
its(:stdout) { should match /Docker version 1.10.3, build/ }
its(:stdout) { should match /Docker version 1.11.1, build/ }
its(:exit_status) { should eq 0 }
end

describe command('docker version') do
its(:stdout) { should match /Client:. Version: 1.10.3. API version: 1.22/m }
its(:stdout) { should match /Server:. Version: 1.10.3. API version: 1.22/m }
its(:stdout) { should match /Client:. Version: 1.11.1. API version: 1.23/m }
its(:stdout) { should match /Server:. Version: 1.11.1. API version: 1.23/m }
its(:exit_status) { should eq 0 }
end

Expand Down

0 comments on commit bca6ad5

Please sign in to comment.