Namespace
unilei
Image / Tag
aipan-netdisk-search:db-backup-sha-c0a6f4c
Content Digest
sha256:5facb6af1d53a201bee4f46699afbf69a445a85ccc66c3f4bc433bb8f3618af9
Details
Created

2026-05-08 04:01:33 UTC

Size

141 MB

Content Digest
Labels
  • org.opencontainers.image.revision
    c0a6f4c00b0525f901c1d24e9a306bf3db3f5a8a
  • org.opencontainers.image.source
    unilei/aipan-netdisk-search

Environment
DOCKER_PG_LLVM_DEPS

llvm19-dev clang19

GOSU_VERSION

1.19

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

15

PG_SHA256

ae14f24c14727e0b2ded1c5553031666099bd1054db3ef44bfa6e2bd6d554a56

PG_VERSION

15.17


Layers

[#000] sha256:6a0ac1617861a677b045b7ff88545213ec31c0ff08763195a70a4a5adda577bb - 2.61% (3.69 MB)

[#001] sha256:fae1993563ec67f988a5501162b347d09a1679342cb183d7467ef420aee6e6cc - 0.0% (970 Bytes)

[#002] sha256:013d59842ad1bc1e18c6f8c5182756915df7e1226b5971b82052246f368db2c4 - 0.62% (898 KB)

[#003] sha256:9bf7646f4ff5655f621e9bf760783a9b4f89c016ee494ea40a40fc8a96a0a146 - 0.0% (173 Bytes)

[#004] sha256:459be1018dcb7bbe85b04bbab33af716a0694bc21d324ea663280a7b026fd32c - 0.0% (116 Bytes)

[#005] sha256:697a7e77ac2e14119411f4d54374d81585a34a695a82e1163052ee1e6bac6632 - 70.5% (99.5 MB)

[#006] sha256:cb0bf5bcb56f5d77f08ba5b5c26ac3250ee7d4b44d9a6c20f828c35a885823b9 - 0.01% (9.23 KB)

[#007] sha256:37a63010ee4dedc7c774c9cd8834e62e27eba3ac4caa21a63192bf21bf14c3ce - 0.0% (128 Bytes)

[#008] sha256:5206f96f8a8d318aa75bc1488b66f99a081a63e259a80c065b7414dc0d0d49e2 - 0.0% (170 Bytes)

[#009] sha256:523b9d9d62548b93e0d6e5dc8b69f9e8c15d7ed1a44692f532b40dea9f916128 - 0.0% (5.95 KB)

[#010] sha256:ba2769f58dd89f2443adc8a98bfb2ca0a6cbe8d1ed6ee8da9c3a328585a38fb4 - 0.0% (182 Bytes)

[#011] sha256:a49adcabfb158fbc4e844c1d8ac6aae5d1ec0c6bc3297238b328bcdf43a4fcd1 - 26.26% (37.1 MB)

[#012] sha256:bb39a6311f17f8acb9c829a7c4116e22f1311d5f9b68697122cc2a291f074488 - 0.0% (2.41 KB)

[#013] sha256:ec6990bed938eb72fd87c7488221162a7ad501922f2848ef52db0af1dec97742 - 0.0% (2.4 KB)


History
2026-04-15 20:01:40 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit

2026-04-15 20:01:40 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-21 23:08:08 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2026-04-21 23:08:10 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-04-21 23:08:10 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2026-04-21 23:08:10 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2026-04-21 23:08:10 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2026-04-21 23:08:11 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-04-21 23:08:11 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2026-04-21 23:08:11 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.17

2026-04-21 23:08:11 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=ae14f24c14727e0b2ded1c5553031666099bd1054db3ef44bfa6e2bd6d554a56

2026-04-21 23:08:11 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-llvm --with-lz4 --with-openssl --with-perl --with-python --with-tcl --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2026-04-21 23:10:14 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2026-05-08 04:01:33 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache aws-cli tzdata # buildkit

2026-05-08 04:01:33 UTC (buildkit.dockerfile.v0)

COPY backup.sh /usr/local/bin/aipan-db-backup # buildkit

2026-05-08 04:01:33 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod +x /usr/local/bin/aipan-db-backup # buildkit

2026-05-08 04:01:33 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/usr/local/bin/aipan-db-backup"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete