mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-16 09:51:01 +01:00
Updated
This commit is contained in:
parent
6013e14371
commit
17745d8f6d
7
.github/workflows/images_build_test.yml
vendored
7
.github/workflows/images_build_test.yml
vendored
@ -973,13 +973,6 @@ jobs:
|
||||
echo "$cache_from" >> "$GITHUB_OUTPUT"
|
||||
echo 'EOF' >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Remove smartmontools
|
||||
if: ${{ matrix.build == 'agent2' && matrix.os == 'rhel' }}
|
||||
env:
|
||||
DOCKERFILES_DIRECTORY: ${{ env.DOCKERFILES_DIRECTORY }}
|
||||
run: |
|
||||
sed -i '/smartmontools/d' "$DOCKERFILES_DIRECTORY/agent2/rhel/Dockerfile"
|
||||
|
||||
- name: Copy RedHat subscription
|
||||
if: ${{ matrix.os == 'rhel' }}
|
||||
env:
|
||||
|
@ -56,6 +56,7 @@ COPY --from=builder ["/tmp/mongodb_plugin/zabbix-agent2-plugin-mongodb", "/usr/s
|
||||
COPY --from=builder ["/tmp/postgresql_plugin/zabbix-agent2-plugin-postgresql", "/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=bind,target=/run/secrets/,src=secrets/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
iputils \
|
||||
@ -64,13 +65,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
smartmontools \
|
||||
sudo \
|
||||
libcurl-minimal" && \
|
||||
curl -sSL -o /tmp/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
|
||||
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
microdnf -y install \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-beta-rpms" \
|
||||
--enablerepo "epel" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
|
Loading…
Reference in New Issue
Block a user