summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2018-06-21 16:21:52 +0200
committerLaurent Bonnans <laurent.bonnans@here.com>2018-06-22 10:10:13 +0200
commit991c2752340bfd8140e6254ca1e9cd3c48bceff7 (patch)
tree596da1fa7764cf22f6dc6ec1e1702d434fcaca54 /scripts
parent7dc8262c88cd40687fdf52770cf581c2b1c1e796 (diff)
downloadmeta-updater-991c2752340bfd8140e6254ca1e9cd3c48bceff7.tar.gz
Try to bitbake on CI inside docker
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ci/Dockerfile.bitbake37
-rw-r--r--scripts/ci/Jenkinsfile9
2 files changed, 42 insertions, 4 deletions
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 @@
1FROM debian:stable
2LABEL Description="Image for bitbaking"
3
4RUN 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
5RUN 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
6RUN apt-get update -q && apt-get install -qy \
7 build-essential \
8 bzip2 \
9 chrpath \
10 cpio \
11 default-jre \
12 diffstat \
13 gawk \
14 gcc-multilib \
15 git-core \
16 iputils-ping \
17 iproute \
18 libpython-dev \
19 libsdl1.2-dev \
20 locales \
21 procps \
22 python \
23 python3 \
24 python3-pexpect \
25 python3-requests \
26 qemu \
27 socat \
28 texinfo \
29 unzip \
30 wget \
31 xterm \
32 xz-utils
33
34RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
35ENV LC_ALL="en_US.UTF-8"
36ENV LANG="en_US.UTF-8"
37ENV 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 {
4 TEST_LOCAL_CONF_APPEND = 'scripts/ci/local.conf.append' 4 TEST_LOCAL_CONF_APPEND = 'scripts/ci/local.conf.append'
5 TEST_AKTUALIZR_DIR = 'aktualizr' 5 TEST_AKTUALIZR_DIR = 'aktualizr'
6 TEST_AKTUALIZR_BRANCH = 'aktualizr/master' 6 TEST_AKTUALIZR_BRANCH = 'aktualizr/master'
7 TEST_BITBAKE_COMMON_DIR = "${env.HOME}/bitbake-common"
7 } 8 }
8 stages { 9 stages {
9 stage('checkout') { 10 stage('checkout') {
10 agent { 11 agent any
11 label 'bitbake'
12 }
13 steps { 12 steps {
14 checkout([$class: 'GitSCM', 13 checkout([$class: 'GitSCM',
15 userRemoteConfigs: [ 14 userRemoteConfigs: [
@@ -53,7 +52,9 @@ pipeline {
53 } 52 }
54 stage('build-core-image-minimal') { 53 stage('build-core-image-minimal') {
55 agent { 54 agent {
56 label 'bitbake' 55 dockerfile {
56 filename 'scripts/ci/Dockerfile.bitbake'
57 }
57 } 58 }
58 steps { 59 steps {
59 sh 'scripts/ci/configure.sh' 60 sh 'scripts/ci/configure.sh'