mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-23 13:58:47 +01:00
Using chromium-headless package on RHEL like systems instead of full chromium
This commit is contained in:
parent
efccd78aa1
commit
022ea64bc8
@ -12,7 +12,8 @@ ARG ZBX_VERSION
|
||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||
|
||||
ENV TERM=xterm \
|
||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||
PATH=/usr/lib64/chromium-browser:$PATH
|
||||
|
||||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||
org.opencontainers.image.description="Zabbix web service for performing various tasks using headless web browser" \
|
||||
@ -32,7 +33,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_web_service.
|
||||
RUN set -eux && \
|
||||
REPOLIST="baseos,appstream,epel" && \
|
||||
INSTALL_PKGS="bash \
|
||||
chromium" && \
|
||||
chromium-headless" && \
|
||||
dnf -y install epel-release && \
|
||||
dnf -y install \
|
||||
--disablerepo "*" \
|
||||
|
@ -12,7 +12,8 @@ ARG ZBX_VERSION
|
||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||
|
||||
ENV TERM=xterm \
|
||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||
PATH=/usr/lib64/chromium-browser:$PATH
|
||||
|
||||
LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||
org.opencontainers.image.description="Zabbix web service for performing various tasks using headless web browser" \
|
||||
@ -32,7 +33,7 @@ COPY ["conf/etc/yum.repos.d/oracle-epel-ol8.repo", "/etc/yum.repos.d/oracle-epel
|
||||
|
||||
RUN set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
chromium" && \
|
||||
chromium-headless" && \
|
||||
microdnf -y install \
|
||||
--disablerepo="*" \
|
||||
--enablerepo="ol8_baseos_latest" \
|
||||
|
@ -14,7 +14,8 @@ ARG ZBX_VERSION
|
||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||
|
||||
ENV TERM=xterm \
|
||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||
PATH=/usr/lib64/chromium-browser:$PATH \
|
||||
|
||||
LABEL description="Zabbix web service for performing various tasks using headless web browser" \
|
||||
maintainer="alexey.pustovalov@zabbix.com" \
|
||||
@ -51,7 +52,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_web_service.
|
||||
RUN set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
shadow-utils \
|
||||
chromium" && \
|
||||
chromium-headless" && \
|
||||
curl -sSL -o /tmp/epel-release-latest-8.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
|
||||
rpm -ivh /tmp/epel-release-latest-8.noarch.rpm && \
|
||||
rm -rf /tmp/epel-release-latest-8.noarch.rpm && \
|
||||
|
Loading…
Reference in New Issue
Block a user