nginxinc / docker-nginx

Official NGINX Dockerfiles
BSD 2-Clause "Simplified" License
3.26k stars 1.73k forks source link

how to build nginx with modules for alpine image? #846

Closed snowdream closed 8 months ago

snowdream commented 1 year ago

I try to Adding third-party modules to nginx official alpine image,but failed.

https://github.com/snowdreamtech/nginx/actions/workflows/mainline-alpine.yml

thresheek commented 1 year ago

Hi @snowdream. The document you linked describes the steps to do it.

What is the problem you're encountering?

snowdream commented 1 year ago

This is my project. https://github.com/snowdreamtech/nginx

Accroding Adding third-party modules to nginx official alpine image.

I Try to build nginx with modules.

  1. debian images : success
  2. alpine images: failed

I do not know why.

logs: https://github.com/snowdreamtech/nginx/actions

thresheek commented 1 year ago

I can see "Bus error: core dumped" in your action logs. You need to figure out why and on what architecture this happens, possibly by shrinking the list of the architectures you build on:

linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390

snowdream commented 1 year ago

I can see "Bus error: core dumped" in your action logs. You need to figure out why and on what architecture this happens, possibly by shrinking the list of the architectures you build on:

linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390

OK, I will try it later.

snowdream commented 1 year ago

@thresheek

linux/arm/v6

https://github.com/snowdreamtech/nginx/actions/runs/6620087423 image

thresheek commented 8 months ago

Hi @snowdream, have you been able to figure out the build issues?