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

Commit bce831b

Browse files
authored
Merge pull request #31 from docbobo/feature/docker-compose
Updated docker-compose & docker-machine
2 parents 9a569e6 + ea318c5 commit bce831b

File tree

5 files changed

+42
-27
lines changed

5 files changed

+42
-27
lines changed

builder/chroot-script.sh

+34-15
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,45 @@ echo 'deb [arch=armhf] https://apt.dockerproject.org/repo debian-jessie main' >
2121

2222
# update all apt repository lists
2323
export DEBIAN_FRONTEND=noninteractive
24-
apt-get update
25-
apt-get upgrade -y
24+
apt-get update
25+
apt-get upgrade -y
2626

27-
# ---install Docker tools---
28-
apt-get install -y \
29-
fake-hwclock \
30-
device-init="${DEVICE_INIT_VERSION}" \
31-
cgroupfs-mount \
32-
cgroup-bin \
33-
libltdl7 \
34-
docker-engine="${DOCKER_ENGINE_VERSION}" \
35-
docker-compose="${DOCKER_COMPOSE_VERSION}" \
36-
docker-machine="${DOCKER_MACHINE_VERSION}"
27+
# define packages to install
28+
packages=(
29+
# as the Odroid C1/C1+ does not have a hardware clock we need a fake one
30+
fake-hwclock
31+
32+
# install device-init
33+
device-init=${DEVICE_INIT_VERSION}
34+
35+
# install dependencies for docker-tools
36+
cgroupfs-mount \
37+
cgroup-bin \
38+
libltdl7 \
39+
40+
# required to install docker-compose
41+
python-pip
42+
43+
# install docker-engine, docker-machine
44+
docker-engine="${DOCKER_ENGINE_VERSION}"
45+
)
46+
47+
apt-get -y install --no-install-recommends ${packages[*]}
48+
49+
# install docker-compose
50+
pip install docker-compose=="${DOCKER_COMPOSE_VERSION}"
51+
52+
# install docker-machine
53+
curl -L "https://github.com/docker/machine/releases/download/v${DOCKER_MACHINE_VERSION}/docker-machine-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-machine
54+
chmod +x /usr/local/bin/docker-machine
3755

3856
# install ODROID kernel
3957
touch /boot/uImage
4058
apt-get install -y \
41-
u-boot-tools \
42-
initramfs-tools \
43-
linux-image-c1="${KERNEL_VERSION}"
59+
--no-install-recommends \
60+
u-boot-tools \
61+
initramfs-tools \
62+
linux-image-"${KERNEL_VERSION}"
4463

4564
# cleanup APT cache and lists
4665
apt-get clean
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.104-185/ }
4+
its(:stdout) { should match /3.10.104-186/ }
55
its(:exit_status) { should eq 0 }
66
end

builder/test-integration/spec/hypriotos-image/docker-compose_spec.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
end
66

77
describe command('dpkg -l docker-compose') do
8-
its(:stdout) { should match /ii docker-compose/ }
9-
its(:stdout) { should match /1.9.0-23/ }
10-
its(:exit_status) { should eq 0 }
8+
it { should_not be_installed }
119
end
1210

1311
describe file('/usr/local/bin/docker-compose') do
@@ -17,6 +15,6 @@
1715
end
1816

1917
describe command('docker-compose --version') do
20-
its(:stdout) { should match /1.9.0/m }
18+
its(:stdout) { should match /1.11.2/m }
2119
its(:exit_status) { should eq 0 }
2220
end

builder/test-integration/spec/hypriotos-image/docker-machine_spec.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
end
66

77
describe command('dpkg -l docker-machine') do
8-
its(:stdout) { should match /ii docker-machine/ }
9-
its(:stdout) { should match /0.9.0-39/ }
10-
its(:exit_status) { should eq 0 }
8+
it { should_not be_installed }
119
end
1210

1311
describe file('/usr/local/bin/docker-machine') do
@@ -17,6 +15,6 @@
1715
end
1816

1917
describe command('docker-machine --version') do
20-
its(:stdout) { should match /0.9.0/m }
18+
its(:stdout) { should match /0.10.0/m }
2119
its(:exit_status) { should eq 0 }
2220
end

versions.config

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ RAW_IMAGE_VERSION="v0.2.2"
88
RAW_IMAGE_CHECKSUM="fe9af7686960d5d2dd6c364197e196d751f6adedd7da515ed6521c31e9582f8a"
99

1010
# specific versions of kernel/firmware and docker tools
11-
export KERNEL_VERSION="185-1"
11+
export KERNEL_VERSION="3.10.104-186"
1212
export DOCKER_ENGINE_VERSION="17.03.0~ce-0~debian-jessie"
13-
export DOCKER_COMPOSE_VERSION="1.9.0-23"
14-
export DOCKER_MACHINE_VERSION="0.9.0-39"
13+
export DOCKER_COMPOSE_VERSION="1.11.2"
14+
export DOCKER_MACHINE_VERSION="0.10.0"
1515
export DEVICE_INIT_VERSION="0.1.9"

0 commit comments

Comments
 (0)