trellis-dev (76387b6c2014bc8129ecb9c273f93b3cac1e8e67)
Installation
docker pull forgejo.libretalk.eu/jad0s/trellis-dev:76387b6c2014bc8129ecb9c273f93b3cac1e8e67sha256:3e88bd1a61db5ae36c3cc75de867ae542caa625e6378df0560033ea44dc9a06fImage layers
| ADD alpine-minirootfs-3.24.4-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| 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; install --verbose --directory --owner postgres --group postgres --mode 3777 /run/postgresql # buildkit |
| ENV GOSU_VERSION=1.20 |
| 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 |
| ENV LANG=en_US.utf8 |
| RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit |
| ENV PG_MAJOR=17 |
| ENV PG_VERSION=17.12 |
| ENV PG_SHA256=9cf136a703d8ee2f83465c43be4e9e8e7930c82b0bfba13be7e2537be769ac55 |
| ENV DOCKER_PG_LLVM_DEPS=llvm21-dev clang21 |
| 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 = "\"/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/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/llvm21/bin/llvm-config"; export CLANG=clang-21; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --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 |
| 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 |
| ENV PGDATA=/var/lib/postgresql/data |
| RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit |
| VOLUME [/var/lib/postgresql/data] |
| COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit |
| RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit |
| ENTRYPOINT ["docker-entrypoint.sh"] |
| STOPSIGNAL SIGINT |
| EXPOSE map[5432/tcp:{}] |
| CMD ["postgres"] |
| ARG GIT_SHA=dev |
| ARG APP_VERSION= |
| ARG LICENSE_ID=GPL-2.0-only |
| ARG SOURCE_URL=https://forgejo.libretalk.eu/jad0s/trellis |
| ENV GIT_SHA=76387b6c2014bc8129ecb9c273f93b3cac1e8e67 APP_VERSION= LICENSE_ID=GPL-2.0-only SOURCE_URL=https://forgejo.libretalk.eu/jad0s/trellis |
| LABEL org.opencontainers.image.revision=76387b6c2014bc8129ecb9c273f93b3cac1e8e67 org.opencontainers.image.version= org.opencontainers.image.source=https://forgejo.libretalk.eu/jad0s/trellis org.opencontainers.image.licenses=GPL-2.0-only |
| /bin/sh -c mkdir -p /data /config /opt/trellis/examples/dev && chown postgres:postgres /data /config |
| COPY multi:1c7c622f570a45df80c4b476d1fbc9e4a0bf82d8618b7999f472a695a853a07e in /usr/local/bin/ |
| COPY file:dfd9c4ae5f4a05b20c47714b25c5611a56316d11b6b1d4e967800bbd50899449 in /usr/local/bin/traefik |
| COPY file:98fa9843c4b50fb2777d91d7d94c31a6606fe68f5941ea7e6f3af525f8b0171f in /opt/trellis/examples/dev/trellisapp.yaml |
| COPY dir:d15f58d5502be5bcc19f3f294b666f7939f361da3900f169c30ac066e3dbfca3 in /opt/trellis/shared/ |
| ENV TRELLIS_MODE=dev TRELLIS_DEV_DATA=/data TRELLIS_DEV_SHARED_ASSETS=/opt/trellis/shared |
| USER postgres |
| EXPOSE 8080 8081 |
| VOLUME [/data] |
| STOPSIGNAL SIGTERM |
| HEALTHCHECK &{Test:[CMD-SHELL wget -q -O /dev/null http://127.0.0.1:8080/_dev/health || exit 1] Interval:2s Timeout:2s StartPeriod:30s StartInterval:0s Retries:20} |
| ENTRYPOINT ["/usr/local/bin/trellis-dev"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.licenses | GPL-2.0-only |
| org.opencontainers.image.revision | 76387b6c2014bc8129ecb9c273f93b3cac1e8e67 |
| org.opencontainers.image.source | https://forgejo.libretalk.eu/jad0s/trellis |
| org.opencontainers.image.version |
Details
2026-11-20 14:27:49 +00:00
Versions (16)
View all
Container
0
OCI / Docker
linux/amd64
GPL-2.0-only
209 MiB
b0295c2a73eff23afa26602c47fc8123478d4b49
2026-11-21
latest
2026-11-21
8522fbee8537e3a9192cd2b5a5388ab8449f13fc
2026-11-20
361cf3c59d11d5653f613c9c3d0ffcc25260bd17
2026-11-20
76387b6c2014bc8129ecb9c273f93b3cac1e8e67
2026-11-20