ecerulm commented on issue #11145: URL: https://github.com/apache/airflow/issues/11145#issuecomment-698877972
On a closer inspection is clear that the `pgbouncer_exporter` executable file that has been copied into docker image `apache/airflow:airflow-pgbouncer-exporter-2020.09.05-0.5.0` was compiled for macOS and not for Linux!?! ``` docker run -it --rm --entrypoint "" apache/airflow:airflow-pgbouncer-exporter-2020.09.05-0.5.0 /bin/sh apk add file file /bin/pgbouncer_exporter /bin/pgbouncer_exporter: Mach-O 64-bit x86_64 executable ``` The way https://github.com/apache/airflow/tree/master/chart/dockerfiles/pgbouncer-exporter has been setup requires that `build_and_push.sh` be executed on a Linux machine, it looks that it was executed in a macOS machine it generated a `pgbouncer_exporter` file for mac and that file was copied via the [Dockerfile COPY](https://github.com/apache/airflow/blob/99accec29d71b0a57fd4e90151b9d4d10321be07/chart/dockerfiles/pgbouncer-exporter/Dockerfile#L36) into the docker image for linux/amd64 (obviously not right) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
