Difference between revisions of "Zabbix Docker"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "- https://github.com/zabbix/zabbix-docker/tree/5.4/server-pgsql/ubuntu - vim Dockerfile and add apt-get install curl and netcat-openbsd under DEBIAN_FRONTEND=noninteractive a...")
 
 
Line 9: Line 9:
 
```
 
```
 
image: localhost:32000/my/zabbix-server-pgsql:ubuntu-latest
 
image: localhost:32000/my/zabbix-server-pgsql:ubuntu-latest
 +
```
 +
 +
Custom Dockerfile example
 +
``` 
 +
FROM ubuntu:focal
 +
 +
# start custom
 +
RUN set -eux && \
 +
    apt-get -y update && \
 +
    DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
 +
    dnsutils \
 +
    curl \
 +
    netcat-openbsd \
 +
    python3 \
 +
    python3-pip \
 +
    libffi-dev \
 +
    libgit2-dev \
 +
    # build-essential \
 +
    # libssh2-1-dev \
 +
    python3-dev \
 +
    gcc
 +
 +
 +
#  --prefer-binary
 +
# RUN pip3 install --no-cache-dir gitfs
 +
# RUN mkdir -p /var/lib/gitfs
 +
# end custom
 
```
 
```

Latest revision as of 01:19, 30 July 2021

sudo docker build --tag localhost:32000/my/zabbix-server-pgsql:ubuntu-latest .
sudo docker push localhost:32000/my/zabbix-server-pgsql:ubuntu-latest

reference image in yaml

image: localhost:32000/my/zabbix-server-pgsql:ubuntu-latest

Custom Dockerfile example

FROM ubuntu:focal

# start custom
RUN set -eux && \
    apt-get -y update && \
    DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
    dnsutils \
    curl \
    netcat-openbsd \
    python3 \
    python3-pip \
    libffi-dev \
    libgit2-dev \
    # build-essential \
    # libssh2-1-dev \
    python3-dev \
    gcc


#  --prefer-binary
# RUN pip3 install --no-cache-dir gitfs
# RUN mkdir -p /var/lib/gitfs
# end custom