From 991c2752340bfd8140e6254ca1e9cd3c48bceff7 Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Thu, 21 Jun 2018 16:21:52 +0200 Subject: Try to bitbake on CI inside docker --- scripts/ci/Dockerfile.bitbake | 37 +++++++++++++++++++++++++++++++++++++ scripts/ci/Jenkinsfile | 9 +++++---- 2 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 scripts/ci/Dockerfile.bitbake diff --git a/scripts/ci/Dockerfile.bitbake b/scripts/ci/Dockerfile.bitbake new file mode 100644 index 0000000..984f421 --- /dev/null +++ b/scripts/ci/Dockerfile.bitbake @@ -0,0 +1,37 @@ +FROM debian:stable +LABEL Description="Image for bitbaking" + +RUN sed -i 's#deb http://deb.debian.org/debian stable main#deb http://deb.debian.org/debian stable main contrib#g' /etc/apt/sources.list +RUN sed -i 's#deb http://deb.debian.org/debian stable-updates main#deb http://deb.debian.org/debian stable-updates main contrib#g' /etc/apt/sources.list +RUN apt-get update -q && apt-get install -qy \ + build-essential \ + bzip2 \ + chrpath \ + cpio \ + default-jre \ + diffstat \ + gawk \ + gcc-multilib \ + git-core \ + iputils-ping \ + iproute \ + libpython-dev \ + libsdl1.2-dev \ + locales \ + procps \ + python \ + python3 \ + python3-pexpect \ + python3-requests \ + qemu \ + socat \ + texinfo \ + unzip \ + wget \ + xterm \ + xz-utils + +RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen +ENV LC_ALL="en_US.UTF-8" +ENV LANG="en_US.UTF-8" +ENV LANGUAGE="en_US.UTF-8" diff --git a/scripts/ci/Jenkinsfile b/scripts/ci/Jenkinsfile index 2a9f5cf..fd0bc3b 100644 --- a/scripts/ci/Jenkinsfile +++ b/scripts/ci/Jenkinsfile @@ -4,12 +4,11 @@ pipeline { TEST_LOCAL_CONF_APPEND = 'scripts/ci/local.conf.append' TEST_AKTUALIZR_DIR = 'aktualizr' TEST_AKTUALIZR_BRANCH = 'aktualizr/master' + TEST_BITBAKE_COMMON_DIR = "${env.HOME}/bitbake-common" } stages { stage('checkout') { - agent { - label 'bitbake' - } + agent any steps { checkout([$class: 'GitSCM', userRemoteConfigs: [ @@ -53,7 +52,9 @@ pipeline { } stage('build-core-image-minimal') { agent { - label 'bitbake' + dockerfile { + filename 'scripts/ci/Dockerfile.bitbake' + } } steps { sh 'scripts/ci/configure.sh' -- cgit v1.2.3-54-g00ecf