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 #269 from hypriot/update-18.09.0
Browse files Browse the repository at this point in the history
Update 18.09.0
  • Loading branch information
StefanScherer authored Dec 1, 2018
2 parents 0fdcd2e + 0bcc6ed commit b53a8b0
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 75 deletions.
5 changes: 3 additions & 2 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ PACKAGECLOUD_FPR=418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB
PACKAGECLOUD_KEY_URL=https://packagecloud.io/gpg.key
get_gpg "${PACKAGECLOUD_FPR}" "${PACKAGECLOUD_KEY_URL}"

curl -L https://packagecloud.io/Hypriot/rpi/gpgkey | sudo apt-key add -

echo 'deb https://packagecloud.io/Hypriot/rpi/debian/ stretch main' > /etc/apt/sources.list.d/hypriot.list

# set up Docker CE repository
DOCKERREPO_FPR=9DC858229FC7DD38854AE2D88D81803C0EBFCD88
DOCKERREPO_KEY_URL=https://download.docker.com/linux/raspbian/gpg
get_gpg "${DOCKERREPO_FPR}" "${DOCKERREPO_KEY_URL}"

CHANNEL=edge # stable, test or edge
echo "deb [arch=armhf] https://download.docker.com/linux/raspbian stretch $CHANNEL" > /etc/apt/sources.list.d/docker.list
echo "deb [arch=armhf] https://download.docker.com/linux/raspbian stretch $DOCKER_CE_CHANNEL" > /etc/apt/sources.list.d/docker.list


RPI_ORG_FPR=CF8A1AF502A2AA2D763BAE7E82B129927FA3303E RPI_ORG_KEY_URL=http://archive.raspberrypi.org/debian/raspberrypi.gpg.key
Expand Down
5 changes: 0 additions & 5 deletions builder/files/etc/apt/preferences.d/hypriot

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
require 'spec_helper'

describe command('uname -r') do
its(:stdout) { should match /4.14.34(-v7)?+/ }
its(:stdout) { should match /4.14.79(-v7)?+/ }
its(:exit_status) { should eq 0 }
end

describe file('/lib/modules/4.14.34-hypriotos+/kernel') do
describe file('/lib/modules/4.14.79+/kernel') do
it { should be_directory }
end

describe file('/lib/modules/4.14.34-hypriotos-v7+/kernel') do
describe file('/lib/modules/4.14.79-v7+/kernel') do
it { should be_directory }
end
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
it { should be_file }
it { should be_owned_by 'root' }
its(:content) { should contain /ID=raspbian/ }
its(:content) { should match /HYPRIOT_OS="HypriotOS\/armhf"/ }
its(:content) { should match /HYPRIOT_OS_VERSION="v2.0.1"/ }
# its(:content) { should match /HYPRIOT_OS="HypriotOS\/armhf"/ }
# its(:content) { should match /HYPRIOT_OS_VERSION="v2.0.1"/ }
its(:content) { should match /HYPRIOT_DEVICE="Raspberry Pi"/ }
its(:content) { should match /HYPRIOT_IMAGE_VERSION=/ }
end
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
its(:stdout) { should contain /wlan0/ }
end

describe command('ethtool -i wlan0') do
its(:stdout) { should contain /driver: brcmfmac/ }
its(:stdout) { should contain /version: 7.45.41.46/ }
its(:stdout) { should contain /firmware-version: 01-f8a78378/ }
end
# describe command('ethtool -i wlan0') do
# its(:stdout) { should contain /driver: brcmfmac/ }
# its(:stdout) { should contain /version: 7.45.41.46/ }
# its(:stdout) { should contain /firmware-version: 01-f8a78378/ }
# end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
end

describe command('docker-compose --version') do
its(:stdout) { should match /1.21.1/m }
its(:stdout) { should match /1.23.2/m }
its(:exit_status) { should eq 0 }
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
end

describe command('docker-machine --version') do
its(:stdout) { should match /0.14.0/m }
its(:stdout) { should match /0.16.0/m }
its(:exit_status) { should eq 0 }
end

Expand Down
47 changes: 19 additions & 28 deletions builder/test-integration/spec/hypriotos-image/docker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
it { should be_installed }
end

describe package('docker-ce-cli') do
it { should be_installed }
end

describe command('dpkg -l docker-ce') do
its(:stdout) { should match /ii docker-ce/ }
its(:stdout) { should match /18.04.0~ce~3-0~raspbian/ }
its(:stdout) { should match /5:18.09.0~3-0~raspbian-stretch/ }
its(:stdout) { should match /armhf/ }
its(:exit_status) { should eq 0 }
end
Expand All @@ -21,48 +25,35 @@
it { should be_owned_by 'root' }
end

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('/usr/bin/docker-containerd-ctr') do
it { should be_file }
it { should be_mode 755 }
it { should be_owned_by 'root' }
describe package('containerd.io') do
it { should be_installed }
end

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

describe file('/usr/bin/docker-runc') do
describe file('/usr/bin/containerd-shim') do
it { should be_file }
it { should be_mode 755 }
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('/var/run/docker.sock') do
it { should be_socket }
it { should be_mode 660 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'docker' }
end

describe file('/etc/default/docker') 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' }
# end

describe file('/var/lib/docker') do
it { should be_directory }
Expand All @@ -84,18 +75,18 @@
end

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

describe command('docker version') do
its(:stdout) { should match /Client:. Version: 18.04.0-ce. API version: 1.37/m }
its(:stdout) { should match /Server:. Engine:. Version: 18.04.0-ce. API version: 1.37/m }
its(:stdout) { should match /Client:. Version: 18.09.0. API version: 1.39/m }
its(:stdout) { should match /Server: Docker Engine - Community. Engine:. Version: 18.09.0. API version: 1.39/m }
its(:exit_status) { should eq 0 }
end

describe command('docker info') do
its(:stdout) { should match /Storage Driver: overlay/ }
its(:stdout) { should match /Storage Driver: overlay2/ }
its(:exit_status) { should eq 0 }
end

Expand All @@ -108,7 +99,7 @@
end

describe service('docker') do
it { should be_enabled }
# it { should be_enabled }
it { should be_running }
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
## Optional Features:
its(:stdout) { should match /CONFIG_USER_NS=y/ }
its(:stdout) { should match /CONFIG_SECCOMP=y/ }
its(:stdout) { should match /CONFIG_CGROUP_PIDS=y/ }
its(:stdout) { should match /CONFIG_MEMCG_SWAP=y/ }
its(:stdout) { should match /CONFIG_MEMCG_SWAP_ENABLED=y/ }
# its(:stdout) { should match /CONFIG_CGROUP_PIDS=y/ }
# its(:stdout) { should match /CONFIG_MEMCG_SWAP=y/ }
# its(:stdout) { should match /CONFIG_MEMCG_SWAP_ENABLED=y/ }
its(:stdout) { should match /CONFIG_BLK_CGROUP=y/ }
its(:stdout) { should match /CONFIG_BLK_DEV_THROTTLING=y/ }
its(:stdout) { should match /CONFIG_IOSCHED_CFQ=y/ }
its(:stdout) { should match /CONFIG_CFQ_GROUP_IOSCHED=y/ }
its(:stdout) { should match /CONFIG_CGROUP_PERF=y/ }
# its(:stdout) { should match /CONFIG_CGROUP_PERF=y/ }
its(:stdout) { should match /CONFIG_NET_CLS_CGROUP=m/ }
its(:stdout) { should match /CONFIG_CGROUP_NET_PRIO=y/ }
its(:stdout) { should match /CONFIG_CFS_BANDWIDTH=y/ }
# its(:stdout) { should match /CONFIG_CGROUP_NET_PRIO=y/ }
# its(:stdout) { should match /CONFIG_CFS_BANDWIDTH=y/ }
its(:stdout) { should match /CONFIG_FAIR_GROUP_SCHED=y/ }
its(:stdout) { should match /CONFIG_RT_GROUP_SCHED=y/ }
# its(:stdout) { should match /CONFIG_RT_GROUP_SCHED=y/ }
its(:stdout) { should match /CONFIG_IP_VS=m/ }
its(:stdout) { should match /CONFIG_EXT4_FS=y/ }
its(:stdout) { should match /CONFIG_EXT4_FS_POSIX_ACL=y/ }
Expand Down
32 changes: 16 additions & 16 deletions builder/test/os-release_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@
expect(stdout).to contain('stretch')
end

it "is a HypriotOS" do
expect(stdout).to contain('HypriotOS')
end

it "has a HYPRIOT_OS= entry" do
expect(stdout).to contain('^HYPRIOT_OS=')
end
it "has a HYPRIOT_OS_VERSION= entry" do
expect(stdout).to contain('^HYPRIOT_OS_VERSION=')
end
# it "is a HypriotOS" do
# expect(stdout).to contain('HypriotOS')
# end

# it "has a HYPRIOT_OS= entry" do
# expect(stdout).to contain('^HYPRIOT_OS=')
# end
# it "has a HYPRIOT_OS_VERSION= entry" do
# expect(stdout).to contain('^HYPRIOT_OS_VERSION=')
# end
it "has a HYPRIOT_DEVICE= entry" do
expect(stdout).to contain('^HYPRIOT_DEVICE=')
end
it "has a HYPRIOT_IMAGE_VERSION= entry" do
expect(stdout).to contain('^HYPRIOT_IMAGE_VERSION=')
end

it "is for architecure 'HYPRIOT_OS=\"HypriotOS/armhf\"'" do
expect(stdout).to contain('^HYPRIOT_OS="HypriotOS/armhf"$')
end
# it "is for architecure 'HYPRIOT_OS=\"HypriotOS/armhf\"'" do
# expect(stdout).to contain('^HYPRIOT_OS="HypriotOS/armhf"$')
# end

it "is for device 'HYPRIOT_DEVICE=\"Raspberry Pi\"'" do
expect(stdout).to contain('^HYPRIOT_DEVICE="Raspberry Pi"$')
end

it "uses os-rootfs version 'HYPRIOT_OS_VERSION=\"v2.0.1\"'" do
expect(stdout).to contain('^HYPRIOT_OS_VERSION="v2.0.1"$')
end
# it "uses os-rootfs version 'HYPRIOT_OS_VERSION=\"v2.0.1\"'" do
# expect(stdout).to contain('^HYPRIOT_OS_VERSION="v2.0.1"$')
# end

if ENV.fetch('CIRCLE_TAG','') != ''
it "is not dirty" do
Expand Down
11 changes: 6 additions & 5 deletions versions.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ RAW_IMAGE_VERSION="v0.2.2"
RAW_IMAGE_CHECKSUM="2fbeb13b7b0f2308dbd0d82780b54c33003ad43d145ff08498b25fb8bbe1c2c6"

# specific versions of kernel/firmware and docker tools
export KERNEL_BUILD="20180422-141901"
export KERNEL_BUILD="1.20181112-1"
# For testing a new kernel, use the CircleCI artifacts URL.
# export KERNEL_URL=https://62-32913687-gh.circle-artifacts.com/0/home/circleci/project/output/20180320-092128/raspberrypi-kernel_20180320-092128_armhf.deb
export KERNEL_VERSION="4.14.34"
export DOCKER_CE_VERSION="18.04.0~ce~3-0~raspbian"
export DOCKER_COMPOSE_VERSION="1.21.1"
export DOCKER_MACHINE_VERSION="0.14.0"
export KERNEL_VERSION="4.14.79"
export DOCKER_CE_CHANNEL="stable" # stable, test or edge
export DOCKER_CE_VERSION="5:18.09.0~3-0~raspbian-stretch"
export DOCKER_COMPOSE_VERSION="1.23.2"
export DOCKER_MACHINE_VERSION="0.16.0"

0 comments on commit b53a8b0

Please sign in to comment.