diff options
| -rw-r--r-- | scripts/ci/Dockerfile.bitbake | 37 | ||||
| -rw-r--r-- | scripts/ci/Jenkinsfile | 9 |
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 @@ | |||
| 1 | FROM debian:stable | ||
| 2 | LABEL Description="Image for bitbaking" | ||
| 3 | |||
| 4 | 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 | ||
| 5 | 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 | ||
| 6 | RUN 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 | |||
| 34 | RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen | ||
| 35 | ENV LC_ALL="en_US.UTF-8" | ||
| 36 | ENV LANG="en_US.UTF-8" | ||
| 37 | 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 { | |||
| 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' |
