Open ImreSamu opened 2 years ago
imho review ready ( cc @phillipross )
A lot of changes have been made( Postgis 3.3; Postgres 15 Beta4 ) and will have to be implemented here. ( so the current PR is not yet ready )
I agree that a separate tagging scheme should be used for images produced by this alternate workflow for the time being. It looks like there's still a bunch of things to figure out, but this is a great start!
If it's possible to still have CI runs occur for PRs in draft mode, maybe you can switch this PR to draft mode so that it doesn't get accidentally merged?
PR converted to "draft"
I agree that a separate tagging scheme should be used for images produced by this alternate workflow for the time being.
ok . . I will add an experimental postfix .. ( example 14-3.3-experimental
)
and I am open to any other suggestions.
A lot of improvements / changes :
important: the docker push
part is not tested!
Added some new ENV vars + other small improvements;
example;
env:
ALPINE_VERSION: 3.16
WORKFLOW: buildx
REPO_NAME: postgis
IMAGE_NAME: postgis
VERSION: 15-3.3
VARIANT: alpine
TAG_POSTFIX: -experimental
Ready to review ...
PROPOSAL ( updated at 2022-10-16 )
new workflow
github/workflows/buildx.yml
docker buildx
( qemu emulation ) for the non-AMD64 platformsgithub/workflows/main.yml
workflow.The proposed
buildx.yml
matrix :Experimental linux/arm64 images
-experimental
tag postfix!linux/arm64
postgis/postgis:10-3.2-experimental
linux/arm64
postgis/postgis:11-3.3-experimental
linux/arm64
postgis/postgis:12-3.3-experimental
linux/arm64
postgis/postgis:13-3.3-experimental
linux/arm64
postgis/postgis:14-3.3-experimental
linux/arm64
postgis/postgis:15-3.3-experimental
linux/arm64
postgis/postgis:15-3.3-alpine-experimental
Other Experimental images
-experimental
tag postfix!linux/arm/v7
postgis/postgis:15-3.3-alpine-experimental
linux/arm/v6
postgis/postgis:15-3.3-alpine-experimental
linux/386
postgis/postgis:15-3.3-alpine-experimental
linux/ppc64le
postgis/postgis:15-3.3-alpine-experimental
linux/ppc64le
postgis/postgis:15-3.3-experimental
minimal post-tests:
postgres-basics
- https://github.com/docker-library/official-images/tree/master/test/tests/postgres-basics$POSTGRES_TEST_TRIES
;$POSTGRES_TEST_SLEEP
postgres-initdb
- https://github.com/docker-library/official-images/tree/master/test/tests/postgres-initdb$POSTGRES_TEST_TRIES
;$POSTGRES_TEST_SLEEP
postgis-basics
- https://github.com/postgis/docker-postgis/tree/master/test/tests/postgis-basics ( patched )$POSTGRES_TEST_TRIES
;$POSTGRES_TEST_SLEEP
The default $POSTGRES_TEST_TRIES; $POSTGRES_TEST_SLEEP is not enough for the emulation so I added a higher value for the
buildx.yml
Lesson learned / improvements:
LOG: server process (PID 28990) was terminated by signal 7: Bus error
JIT=OFF
solved the problems in the alpine regression test. ( so added to workaround to the alpine.template )make test
DOCKER_DEFAULT_PLATFORM=
,PLATFORM=
environment variables!github/workflows/buildx.yml
uname -a
;uname -m
;lscpu
;cat /proc/cpuinfo
- useful for the buildx/qemu debugging.NOW: using different tagging for the "buildx build" !
-experimental
tag postfix has been added to the image names in the buildx.yml!15-3.3-experimental
/15-3.3-alpine-experimental
NEW environment variables: ( Makefile, workflow )
WORKFLOW
: main,buildx ( workflow id )TAG_POSTFIX
: <IMPORTANT:
Makefile
syntax; so please double-check!docker push
not tested!