Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A pile of CI updates #43

Merged
merged 5 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ ci_template: &CI_TEMPLATE
# Linux EOL timelines: https://linuxlifecycle.com/
# Fedora (~13 months): https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle

fedora37_task:
fedora38_task:
container:
# Fedora 37 EOL: Around Dec 2024
dockerfile: ci/fedora-37/Dockerfile
# Fedora 38 EOL: Around May 2024
dockerfile: ci/fedora-38/Dockerfile
<< : *CI_TEMPLATE

fedora36_task:
fedora37_task:
container:
# Fedora 36 EOL: Around May 2023
dockerfile: ci/fedora-36/Dockerfile
# Fedora 37 EOL: Around Dec 2024
dockerfile: ci/fedora-37/Dockerfile
<< : *CI_TEMPLATE

centos7_task:
Expand Down Expand Up @@ -57,12 +57,6 @@ debian10_task:
dockerfile: ci/debian-10/Dockerfile
<< : *CI_TEMPLATE

opensuse_leap_15_3_task:
container:
# Opensuse Leap 15.3 EOL: Around Dec 22
dockerfile: ci/opensuse-leap-15.3/Dockerfile
<< : *CI_TEMPLATE

opensuse_leap_15_4_task:
container:
# Opensuse Leap 15.4 EOL: TBD
Expand All @@ -73,6 +67,7 @@ opensuse_tumbleweed_task:
container:
# Opensuse Tumbleweed has no EOL
dockerfile: ci/opensuse-tumbleweed/Dockerfile
prepare_script: ./ci/opensuse-tumbleweed/prepare.sh
<< : *CI_TEMPLATE

ubuntu22_task:
Expand All @@ -87,12 +82,6 @@ ubuntu20_task:
dockerfile: ci/ubuntu-20.04/Dockerfile
<< : *CI_TEMPLATE

ubuntu18_task:
container:
# Ubuntu 18.04 EOL: April 2023
dockerfile: ci/ubuntu-18.04/Dockerfile
<< : *CI_TEMPLATE

# Apple doesn't publish official long-term support timelines.
# We aim to support both the current and previous macOS release.
macos_ventura_task:
Expand All @@ -117,10 +106,10 @@ freebsd14_task:
prepare_script: ./ci/freebsd/prepare.sh
<< : *CI_TEMPLATE

freebsd13_1_task:
freebsd13_task:
freebsd_instance:
# FreeBSD 13.1 EOL: TBD (13.2 + 3 months)
image_family: freebsd-13-1
image_family: freebsd-13-2
prepare_script: ./ci/freebsd/prepare.sh
<< : *CI_TEMPLATE

Expand Down
13 changes: 10 additions & 3 deletions ci/centos-7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM centos:7

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN yum -y install \
epel-release \
&& yum clean all && rm -rf /var/cache/yum
Expand All @@ -17,14 +21,17 @@ RUN yum -y install \
cmake3 \
make \
libpcap-devel \
python3 \
python3-pip \
rh-python38 \
rh-python38-devel \
rh-python38-python-devel \
rh-python38-pip \
&& yum clean all && rm -rf /var/cache/yum

RUN pip3 install btest

RUN echo 'unset BASH_ENV PROMPT_COMMAND ENV' > /usr/bin/zeek-ci-env && \
echo 'source /opt/rh/devtoolset-7/enable' >> /usr/bin/zeek-ci-env
echo 'source /opt/rh/devtoolset-7/enable' >> /usr/bin/zeek-ci-env && \
echo 'source /opt/rh/rh-python38/enable' >> /usr/bin/zeek-ci-env

ENV BASH_ENV="/usr/bin/zeek-ci-env" \
ENV="/usr/bin/zeek-ci-env" \
Expand Down
10 changes: 7 additions & 3 deletions ci/centos-stream-8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM quay.io/centos/centos:stream8

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN dnf config-manager --set-enabled powertools

Expand All @@ -10,9 +14,9 @@ RUN dnf -y update && dnf -y install \
gcc-c++ \
libpcap-devel \
make \
python3 \
python3-devel \
python3-pip\
python38 \
python38-devel \
python38-pip \
&& dnf clean all && rm -rf /var/cache/dnf

RUN pip3 install btest
4 changes: 4 additions & 0 deletions ci/centos-stream-9/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM quay.io/centos/centos:stream9

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

# dnf config-manager isn't available at first, and
# we need it to install the CRB repo below.
RUN dnf -y install 'dnf-command(config-manager)'
Expand Down
4 changes: 4 additions & 0 deletions ci/debian-10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM debian:10

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

ENV CMAKE_DIR "/opt/cmake"
Expand Down
4 changes: 4 additions & 0 deletions ci/debian-11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM debian:11

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

RUN apt-get update && apt-get -y install \
Expand Down
14 changes: 0 additions & 14 deletions ci/fedora-36/Dockerfile

This file was deleted.

4 changes: 4 additions & 0 deletions ci/fedora-37/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM fedora:37

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN dnf -y install \
cmake \
diffutils \
Expand Down
18 changes: 18 additions & 0 deletions ci/fedora-38/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM fedora:38

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN dnf -y install \
cmake \
diffutils \
gcc-c++ \
git \
libpcap-devel \
make \
python3 \
python3-pip\
&& dnf clean all && rm -rf /var/cache/dnf

RUN pip install btest
21 changes: 0 additions & 21 deletions ci/opensuse-leap-15.3/Dockerfile

This file was deleted.

11 changes: 9 additions & 2 deletions ci/opensuse-leap-15.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM opensuse/leap:15.4

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN zypper refresh \
&& zypper in -y \
cmake \
Expand All @@ -9,12 +13,15 @@ RUN zypper refresh \
gzip \
libpcap-devel \
make \
python3 \
python3-pip \
python39 \
python39-devel \
python39-pip \
tar \
which \
&& rm -rf /var/cache/zypp

RUN update-alternatives --install /usr/bin/pip3 pip3 /usr/bin/pip3.9 100

RUN pip3 install btest

RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 100
Expand Down
7 changes: 6 additions & 1 deletion ci/opensuse-tumbleweed/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM opensuse/tumbleweed

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN zypper refresh \
&& zypper in -y \
awk \
cmake \
diffutils \
gcc-c++ \
Expand All @@ -15,4 +20,4 @@ RUN zypper refresh \
which \
&& rm -rf /var/cache/zypp

RUN pip install btest
RUN pip3 install --break-system-packages btest
4 changes: 4 additions & 0 deletions ci/opensuse-tumbleweed/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

zypper refresh
zypper patch -y --with-update --with-optional
23 changes: 0 additions & 23 deletions ci/ubuntu-18.04/Dockerfile

This file was deleted.

4 changes: 4 additions & 0 deletions ci/ubuntu-20.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM ubuntu:20.04

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

RUN apt-get update && apt-get -y install \
Expand Down
4 changes: 4 additions & 0 deletions ci/ubuntu-22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM ubuntu:22.04

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

RUN apt-get update && apt-get -y install \
Expand Down