oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects
https://developer.oracle.com/use-cases/#containers
Universal Permissive License v1.0
6.47k stars 5.41k forks source link

healthchek issue with database/enterprise:19.3.0.0 #2692

Closed dgriffon closed 10 months ago

dgriffon commented 11 months ago

Hello,

Since this commit: https://github.com/oracle/docker-images/commit/969c8280ca3d9a9a83e6ac6337140c1ff8d652a1

The healthcheck status of the docker image takes too much time to be available, failing the startup of other containers that depends of it. Here the docker compose used for this container:

    database:
        image: container-registry.oracle.com/database/enterprise:19.3.0.0
        container_name: database
        networks:
            - stack
        ports:
            - "3306:3306"
        expose:
            - "3306"
        environment:
            - ORACLE_PWD=root1234
            - ORACLE_SID=oracleDB
        healthcheck:
            test: [ "CMD", "/opt/oracle/checkDBStatus.sh"]
            interval: 2s

it uses to work ok before the changes. Is that behavior expected?

aditya059 commented 10 months ago

Hi @dgriffon

It works fine for me. Within 13-14 min (which is needed for db creation), getting healthy status.

bash-4.4$ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 30501b4eceeb container-registry.oracle.com/database/enterprise:19.3.0.0 /bin/bash -c exec... 14 minutes ago Up 14 minutes (healthy) 0.0.0.0:20981->1521/tcp, 0.0.0.0:11069->5500/tcp oracle19c1

aditya059 commented 10 months ago

Closing this issue as it is not reproducible. Please reopen if it persist.