Ad Widget

Collapse

How to install python3 in zabbix 7.0 docker server container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FrancescoGiuseppe
    Junior Member
    • Aug 2024
    • 1

    #1

    How to install python3 in zabbix 7.0 docker server container

    Hello,
    i'm running a Zabbix 7.0 version based on the alpine docker container (i'm using docker compose).. i need python3 to run some external scripts but i'm not able to install it.
    If i enter the container i have no privileges tu run the packet manager, as automatically i enter with the 'zabbix' user and i have no sudo privileges.
    I've tried to modify this Dockerfile:
    /opt/zabbix-docker/Dockerfiles/server-mysql/alpine/Dockerfile

    adding 'python3' in the INSTALL_PKGS directive, like this:
    INSTALL_PKGS="bash \
    .....
    ....
    python3 \

    Then i've tried to run again the docker compose forcing the rebuild of the image, but it seems that no rebuild is done (i cannot see python3 and if i write a bad test string for test purposes i get no error when running the docker compose command).
    I run this command:
    docker compose -f docker-compose_v3_alpine_mysql_latest.yaml --profile full up --build --force-recreate --always-recreate-deps -d

    Am i taking the wrong Dockerfile or doing some other error?

    Thanks
    Francesco

Working...