Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
2403bf91b1 | |||
9a7b7c6c4f |
26
Dockerfile
26
Dockerfile
@@ -1,13 +1,21 @@
|
|||||||
FROM ubuntu:focal AS build-env
|
FROM ubuntu:jammy AS build-env
|
||||||
RUN dpkg --add-architecture i386
|
RUN dpkg --add-architecture i386
|
||||||
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" \
|
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" \
|
||||||
apt-get --yes --no-install-recommends install \
|
apt-get --yes --no-install-recommends install \
|
||||||
gawk wget git diffstat unzip texinfo gcc build-essential \
|
build-essential chrpath cpio debianutils diffstat \
|
||||||
chrpath socat cpio python3 python3-pip python3-pexpect \
|
file gawk gcc git iputils-ping libacl1 liblz4-tool locales locales-all \
|
||||||
xz-utils debianutils iputils-ping python3-git \
|
python3 python3-git python3-jinja2 python3-pexpect python3-pip \
|
||||||
python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 \
|
python3-subunit socat texinfo unzip wget xz-utils zstd \
|
||||||
xterm python3-subunit mesa-common-dev zstd liblz4-tool file locales locales-all \
|
|
||||||
curl unzip libc6:i386 zlib1g:i386 zlib1g
|
curl unzip libc6:i386 zlib1g:i386 zlib1g
|
||||||
ENV LC_ALL en_US.UTF-8
|
# for the runner use
|
||||||
ENV LANG en_US.UTF-8
|
RUN apt-get update && apt-get --yes --no-install-recommends install \
|
||||||
ENV LANGUAGE en_US.UTF-8
|
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
35
Jenkinsfile
vendored
@@ -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
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user