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 #29 from docbobo/feature/repositories
Browse files Browse the repository at this point in the history
Some clean-up around repositories, packages.
  • Loading branch information
StefanScherer authored Mar 9, 2017
2 parents e69f196 + 5296e26 commit f31414b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
36 changes: 20 additions & 16 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,40 @@ HYPRIOT_DEVICE="ODROID C1/C1+"
echo "nameserver 8.8.8.8" > /etc/resolv.conf

# set up ODROID repository
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB19BAC9
echo "deb http://deb.odroid.in/c1/ trusty main" > /etc/apt/sources.list.d/odroid.list
echo "deb http://deb.odroid.in/ trusty main" >> /etc/apt/sources.list.d/odroid.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB19BAC9 D986B59D
echo "deb http://deb.odroid.in/c1/ xenial main" > /etc/apt/sources.list.d/odroid.list

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

# Set up docker repository
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2C52609D
echo 'deb [arch=armhf] https://apt.dockerproject.org/repo debian-jessie main' > /etc/apt/sources.list.d/docker.list

# update all apt repository lists
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get update

# ---install Docker tools---

# install Hypriot packages for using Docker
apt-get install -y \
lxc \
aufs-tools \
cgroupfs-mount \
cgroup-bin \
apparmor \
libltdl7 \
"docker-engine=${DOCKER_ENGINE_VERSION}" \
"docker-compose=${DOCKER_COMPOSE_VERSION}" \
"docker-machine=${DOCKER_MACHINE_VERSION}"
"docker-machine=${DOCKER_MACHINE_VERSION}" \
--no-install-recommends

# install ODROID kernel

apt-get install -y u-boot-tools initramfs-tools

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

# make the kernel package create a copy of the current kernel here
touch /boot/uImage
apt-get install -y "linux-image-c1=${KERNEL_VERSION}"
apt-get install -y \
"u-boot-tools" \
"initramfs-tools" \
"linux-image-c1=${KERNEL_VERSION}"

# cleanup APT cache and lists
apt-get clean
Expand Down
4 changes: 2 additions & 2 deletions versions.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RAW_IMAGE_VERSION="v0.2.2"
RAW_IMAGE_CHECKSUM="fe9af7686960d5d2dd6c364197e196d751f6adedd7da515ed6521c31e9582f8a"

# specific versions of kernel/firmware and docker tools
export KERNEL_VERSION="151-1"
export DOCKER_ENGINE_VERSION="17.03.0~ce-0~raspbian-jessie"
export KERNEL_VERSION="185-1"
export DOCKER_ENGINE_VERSION="17.03.0~ce-0~debian-jessie"
export DOCKER_COMPOSE_VERSION="1.9.0-23"
export DOCKER_MACHINE_VERSION="0.9.0-39"
export DEVICE_INIT_VERSION="0.1.8"

0 comments on commit f31414b

Please sign in to comment.