Add focal

This commit is contained in:
Konstantin Zangerle
2022-08-26 10:59:20 +02:00
parent e3100683f1
commit 83b02a29b7
2 changed files with 68 additions and 10 deletions

View File

@ -4,6 +4,10 @@ include:
- remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/build_image.yml' - remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/build_image.yml'
- remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/gbp-pkg.yml' - remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/gbp-pkg.yml'
stages:
- build_image
- build_pkg
variables: variables:
BUILD_CONTEXT: ci_container BUILD_CONTEXT: ci_container
BUILD_FILE: Dockerfile BUILD_FILE: Dockerfile
@ -11,39 +15,53 @@ variables:
TARGET_REPOSITORY: "bullseye" TARGET_REPOSITORY: "bullseye"
stages:
- build_image
- build_pkg
- debian-package
.image-buster: .image-buster:
variables: variables:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/buster IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/buster
BUILD_FILE: Dockerfile.buster BUILD_FILE: Dockerfile.buster
TARGET_REPOSITORY: "buster" TARGET_REPOSITORY: "buster"
.image-bullseye:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/bullseye
.image-jammy: .image-jammy:
variables: variables:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/jammy IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/jammy
TARGET_REPOSITORY: "jammy"
BUILD_FILE: Dockerfile.jammy BUILD_FILE: Dockerfile.jammy
.image-focal:
variables:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/focal
TARGET_REPOSITORY: "focal"
BUILD_FILE: Dockerfile.focal
build_pkg_image_buster: build_pkg_image_buster:
extends: extends:
- .image-buster - .image-buster
- build_pkg_image - build_pkg_image
build_pkg_image_jammy:
extends:
- .image-jammy
- build_pkg_image
build_pkg_image_focal:
extends:
- .image-focal
- build_pkg_image
pkg_buster: pkg_buster:
extends: extends:
- .image-buster - .image-buster
- gbp_pkg - gbp_pkg
build_pkg_image_jammy: pkg_focal:
extends:
- .image-focal
- gbp_pkg
pkg_jammy:
extends: extends:
- .image-jammy - .image-jammy
- build_pkg_image - gbp_pkg
#.code-coverage: #.code-coverage:
# stage: build # stage: build

View File

@ -0,0 +1,40 @@
FROM docker.io/library/ubuntu:focal
LABEL org.opencontainers.image.created=${BUILDTIMESTAMP} \
org.opencontainers.image.authors="Heiko Reese <reese@kit.edu>" \
org.opencontainers.image.title="exim build container" \
org.opencontainers.image.description="A buld environment for exim-encrypt-dlfunc" \
org.opencontainers.image.source="https://git.scc.kit.edu/mail/exim-encrypt-dlfunc/" \
org.opencontainers.image.licenses="Apache-2.0"
RUN apt-get update; \
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install --no-install-recommends -y \
build-essential \
exim4-daemon-heavy \
exim4-dev \
gcovr \
git \
libsodium-dev \
openssl \
pkg-config \
python3-pip \
libxml2-utils \
debhelper \
debsigs \
devscripts \
dh-make \
git-buildpackage \
gpgv1 \
meson \
less \
mc \
openssh-client \
vim; \
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get clean; \
rm -rf /var/lib/apt/lists/*;
RUN pip3 install --upgrade meson ninja; \
rm -rf ~/.cache/pip/*;
WORKDIR /mnt/