Compare commits

2 Commits
focal ... jammy

Author SHA1 Message Date
2403bf91b1 add missing package + config for runner 2025-03-21 19:19:15 +01:00
9a7b7c6c4f add build for jammy 2025-03-21 18:36:39 +01:00
3 changed files with 22 additions and 44 deletions

View File

@@ -1,13 +1,21 @@
FROM ubuntu:focal AS build-env
FROM ubuntu:jammy AS build-env
RUN dpkg --add-architecture i386
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" \
apt-get --yes --no-install-recommends install \
gawk wget git diffstat unzip texinfo gcc build-essential \
chrpath socat cpio python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git \
python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 \
xterm python3-subunit mesa-common-dev zstd liblz4-tool file locales locales-all \
build-essential chrpath cpio debianutils diffstat \
file gawk gcc git iputils-ping libacl1 liblz4-tool locales locales-all \
python3 python3-git python3-jinja2 python3-pexpect python3-pip \
python3-subunit socat texinfo unzip wget xz-utils zstd \
curl unzip libc6:i386 zlib1g:i386 zlib1g
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# for the runner use
RUN apt-get update && apt-get --yes --no-install-recommends install \
nodejs npm git wget libfuse2 fuse3
RUN groupadd -g 1000 -o ci
RUN useradd -m -u 1000 -g 1000 -o -s /bin/bash ci
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
USER ci
WORKDIR /home/ci

35
Jenkinsfile vendored
View File

@@ -1,35 +0,0 @@
pipeline{
agent { node{ label'workstation' }}
options {
// Limit build history with buildDiscarder option:
// daysToKeepStr: history is only kept up to this many days.
// numToKeepStr: only this many build logs are kept.
// artifactDaysToKeepStr: artifacts are only kept up to this many days.
// artifactNumToKeepStr: only this many builds have their artifacts kept.
buildDiscarder(logRotator(numToKeepStr: "1"))
// Enable timestamps in build log console
timestamps()
// Maximum time to run the whole pipeline before canceling it
timeout(time: 1, unit: 'HOURS')
// Use Jenkins ANSI Color Plugin for log console
ansiColor('xterm')
// Limit build concurrency to 1 per branch
disableConcurrentBuilds()
}
stages
{
stage('Build') {
steps {
sh'''
cd $WORKSPACE
docker buildx build \
--platform amd64 \
--output "type=docker,push=false,name=xsangle/ci-yocto:focal" \
.
docker tag xsangle/ci-yocto:focal workstation:5000/xsangle/ci-yocto:focal
docker push workstation:5000/xsangle/ci-yocto:focal
'''
}
}
}
}

5
build.sh Executable file
View File

@@ -0,0 +1,5 @@
#! /bin/bash
docker buildx build \
--platform amd64 \
--output "type=docker,push=false,name=iohubdev/ci-yocto:jammy" \
.