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 #124 from hypriot/update-docker-engine-1.12.1-rc1
Browse files Browse the repository at this point in the history
Update to official Docker Engine 1.12.1-rc1
  • Loading branch information
DieterReuter committed Aug 14, 2016
2 parents bcd7d87 + b703fcf commit 83c2eb0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 34 deletions.
6 changes: 3 additions & 3 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ apt-get install -y \

# install hypriot packages for docker-tools
apt-get install -y \
"docker-hypriot=${DOCKER_ENGINE_VERSION}" \
"docker-compose=${DOCKER_COMPOSE_VERSION}" \
"docker-machine=${DOCKER_MACHINE_VERSION}" \
"device-init=${DEVICE_INIT_VERSION}"

# enable Docker systemd service
systemctl enable docker
# set up Docker APT repository and install docker-engine package
#TODO: pin package version to ${DOCKER_ENGINE_VERSION}
curl -sSL https://test.docker.com | /bin/sh


echo "Installing rpi-serial-console script"
Expand Down
22 changes: 0 additions & 22 deletions builder/files/etc/systemd/system/docker.service

This file was deleted.

16 changes: 8 additions & 8 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.11.1-1/ }
describe command('dpkg -l docker-engine') do
its(:stdout) { should match /ii docker-engine/ }
its(:stdout) { should match /1.12.1~rc1-0~jessie/ }
its(:exit_status) { should eq 0 }
end

Expand Down Expand Up @@ -56,7 +56,7 @@
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
its(:content) { should match /ExecStart=\/usr\/bin\/docker daemon -H fd:\/\/ --storage-driver overlay/ }
its(:content) { should match /ExecStart=\/usr\/bin\/dockerd --storage-driver overlay -H fd:\/\// }
end

describe file('/var/run/docker.sock') do
Expand Down Expand Up @@ -92,13 +92,13 @@
end

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

describe command('docker version') do
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(:stdout) { should match /Client:. Version: 1.12.1-rc1. API version: 1.24/m }
its(:stdout) { should match /Server:. Version: 1.12.1-rc1. API version: 1.24/m }
its(:exit_status) { should eq 0 }
end

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'spec_helper'

describe file('/etc/apt/sources.list.d/raspberrypi.list') do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should contain 'deb http://archive.raspberrypi.org/debian/ jessie main' }
end
2 changes: 1 addition & 1 deletion versions.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RAW_IMAGE_CHECKSUM="2fbeb13b7b0f2308dbd0d82780b54c33003ad43d145ff08498b25fb8bbe1
# specific versions of kernel/firmware and docker tools
export KERNEL_BUILD="20160725-081443"
export KERNEL_VERSION="4.4.15"
export DOCKER_ENGINE_VERSION="1.11.1-1"
export DOCKER_ENGINE_VERSION="1.12.1~rc1-0~jessie"
export DOCKER_COMPOSE_VERSION="1.8.0-61"
export DOCKER_MACHINE_VERSION="0.8.0-30"
export DEVICE_INIT_VERSION="0.1.8"
Expand Down

0 comments on commit 83c2eb0

Please sign in to comment.