Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Update OSes #1282

Draft
wants to merge 4 commits into
base: stable-1.12
Choose a base branch
from
Draft
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
35 changes: 25 additions & 10 deletions .github/workflows/gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
HOST_WORKDIR: ${{ github.workspace }}
TEST_TIMEOUT: 600
IMG_VER: latest
TYPE: debug

jobs:
linux:
Expand All @@ -25,16 +26,30 @@ jobs:
FORCE_IMAGE_ACTION: ${{ secrets.FORCE_IMAGE_ACTION }}
WORKDIR: utils/docker
strategy:
fail-fast: false
matrix:
CONFIG: ["TYPE=debug OS=fedora OS_VER=32 PUSH_IMAGE=1",
"TYPE=debug OS=ubuntu OS_VER=20.04 PUSH_IMAGE=1 CHECK_CPP_STYLE=1",
"TYPE=debug OS=ubuntu OS_VER=20.04 COVERAGE=1",
"TYPE=release OS=fedora OS_VER=32",
"TYPE=release OS=ubuntu OS_VER=20.04",
"TYPE=valgrind OS=ubuntu OS_VER=20.04",
"TYPE=memcheck_drd OS=ubuntu OS_VER=20.04",
"TYPE=package OS=fedora OS_VER=32",
"TYPE=package OS=ubuntu OS_VER=20.04"]
CONFIG: ["TYPE=debug OS=fedora OS_VER=36 PUSH_IMAGE=1",
"TYPE=debug OS=ubuntu OS_VER=22.04 PUSH_IMAGE=1 CHECK_CPP_STYLE=0",
"TYPE=debug OS=ubuntu OS_VER=22.04 COVERAGE=1",
"TYPE=release OS=fedora OS_VER=36",
"TYPE=release OS=ubuntu OS_VER=22.04",
"TYPE=valgrind OS=ubuntu OS_VER=22.04",
"TYPE=memcheck_drd OS=ubuntu OS_VER=22.04",
"TYPE=package OS=fedora OS_VER=36",
"TYPE=package OS=ubuntu OS_VER=22.04",
"OS=centos OS_VER=8",
"OS=archlinux-base OS_VER=latest",
"OS=debian OS_VER=testing",
"OS=debian OS_VER=unstable",
"OS=fedora OS_VER=35",
"OS=fedora OS_VER=rawhide PUSH_IMAGE=0 TESTS_PMREORDER=0",
"TYPE=package OS=fedora OS_VER=rawhide",
"OS=opensuse-leap OS_VER=latest",
"OS=opensuse-tumbleweed OS_VER=latest",
"OS=ubuntu OS_VER=18.04",
"OS=ubuntu OS_VER=20.04",
"OS=ubuntu OS_VER=rolling PUSH_IMAGE=0",
"TYPE=package OS=ubuntu OS_VER=rolling"]
steps:
- name: Get release version
if: github.event_name == 'release'
Expand Down Expand Up @@ -85,7 +100,7 @@ jobs:
github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/stable-')
strategy:
matrix:
CONFIG: ["TYPE=doc OS=fedora OS_VER=32"]
CONFIG: ["TYPE=doc OS=fedora OS_VER=36"]
steps:
- name: Set image version for stable branch
# doc update happens only on stable branch (not on PR), so we check only for heads ref
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/other_OSes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
"OS=archlinux-base OS_VER=latest",
"OS=debian OS_VER=testing",
"OS=debian OS_VER=unstable",
"OS=fedora OS_VER=33",
"OS=fedora OS_VER=rawhide PUSH_IMAGE=0",
"OS=fedora OS_VER=35",
"OS=fedora OS_VER=rawhide PUSH_IMAGE=0 TESTS_PMREORDER=0",
"TYPE=package OS=fedora OS_VER=rawhide",
"OS=opensuse-leap OS_VER=latest",
"OS=opensuse-tumbleweed OS_VER=latest",
"OS=ubuntu OS_VER=18.04",
"OS=ubuntu OS_VER=20.10",
"OS=ubuntu OS_VER=20.04",
"OS=ubuntu OS_VER=rolling PUSH_IMAGE=0",
"TYPE=package OS=ubuntu OS_VER=rolling"]
steps:
Expand Down
2 changes: 1 addition & 1 deletion utils/docker/images/Dockerfile.archlinux-base-latest
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ RUN echo $USERPASS > $PFILE
RUN echo $USERPASS >> $PFILE
RUN passwd $USER < $PFILE
RUN rm -f $PFILE
RUN sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers
RUN sed -i 's/# %wheel/%wheel/g' /etc/sudoers
RUN gpasswd wheel -a $USER
USER $USER
3 changes: 1 addition & 2 deletions utils/docker/images/Dockerfile.debian-testing
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2021, Intel Corporation
# Copyright 2016-2022, Intel Corporation

#
# Dockerfile - a 'recipe' for Docker to build an image of debian-based
Expand Down Expand Up @@ -28,7 +28,6 @@ RUN apt-get update \
asciidoc \
autoconf \
clang \
clang-format \
cmake \
curl \
debhelper \
Expand Down
3 changes: 1 addition & 2 deletions utils/docker/images/Dockerfile.debian-unstable
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2021, Intel Corporation
# Copyright 2016-2022, Intel Corporation

#
# Dockerfile - a 'recipe' for Docker to build an image of debian-based
Expand Down Expand Up @@ -28,7 +28,6 @@ RUN apt-get update \
asciidoc \
autoconf \
clang \
clang-format \
cmake \
curl \
debhelper \
Expand Down
80 changes: 0 additions & 80 deletions utils/docker/images/Dockerfile.fedora-32

This file was deleted.

81 changes: 0 additions & 81 deletions utils/docker/images/Dockerfile.fedora-33

This file was deleted.

106 changes: 106 additions & 0 deletions utils/docker/images/Dockerfile.fedora-35
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2022, Intel Corporation

#
# Dockerfile - a 'recipe' for Docker to build an image of fedora-based
# environment prepared for running libpmemobj-cpp tests.
#

# Pull base image
FROM registry.fedoraproject.org/fedora:35
MAINTAINER [email protected]

# Set required environment variables
ENV OS fedora
ENV OS_VER 35
ENV PACKAGE_MANAGER rpm
ENV NOTTY 1

# Additional parameters to build docker without building components
ARG SKIP_VALGRIND_BUILD
ARG SKIP_PMDK_BUILD

# Base development packages
ARG BASE_DEPS="\
cmake \
gcc \
gcc-c++ \
git \
make"

# Dependencies for compiling libpmemobj-cpp project
ARG LIBPMEMOBJ_CPP_DEPS="\
libatomic \
tbb-devel"

# PMDK's dependencies (optional; libpmemobj-devel package may be used instead)
ARG PMDK_DEPS="\
autoconf \
automake \
daxctl-devel \
gdb \
man \
ndctl-devel \
pandoc \
python3 \
rpm-build \
rpm-build-libs \
rpmdevtools \
which"

# pmem's Valgrind dependencies (optional; valgrind-devel package may be used instead)
ARG VALGRIND_DEPS="\
autoconf \
automake"

# Examples (optional)
ARG EXAMPLES_DEPS="\
ncurses-devel \
SFML-devel"

# Documentation (optional)
ARG DOC_DEPS="\
doxygen"

# Tests (optional)
# NOTE: glibc is installed as a separate command; see below
ARG TESTS_DEPS="\
gdb \
libunwind-devel"

# Misc for our builds/CI (optional)
ARG MISC_DEPS="\
clang \
perl-Text-Diff \
pkgconf \
sudo"

# Update packages and install basic tools
RUN dnf update -y \
&& dnf install -y \
${BASE_DEPS} \
${LIBPMEMOBJ_CPP_DEPS} \
${PMDK_DEPS} \
${VALGRIND_DEPS} \
${EXAMPLES_DEPS} \
${DOC_DEPS} \
${TESTS_DEPS} \
${MISC_DEPS} \
&& dnf debuginfo-install -y glibc \
&& dnf clean all

# Install valgrind
COPY install-valgrind.sh install-valgrind.sh
RUN ./install-valgrind.sh

# Install pmdk
COPY install-pmdk.sh install-pmdk.sh
RUN ./install-pmdk.sh rpm

# Add user
ENV USER user
ENV USERPASS pass
RUN useradd -m $USER \
&& echo "$USER:$USERPASS" | chpasswd \
&& gpasswd wheel -a $USER
USER $USER
Loading