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

Commit 9a569e6

Browse files
authored
Finalize update of Odroid C1 build (#30)
* Removed apparmor and lxc packages for now. * Added device-init, fake-hwclock * Updated integration tests. * Removed non-maintenance message
1 parent f31414b commit 9a569e6

File tree

9 files changed

+32
-24
lines changed

9 files changed

+32
-24
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
[![Join the chat at https://gitter.im/hypriot/talk](https://badges.gitter.im/hypriot/talk.svg)](https://gitter.im/hypriot/talk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
33
[![Build Status](https://travis-ci.org/hypriot/image-builder-odroid-c1.svg)](https://travis-ci.org/hypriot/image-builder-odroid-c1)
44

5-
**PLEASE NOTE: This repo is currently not maintained.**
6-
75
This repo builds the SD card image with HypriotOS for the ODROID C1 board. To build this SD card image we have to
86

97
* take the files for the root filesystem from [`os-rootfs`](https://github.com/hypriot/os-rootfs)

builder/chroot-script.sh

+10-11
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo "deb http://deb.odroid.in/c1/ xenial main" > /etc/apt/sources.list.d/odroid
1313

1414
# set up Hypriot Schatzkiste repository
1515
wget -q https://packagecloud.io/gpg.key -O - | apt-key add -
16-
echo 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main' > /etc/apt/sources.list.d/hypriot.list
16+
echo 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ jessie main' > /etc/apt/sources.list.d/hypriot.list
1717

1818
# Set up docker repository
1919
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2C52609D
@@ -22,26 +22,25 @@ echo 'deb [arch=armhf] https://apt.dockerproject.org/repo debian-jessie main' >
2222
# update all apt repository lists
2323
export DEBIAN_FRONTEND=noninteractive
2424
apt-get update
25+
apt-get upgrade -y
2526

2627
# ---install Docker tools---
2728
apt-get install -y \
28-
lxc \
29-
aufs-tools \
29+
fake-hwclock \
30+
device-init="${DEVICE_INIT_VERSION}" \
3031
cgroupfs-mount \
3132
cgroup-bin \
32-
apparmor \
3333
libltdl7 \
34-
"docker-engine=${DOCKER_ENGINE_VERSION}" \
35-
"docker-compose=${DOCKER_COMPOSE_VERSION}" \
36-
"docker-machine=${DOCKER_MACHINE_VERSION}" \
37-
--no-install-recommends
34+
docker-engine="${DOCKER_ENGINE_VERSION}" \
35+
docker-compose="${DOCKER_COMPOSE_VERSION}" \
36+
docker-machine="${DOCKER_MACHINE_VERSION}"
3837

3938
# install ODROID kernel
4039
touch /boot/uImage
4140
apt-get install -y \
42-
"u-boot-tools" \
43-
"initramfs-tools" \
44-
"linux-image-c1=${KERNEL_VERSION}"
41+
u-boot-tools \
42+
initramfs-tools \
43+
linux-image-c1="${KERNEL_VERSION}"
4544

4645
# cleanup APT cache and lists
4746
apt-get clean

builder/files/boot/device-init.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# hostname for your HypriotOS device
2+
hostname: black-pearl
3+
4+
# optional wireless network settings
5+
wifi:
6+
interfaces:
7+
# wlan0:
8+
# ssid: "MyNetwork"
9+
# password: "secret_password"

builder/test-integration/spec/hypriotos-docker/docker-swarm_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
end
66

77
describe command('docker run --rm -t hypriot/rpi-swarm --version') do
8-
its(:stdout) { should match /swarm version 1.1.0 \(HEAD\)/ }
8+
its(:stdout) { should match /swarm version 1.2.3 \(HEAD\)/ }
99
its(:exit_status) { should eq 0 }
1010
end
1111

1212
describe command('docker images hypriot/rpi-swarm') do
13-
its(:stdout) { should match /hypriot\/rpi-swarm .*latest .*5eab982fa301 / }
13+
its(:stdout) { should match /hypriot\/rpi-swarm .*latest .*3af9594249f2 / }
1414
its(:exit_status) { should eq 0 }
1515
end
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

33
describe command('uname -r') do
4-
its(:stdout) { should match /3.10.80-142/ }
4+
its(:stdout) { should match /3.10.104-185/ }
55
its(:exit_status) { should eq 0 }
66
end

builder/test-integration/spec/hypriotos-image/base/packages_spec.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
end
5757

5858
# additional application packages
59-
describe package('docker-hypriot') do
59+
describe package('device-init') do
60+
it { should be_installed }
61+
end
62+
describe package('docker-engine') do
6063
it { should be_installed }
6164
end
6265
describe package('docker-compose') do

builder/test-integration/spec/hypriotos-image/docker_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
describe command('dpkg -l docker-engine') do
88
its(:stdout) { should match /ii docker-engine/ }
9-
its(:stdout) { should match /17.03.0~ce-0~raspbian-jessie/ }
9+
its(:stdout) { should match /17.03.0~ce-0~debian-jessie/ }
1010
its(:exit_status) { should eq 0 }
1111
end
1212

@@ -65,7 +65,7 @@
6565
it { should be_owned_by 'root' }
6666
end
6767

68-
describe file('/var/lib/docker/overlay2') do
68+
describe file('/var/lib/docker/aufs') do
6969
it { should be_directory }
7070
it { should be_mode 700 }
7171
it { should be_owned_by 'root' }
@@ -90,7 +90,7 @@
9090
end
9191

9292
describe command('docker info') do
93-
its(:stdout) { should match /Storage Driver: overlay/ }
93+
its(:stdout) { should match /Storage Driver: aufs/ }
9494
its(:exit_status) { should eq 0 }
9595
end
9696

builder/test-integration/spec/hypriotos-image/hypriot-list_spec.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
it { should be_file }
99
it { should be_mode 644 }
1010
it { should be_owned_by 'root' }
11-
it { should contain 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main' }
11+
it { should contain 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ jessie main' }
1212
end
1313

1414
describe file('/etc/apt/sources.list.d/odroid.list') do
1515
it { should be_file }
1616
it { should be_mode 644 }
1717
it { should be_owned_by 'root' }
18-
it { should contain 'deb http://deb.odroid.in/c1/ trusty main' }
19-
it { should contain 'deb http://deb.odroid.in/ trusty main' }
18+
it { should contain 'deb http://deb.odroid.in/c1/ xenial main' }
2019
end

versions.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export KERNEL_VERSION="185-1"
1212
export DOCKER_ENGINE_VERSION="17.03.0~ce-0~debian-jessie"
1313
export DOCKER_COMPOSE_VERSION="1.9.0-23"
1414
export DOCKER_MACHINE_VERSION="0.9.0-39"
15-
export DEVICE_INIT_VERSION="0.1.8"
15+
export DEVICE_INIT_VERSION="0.1.9"

0 commit comments

Comments
 (0)