Commit 25f40b99 authored by Sami Nurmenniemi's avatar Sami Nurmenniemi

Initial commit

parents
FROM ubuntu:16.04
ARG USERID=1000
WORKDIR /home/builder
# Enable armhf packages
RUN dpkg --add-architecture armhf
# Modified sources.list to enable armhf + deb-src
ADD target_files/sources.list /etc/apt/sources.list
# Enable deb-src packages
RUN apt-get update
RUN apt-get upgrade -y
# Install required packages. See https://wiki.qt.io/Building_Qt_5_from_Git
RUN apt-get install -y \
crossbuild-essential-armhf \
libxcb-xinerama0-dev:armhf \
binutils \
gcc \
g++ \
gdb \
unzip \
pax \
python \
python2.7-dev \
git \
flex \
texinfo \
xz-utils \
bzip2 \
bison
RUN apt-get clean
# Default user
RUN useradd -u $USERID builder
ADD /target_files/configure_artik_qt5.sh /home/builder
ADD /target_files/build_artik_qt5.sh /home/builder
#RUN mkdir -p /home/builder/patches/qtquickcontrols2
#ADD patches/qtquickcontrols2/0001-Fix-build-with-no-feature-shortcut.patch /home/builder/patches/qtquickcontrols2
RUN chown -R builder:builder /home/builder
#RUN chmod 700 /home/builder/.ssh
USER builder
WORKDIR /home/builder/build
CMD /home/builder/build_artik_qt5.sh
#!/bin/bash
docker build -t artik_qt_builder .
#!/bin/bash
set -eu
function print_usage() {
echo "./docker_exec.sh \"configure|build\""
}
if [ $# -ne 1 ]
then
print_usage
exit -1
fi
if [ "$1" = "configure" ]
then
DOCKER_CMD=../configure_artik_qt5.sh
elif [ "$1" = "build" ]
then
DOCKER_CMD=../build_artik_qt5.sh
else
print_usage
exit -1
fi
docker run -v $PWD/build:/home/builder/build artik_qt_builder $DOCKER_CMD
#!/bin/sh
echo "Hello world!"
#!/bin/sh
echo "Configure world!"
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial main restricted
deb [arch=armhf] http://ports.ubuntu.com/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial main universe restricted multiverse
#deb-src http://ports.ubuntu.com/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb [arch=armhf] http://ports.ubuntu.com/ xenial-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main universe restricted multiverse
#deb-src http://ports.ubuntu.com/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial universe
deb [arch=armhf] http://ports.ubuntu.com/ xenial universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
#deb-src http://ports.ubuntu.com/ xenial universe
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial-updates universe
deb [arch=armhf] http://ports.ubuntu.com/ xenial-updates universe
#deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe
#deb-src http://ports.ubuntu.com/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb [arch=armhf] http://ports.ubuntu.com/ xenial multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
#deb-src http://ports.ubuntu.com/ xenial multiverse
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb [arch=armhf] http://ports.ubuntu.com/ xenial-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
#deb-src http://ports.ubuntu.com/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb [arch=armhf] http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
#deb-src http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
# deb-src http://ports.canonical.com/ xenial partner
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu/ xenial-security main restricted
deb [arch=armhf] http://ports.ubuntu.com/ xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ xenial-security main universe restricted multiverse
#deb-src http://ports.ubuntu.com/ xenial-security main restricted
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu/ xenial-security universe
deb [arch=armhf] http://ports.ubuntu.com/ xenial-security universe
#deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
#deb-src http://ports.ubuntu.com/ xenial-security universe
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu/ xenial-security multiverse
deb [arch=armhf] http://ports.ubuntu.com/ xenial-security multiverse
#deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
#deb-src http://ports.ubuntu.com/ xenial-security multiverse
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment