This repository was archived by the owner on Aug 14, 2023. It is now read-only.
File tree 9 files changed +32
-24
lines changed
9 files changed +32
-24
lines changed Original file line number Diff line number Diff line change 2
2
[ ![ 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 )
3
3
[ ![ Build Status] ( https://travis-ci.org/hypriot/image-builder-odroid-c1.svg )] ( https://travis-ci.org/hypriot/image-builder-odroid-c1 )
4
4
5
- ** PLEASE NOTE: This repo is currently not maintained.**
6
-
7
5
This repo builds the SD card image with HypriotOS for the ODROID C1 board. To build this SD card image we have to
8
6
9
7
* take the files for the root filesystem from [ ` os-rootfs ` ] ( https://github.com/hypriot/os-rootfs )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ echo "deb http://deb.odroid.in/c1/ xenial main" > /etc/apt/sources.list.d/odroid
13
13
14
14
# set up Hypriot Schatzkiste repository
15
15
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
17
17
18
18
# Set up docker repository
19
19
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' >
22
22
# update all apt repository lists
23
23
export DEBIAN_FRONTEND=noninteractive
24
24
apt-get update
25
+ apt-get upgrade -y
25
26
26
27
# ---install Docker tools---
27
28
apt-get install -y \
28
- lxc \
29
- aufs-tools \
29
+ fake-hwclock \
30
+ device-init= " ${DEVICE_INIT_VERSION} " \
30
31
cgroupfs-mount \
31
32
cgroup-bin \
32
- apparmor \
33
33
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} "
38
37
39
38
# install ODROID kernel
40
39
touch /boot/uImage
41
40
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} "
45
44
46
45
# cleanup APT cache and lists
47
46
apt-get clean
Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change 5
5
end
6
6
7
7
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\) / }
9
9
its ( :exit_status ) { should eq 0 }
10
10
end
11
11
12
12
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 / }
14
14
its ( :exit_status ) { should eq 0 }
15
15
end
Original file line number Diff line number Diff line change 1
1
require 'spec_helper'
2
2
3
3
describe command ( 'uname -r' ) do
4
- its ( :stdout ) { should match /3.10.80-142 / }
4
+ its ( :stdout ) { should match /3.10.104-185 / }
5
5
its ( :exit_status ) { should eq 0 }
6
6
end
Original file line number Diff line number Diff line change 56
56
end
57
57
58
58
# 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
60
63
it { should be_installed }
61
64
end
62
65
describe package ( 'docker-compose' ) do
Original file line number Diff line number Diff line change 6
6
7
7
describe command ( 'dpkg -l docker-engine' ) do
8
8
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/ }
10
10
its ( :exit_status ) { should eq 0 }
11
11
end
12
12
65
65
it { should be_owned_by 'root' }
66
66
end
67
67
68
- describe file ( '/var/lib/docker/overlay2 ' ) do
68
+ describe file ( '/var/lib/docker/aufs ' ) do
69
69
it { should be_directory }
70
70
it { should be_mode 700 }
71
71
it { should be_owned_by 'root' }
90
90
end
91
91
92
92
describe command ( 'docker info' ) do
93
- its ( :stdout ) { should match /Storage Driver: overlay / }
93
+ its ( :stdout ) { should match /Storage Driver: aufs / }
94
94
its ( :exit_status ) { should eq 0 }
95
95
end
96
96
Original file line number Diff line number Diff line change 8
8
it { should be_file }
9
9
it { should be_mode 644 }
10
10
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' }
12
12
end
13
13
14
14
describe file ( '/etc/apt/sources.list.d/odroid.list' ) do
15
15
it { should be_file }
16
16
it { should be_mode 644 }
17
17
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' }
20
19
end
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ export KERNEL_VERSION="185-1"
12
12
export DOCKER_ENGINE_VERSION="17.03.0~ce-0~debian-jessie"
13
13
export DOCKER_COMPOSE_VERSION="1.9.0-23"
14
14
export DOCKER_MACHINE_VERSION="0.9.0-39"
15
- export DEVICE_INIT_VERSION="0.1.8 "
15
+ export DEVICE_INIT_VERSION="0.1.9 "
You can’t perform that action at this time.
0 commit comments