You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/09/25 11:54:15 UTC

[GitHub] [airflow] ecerulm opened a new pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

ecerulm opened a new pull request #11148:
URL: https://github.com/apache/airflow/pull/11148


   Previously if the `./build_and_push.sh` was executed from a macOS machine it will upload a docker image containing a macOS executable. This image will fail to run  with 
   
   ```
   docker run -it --rm apache/airflow:airflow-pgbouncer-exporter-2020.09.05-0.5.0
   standard_init_linux.go:211: exec user process caused "exec format error"
   ```
   
   Now the `./build_and_push.sh` does NOT use the local go compiler instead it compiles using the golang Docker image so that the generated executable is linux/amd64. This also removes the need to have a specific go version installed in the build machine. 
   
   Closes #11145
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on a change in pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
potiuk commented on a change in pull request #11148:
URL: https://github.com/apache/airflow/pull/11148#discussion_r494970215



##########
File path: chart/dockerfiles/pgbouncer-exporter/Dockerfile
##########
@@ -15,6 +15,7 @@
 ARG ALPINE_VERSION="3.12"
 
 FROM alpine:${ALPINE_VERSION} AS builder
+MAINTAINER "Apache Airflow Community <de...@airflow.apache.org>"

Review comment:
       This one should be removed though. Maitainer directive is deprecated and we replaced it the maintainer label which is the recommended approach: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated

##########
File path: chart/dockerfiles/pgbouncer-exporter/Dockerfile
##########
@@ -15,6 +15,7 @@
 ARG ALPINE_VERSION="3.12"
 
 FROM alpine:${ALPINE_VERSION} AS builder
+MAINTAINER "Apache Airflow Community <de...@airflow.apache.org>"

Review comment:
       This one should be removed though. Maitainer directive is deprecated and we replaced it with the maintainer label which is the recommended approach: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] ecerulm edited a comment on pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
ecerulm edited a comment on pull request #11148:
URL: https://github.com/apache/airflow/pull/11148#issuecomment-698931558


   @potiuk I did more more modifications and squash all commits. 
   
   I have some insights on why the [Docker Hub for apache/airflow:airflow-pgbouncer-exporter-2020.09.05-0.5.0](https://hub.docker.com/layers/apache/airflow/airflow-pgbouncer-exporter-2020.09.05-0.5.0/images/sha256-ae731aeef11cd759633e899ceddc4d5e79cead91ef221deeaeaf66d7b757e2eb?context=explore) shows ` MAINTAINER Juraj Bubniak <ju...@gmail.com>`. 
   
   It seems that the original `build_and_push` did `cd pgbouncer_exporter-0.5.0`, compiled pgbouncer and then executed `docker build . ` **inside the `pgbouncer_exporter-0.5.0` directory**  thus using the pgbouncer_exporter's  Dockerfile instead of "our" [Dockerfile](https://github.com/apache/airflow/blob/master/chart/dockerfiles/pgbouncer-exporter/Dockerfile). 
   
   I've fixed that in the latest version. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on a change in pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
potiuk commented on a change in pull request #11148:
URL: https://github.com/apache/airflow/pull/11148#discussion_r494970215



##########
File path: chart/dockerfiles/pgbouncer-exporter/Dockerfile
##########
@@ -15,6 +15,7 @@
 ARG ALPINE_VERSION="3.12"
 
 FROM alpine:${ALPINE_VERSION} AS builder
+MAINTAINER "Apache Airflow Community <de...@airflow.apache.org>"

Review comment:
       This one should be removed though. Maitainer directive is deprecated and we replaced it the maintainer label which is the recommended approach: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] potiuk merged pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
potiuk merged pull request #11148:
URL: https://github.com/apache/airflow/pull/11148


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #11148:
URL: https://github.com/apache/airflow/pull/11148#issuecomment-698933043






----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] ecerulm commented on pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
ecerulm commented on pull request #11148:
URL: https://github.com/apache/airflow/pull/11148#issuecomment-698919573






----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] potiuk edited a comment on pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
potiuk edited a comment on pull request #11148:
URL: https://github.com/apache/airflow/pull/11148#issuecomment-698933043






----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on a change in pull request #11148: Make sure pgbouncer-exporter docker image is linux/amd64

Posted by GitBox <gi...@apache.org>.
potiuk commented on a change in pull request #11148:
URL: https://github.com/apache/airflow/pull/11148#discussion_r494970215



##########
File path: chart/dockerfiles/pgbouncer-exporter/Dockerfile
##########
@@ -15,6 +15,7 @@
 ARG ALPINE_VERSION="3.12"
 
 FROM alpine:${ALPINE_VERSION} AS builder
+MAINTAINER "Apache Airflow Community <de...@airflow.apache.org>"

Review comment:
       This one should be removed though. Maitainer directive is deprecated and we replaced it with the maintainer label which is the recommended approach: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated




----------------------------------------------------------------
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:
users@infra.apache.org