pentacent / keila

Open Source Newsletter Tool.
https://keila.io
GNU Affero General Public License v3.0
1.38k stars 69 forks source link

Build multi-platform docker images for amd64 and arm64 #262

Open jsphpl opened 8 months ago

jsphpl commented 8 months ago

Attempting to build multi-platform images to support arm64. A previous attempt failed due to unknown reasons. Maybe it was qemu#1042, which is resolved in qemu >= v8.1.0.

On the way, i replaced the hard-coded ghcr.io/pentacent/keila:latest with ghcr.io/${{ github.repository }}:latest so forks can build their own images.

Currently, the build on Github actions still fails, see error message below. Local build using docker build --platform linux/arm64 -f ops/Dockerfile . works just fine.

Maybe someone else can help resolving the issue below?

#18 6.832 11:48:09.956 [notice] Application ssl exited: exited in: :ssl_app.start(:normal, [])
#18 6.832     ** (EXIT) an exception was raised:
#18 6.832         ** (FunctionClauseError) no function clause matching in :ssl_app.stop/1
#18 6.832             (ssl 11.1) ssl_app.erl:35: :ssl_app.stop(:normal)
#18 6.832             (kernel 9.2) application_master.erl:293: :application_master.start_it_old/4