bluesky-pds (latest)

Published 2024-12-10 22:03:32 +00:00 by gravityfargo in gravityfargo/bluesky-pds-docker

Installation

docker pull code.modernleft.org/gravityfargo/bluesky-pds:latest
sha256:59f503477d244aa528899dbd29a140e03fe6ea8be0b25ff8e5b17c1e1ef343a4

About this package

A self contained PDS instance without caddy.

Image Layers

ADD file:b86ae1c7ca3586d8feedcd9ff1b2b1e8ab872caf6587618f1da689045a5d7ae4 in /
CMD ["bash"]
/bin/sh -c groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
ENV NODE_VERSION=20.11.1
/bin/sh -c ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64' OPENSSL_ARCH='linux-x86_64';; ppc64el) ARCH='ppc64le' OPENSSL_ARCH='linux-ppc64le';; s390x) ARCH='s390x' OPENSSL_ARCH='linux*-s390x';; arm64) ARCH='arm64' OPENSSL_ARCH='linux-aarch64';; armhf) ARCH='armv7l' OPENSSL_ARCH='linux-armv4';; i386) ARCH='x86' OPENSSL_ARCH='linux-elf';; *) echo "unsupported architecture"; exit 1 ;; esac && set -ex && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 4ED778F539E3634C779C87C6D7062848A1AB005C 141F07595B7B3FFE74309A937405533BE57C7D57 74F12602B6F1C4E913FAA37AD3A89613643B6201 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 61FC681DFB92A079F1685E77973F295594EC4689 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apt-mark auto '.*' > /dev/null && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version
ENV YARN_VERSION=1.22.19
/bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apt-mark auto '.*' > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && yarn --version
COPY file:4d192565a7220e135cab6c77fbc1c73211b69f3d9fb37e62857b2c6eb9363d51 in /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["node"]
RUN /bin/sh -c apt-get update && apt-get install -y dumb-init ca-certificates curl gnupg jq lsb-release openssl sqlite3 bsdextrautils xxd # buildkit
WORKDIR /app
COPY /app /app # buildkit
EXPOSE map[3000/tcp:{}]
ENV PDS_PORT=3000
ENV NODE_ENV=production
ENV UV_USE_IO_URING=0
RUN /bin/sh -c userdel node # buildkit
LABEL org.opencontainers.image.source=https://github.com/bluesky-social/pds
LABEL org.opencontainers.image.description=AT Protocol PDS
LABEL org.opencontainers.image.licenses=MIT
ENV LOG_ENABLED=true
ENV PDS_BLOB_UPLOAD_LIMIT=52428800
ENV PDS_DATADIR=/pds
ENV PDS_DATA_DIRECTORY=/pds
ENV PDS_BLOBSTORE_DISK_LOCATION=/pds/blocks
ENV PDS_DID_PLC_URL=https://plc.directory
ENV PDS_BSKY_APP_VIEW_URL=https://api.bsky.app
ENV PDS_BSKY_APP_VIEW_DID=did:web:api.bsky.app
ENV PDS_REPORT_SERVICE_URL=https://mod.bsky.app
ENV PDS_REPORT_SERVICE_DID=did:plc:ar7c4by46qjdydhdevvrndac
ENV PDS_CRAWLERS=https://bsky.network
RUN /bin/sh -c mv pdsadmin.sh /usr/local/bin/pdsadmin && chmod +x /usr/local/bin/pdsadmin && mkdir --mode=700 --parent ${PDS_DATADIR} && rm -rf pds-0.4.74 v0.4.74.zip && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
ENV PUID=1000
ENV PGID=1000
RUN /bin/sh -c groupadd --gid ${PGID} pds # buildkit
RUN /bin/sh -c useradd --home=${PDS_DATADIR} --uid=${PUID} --no-user-group pds # buildkit
RUN /bin/sh -c usermod --gid ${PGID} pds # buildkit
RUN /bin/sh -c chown -R pds:pds ${PDS_DATADIR} # buildkit
ENTRYPOINT ["dumb-init" "--"]
COPY entrypoint.sh /entrypoint.sh # buildkit
RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit
CMD ["sh" "-c" "chown -R ${PUID}:${PGID} /pds && su pds && /entrypoint.sh"]
LABEL org.opencontainers.image.source=https://forgejo.gravityfargo.dev/gravityfargo/bluesky-pds-docker
LABEL org.opencontainers.image.url=https://github.com/bluesky-social/pds
LABEL org.opencontainers.image.description=A self contained PDS instance without caddy.
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.authors=Nathan Price <nathan@gravityfargo.dev>

Labels

Key Value
org.opencontainers.image.authors Nathan Price <nathan@gravityfargo.dev>
org.opencontainers.image.description A self contained PDS instance without caddy.
org.opencontainers.image.licenses MIT
org.opencontainers.image.source https://forgejo.gravityfargo.dev/gravityfargo/bluesky-pds-docker
org.opencontainers.image.url https://github.com/bluesky-social/pds
Details
Container
2024-12-10 22:03:32 +00:00
27
OCI / Docker
linux/amd64
Nathan Price <nathan@gravityfargo.dev>
MIT
127 MiB
Versions (1) View all
latest 2024-12-10