cache/docker.io/databasus/databasus (latest)

Published 2026-03-25 15:10:17 +01:00 by balki

Installation

docker pull forgejo.balki.cloud/balki/cache/docker.io/databasus/databasus:latest
sha256:cd4a6f25f38877270d854649c5b00f75b51ebdfb46e15d966509a246924313cf

Image layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1773619200'
ARG APP_VERSION=3.24.3
ARG TARGETARCH=amd64
LABEL org.opencontainers.image.version=3.24.3
ENV APP_VERSION=3.24.3
ENV CONTAINER_ARCH=amd64
ENV ENV_MODE=production
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c apt-get update # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c apt-get install -y --no-install-recommends wget ca-certificates gnupg lsb-release sudo gosu curl unzip xz-utils libncurses5 libncurses6 # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c rm -rf /var/lib/apt/lists/* # buildkit
ARG TARGETARCH=amd64
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c mkdir -p /usr/lib/postgresql/12/bin /usr/lib/postgresql/13/bin /usr/lib/postgresql/14/bin /usr/lib/postgresql/15/bin /usr/lib/postgresql/16/bin /usr/lib/postgresql/17/bin /usr/lib/postgresql/18/bin # buildkit
COPY assets/tools/x64/postgresql/ /tmp/pg-x64/ # buildkit
COPY assets/tools/arm/postgresql/ /tmp/pg-arm/ # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c if [ "$TARGETARCH" = "amd64" ]; then cp -r /tmp/pg-x64/postgresql-12/bin/* /usr/lib/postgresql/12/bin/ && cp -r /tmp/pg-x64/postgresql-13/bin/* /usr/lib/postgresql/13/bin/ && cp -r /tmp/pg-x64/postgresql-14/bin/* /usr/lib/postgresql/14/bin/ && cp -r /tmp/pg-x64/postgresql-15/bin/* /usr/lib/postgresql/15/bin/ && cp -r /tmp/pg-x64/postgresql-16/bin/* /usr/lib/postgresql/16/bin/ && cp -r /tmp/pg-x64/postgresql-17/bin/* /usr/lib/postgresql/17/bin/ && cp -r /tmp/pg-x64/postgresql-18/bin/* /usr/lib/postgresql/18/bin/; elif [ "$TARGETARCH" = "arm64" ]; then cp -r /tmp/pg-arm/postgresql-12/bin/* /usr/lib/postgresql/12/bin/ && cp -r /tmp/pg-arm/postgresql-13/bin/* /usr/lib/postgresql/13/bin/ && cp -r /tmp/pg-arm/postgresql-14/bin/* /usr/lib/postgresql/14/bin/ && cp -r /tmp/pg-arm/postgresql-15/bin/* /usr/lib/postgresql/15/bin/ && cp -r /tmp/pg-arm/postgresql-16/bin/* /usr/lib/postgresql/16/bin/ && cp -r /tmp/pg-arm/postgresql-17/bin/* /usr/lib/postgresql/17/bin/ && cp -r /tmp/pg-arm/postgresql-18/bin/* /usr/lib/postgresql/18/bin/; fi && rm -rf /tmp/pg-x64 /tmp/pg-arm && chmod +x /usr/lib/postgresql/*/bin/* # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && apt-get update && apt-get install -y --no-install-recommends postgresql-17 && rm -rf /var/lib/apt/lists/* # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c wget -O /usr/share/keyrings/greensec.github.io-valkey-debian.key https://greensec.github.io/valkey-debian/public.key && echo "deb [signed-by=/usr/share/keyrings/greensec.github.io-valkey-debian.key] https://greensec.github.io/valkey-debian/repo $(lsb_release -cs) main" > /etc/apt/sources.list.d/valkey-debian.list && apt-get update && apt-get install -y --no-install-recommends valkey && rm -rf /var/lib/apt/lists/* # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends rclone && rm -rf /var/lib/apt/lists/* # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c mkdir -p /usr/local/mysql-5.7/bin /usr/local/mysql-8.0/bin /usr/local/mysql-8.4/bin /usr/local/mysql-9/bin /usr/local/mariadb-10.6/bin /usr/local/mariadb-12.1/bin /usr/local/mongodb-database-tools/bin # buildkit
COPY assets/tools/x64/mysql/ /tmp/mysql-x64/ # buildkit
COPY assets/tools/arm/mysql/ /tmp/mysql-arm/ # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c if [ "$TARGETARCH" = "amd64" ]; then cp /tmp/mysql-x64/mysql-5.7/bin/* /usr/local/mysql-5.7/bin/ && cp /tmp/mysql-x64/mysql-8.0/bin/* /usr/local/mysql-8.0/bin/ && cp /tmp/mysql-x64/mysql-8.4/bin/* /usr/local/mysql-8.4/bin/ && cp /tmp/mysql-x64/mysql-9/bin/* /usr/local/mysql-9/bin/; elif [ "$TARGETARCH" = "arm64" ]; then echo "MySQL 5.7 not available for arm64, skipping..." && cp /tmp/mysql-arm/mysql-8.0/bin/* /usr/local/mysql-8.0/bin/ && cp /tmp/mysql-arm/mysql-8.4/bin/* /usr/local/mysql-8.4/bin/ && cp /tmp/mysql-arm/mysql-9/bin/* /usr/local/mysql-9/bin/; fi && rm -rf /tmp/mysql-x64 /tmp/mysql-arm && chmod +x /usr/local/mysql-*/bin/* # buildkit
COPY assets/tools/x64/mariadb/ /tmp/mariadb-x64/ # buildkit
COPY assets/tools/arm/mariadb/ /tmp/mariadb-arm/ # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c if [ "$TARGETARCH" = "amd64" ]; then cp /tmp/mariadb-x64/mariadb-10.6/bin/* /usr/local/mariadb-10.6/bin/ && cp /tmp/mariadb-x64/mariadb-12.1/bin/* /usr/local/mariadb-12.1/bin/; elif [ "$TARGETARCH" = "arm64" ]; then cp /tmp/mariadb-arm/mariadb-10.6/bin/* /usr/local/mariadb-10.6/bin/ && cp /tmp/mariadb-arm/mariadb-12.1/bin/* /usr/local/mariadb-12.1/bin/; fi && rm -rf /tmp/mariadb-x64 /tmp/mariadb-arm && chmod +x /usr/local/mariadb-*/bin/* # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c apt-get update && if [ "$TARGETARCH" = "amd64" ]; then wget -q https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian12-x86_64-100.10.0.deb -O /tmp/mongodb-database-tools.deb; elif [ "$TARGETARCH" = "arm64" ]; then wget -q https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-arm64-100.10.0.deb -O /tmp/mongodb-database-tools.deb; fi && dpkg -i /tmp/mongodb-database-tools.deb || apt-get install -f -y --no-install-recommends && rm -f /tmp/mongodb-database-tools.deb && rm -rf /var/lib/apt/lists/* && mkdir -p /usr/local/mongodb-database-tools/bin && if [ -f /usr/bin/mongodump ]; then ln -sf /usr/bin/mongodump /usr/local/mongodb-database-tools/bin/mongodump; fi && if [ -f /usr/bin/mongorestore ]; then ln -sf /usr/bin/mongorestore /usr/local/mongodb-database-tools/bin/mongorestore; fi # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c useradd -m -s /bin/bash postgres || true && mkdir -p /databasus-data/pgdata && chown -R postgres:postgres /databasus-data/pgdata # buildkit
WORKDIR /app
COPY /usr/local/bin/goose /usr/local/bin/goose # buildkit
COPY /app/main . # buildkit
COPY backend/migrations ./migrations # buildkit
COPY /app/ui/build ./ui/build # buildkit
COPY frontend/cloud-root-content.html /app/cloud-root-content.html # buildkit
COPY /agent-binaries ./agent-binaries # buildkit
COPY backend/.env* /app/ # buildkit
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c if [ ! -f /app/.env ]; then if [ -f /app/.env.production.example ]; then cp /app/.env.production.example /app/.env; fi; fi # buildkit
COPY <<EOF /app/start.sh # buildkit
LABEL org.opencontainers.image.source=https://github.com/databasus/databasus
RUN |2 APP_VERSION=3.24.3 TARGETARCH=amd64 /bin/sh -c chmod +x /app/start.sh # buildkit
EXPOSE [4005/tcp]
VOLUME [/databasus-data]
ENTRYPOINT ["/app/start.sh"]
CMD []

Labels

Key Value
org.opencontainers.image.source https://github.com/databasus/databasus
org.opencontainers.image.version 3.24.3
Details
Container
2026-03-25 15:10:17 +01:00
0
OCI / Docker
linux/amd64
451 MiB
Versions (1) View all
latest 2026-03-25