Skip to content

Commit

Permalink
enh(ci): build docker image dedicated to packaging (#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret authored Jan 31, 2025
1 parent b9613a3 commit ee80c46
Show file tree
Hide file tree
Showing 27 changed files with 545 additions and 836 deletions.
27 changes: 0 additions & 27 deletions .github/actions/runner-docker/action.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/docker/Dockerfile.centreon-collect-alma8

This file was deleted.

86 changes: 0 additions & 86 deletions .github/docker/Dockerfile.centreon-collect-debian-bullseye

This file was deleted.

54 changes: 0 additions & 54 deletions .github/docker/Dockerfile.centreon-collect-debian-bullseye-test

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,35 @@ ARG REGISTRY_URL

FROM ${REGISTRY_URL}/almalinux:9

COPY . /tmp/collect
RUN --mount=type=bind,src=.,dst=/tmp/collect bash -e <<EOF

RUN bash -e <<EOF

# Base dnf configuration.
echo 'http_caching=none' >> /etc/yum.conf
echo 'assumeyes=1' >> /etc/yum.conf
# Base dnf configuration
sed -i 's/best=True/best=False/g' /etc/dnf/dnf.conf
echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf

dnf install -y dnf-plugins-core
dnf config-manager --set-enabled crb

dnf install -y epel-release

dnf --best install -y \
dnf install --best -y \
gcc \
gcc-c++ \
gdb \
git \
openssh-server \
lua \
mariadb-server \
mariadb \
gnutls \
libgcrypt \
lua \
perl-ExtUtils-Embed \
perl-JSON \
openssh-server \
python3 \
python3-devel \
python3-pip \
perl-Thread-Queue \
rrdtool \
perl-interpreter \
procps-ng \
zstd \
psmisc \
perl-HTTP-Daemon-SSL.noarch \
sudo

dnf clean all
perl-HTTP-Daemon-SSL \
perl-JSON \
rrdtool \
sudo \
zstd

echo "install robot and dependencies"

Expand All @@ -51,6 +41,8 @@ cd /tmp/collect

.github/scripts/collect-prepare-test-robot.sh mariadb

/bin/rm -rf /tmp/collect
dnf remove -y gcc gcc-c++ python3-devel

dnf clean all

EOF
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,23 @@ ARG REGISTRY_URL

FROM ${REGISTRY_URL}/debian:bookworm

COPY . /tmp/collect

RUN bash -e <<EOF
RUN --mount=type=bind,src=.,dst=/tmp/collect bash -e <<EOF

apt-get update

apt-get -y install curl \
aptitude \
apt-get -y install \
curl \
g++ \
gcc \
gdb \
git \
libgcrypt20 \
libgnutlsxx30 \
libhttp-daemon-ssl-perl \
libjson-perl \
liblua5.3 \
libmariadb3 \
libperl-dev \
librrd8 \
locales \
mariadb-server \
openssh-server \
openssl \
perl-base \
psmisc \
python3 \
python3-dev \
Expand All @@ -34,8 +27,7 @@ apt-get -y install curl \
rrdtool \
strace \
sudo \
zstd \
perl-base
zstd

apt-get clean

Expand All @@ -48,7 +40,10 @@ cd /tmp/collect

.github/scripts/collect-prepare-test-robot.sh mariadb

/bin/rm -rf /tmp/collect
apt-get remove -y gcc g++ python3-dev
apt-get autoremove -y

apt-get clean

EOF

Loading

0 comments on commit ee80c46

Please sign in to comment.