Closed oneumyvakin closed 1 year ago
Hello,
$ git pull remote: Enumerating objects: 13, done. remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 100% (9/9), done. remote: Total 13 (delta 6), reused 11 (delta 4), pack-reused 0 Unpacking objects: 100% (13/13), 2.88 KiB | 736.00 KiB/s, done. From https://github.com/zalando/spilo ca29b3e..b89bd52 feature/cdp-ecr -> origin/feature/cdp-ecr * [new tag] 3.0-p1 -> 3.0-p1 Already up to date. $ git branch * master $ cd postgres-appliance $ docker build --build-arg=PGVERSION=12 --tag $YOUR_TAG .
failed with
#0 459.3 Reading package lists... #0 459.8 Building dependency tree... #0 459.9 Reading state information... #0 460.0 postgresql-server-dev-12 is already the newest version (12.14-1.pgdg22.04+1). #0 460.0 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. #0 460.0 + '[' false '!=' true ']' #0 460.0 + for version in $DEB_PG_SUPPORTED_VERSIONS #0 460.0 + ln -s postgis-3.so /usr/lib/postgresql/10/lib/postgis-2.5.so #0 460.0 + for version in $DEB_PG_SUPPORTED_VERSIONS #0 460.0 + ln -s postgis-3.so /usr/lib/postgresql/11/lib/postgis-2.5.so #0 460.0 + for version in $DEB_PG_SUPPORTED_VERSIONS #0 460.0 + ln -s postgis-3.so /usr/lib/postgresql/12/lib/postgis-2.5.so #0 460.0 + for version in $DEB_PG_SUPPORTED_VERSIONS #0 460.0 + ln -s postgis-3.so /usr/lib/postgresql/13/lib/postgis-2.5.so #0 460.0 + for version in $DEB_PG_SUPPORTED_VERSIONS #0 460.0 + ln -s postgis-3.so /usr/lib/postgresql/14/lib/postgis-2.5.so #0 460.0 + for version in $DEB_PG_SUPPORTED_VERSIONS #0 460.0 + ln -s postgis-3.so /usr/lib/postgresql/12/lib/postgis-2.5.so #0 460.0 ln: failed to create symbolic link '/usr/lib/postgresql/12/lib/postgis-2.5.so': File exists ------ Dockerfile:71 -------------------- 69 | 70 | WORKDIR /builddeps 71 | >>> RUN bash base.sh 72 | 73 | # Install wal-g -------------------- ERROR: failed to solve: process "/bin/sh -c bash base.sh" did not complete successfully: exit code: 1
Hello. For custom PGVERSION build arg you also need to re-define PGOLDVERSIONS https://github.com/zalando/spilo/blob/master/postgres-appliance/Dockerfile#LL51-L54
PGVERSION
PGOLDVERSIONS
@hughcapet Oh, indeed. Thank you!
Hello,
failed with