Skip to content

About

Docker images for PostgreSQL with RDkit and Bingo

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

71 Commits

Folders and files

Repository files navigation

Cheminformatics PostgreSQL Images

RDKit Dist GHCR RDKit GHCR Bingo Dist GHCR Bingo GHCR

Docker images for PostgreSQL with cheminformatics extensions, built on Rocky Linux 9 and published for linux/amd64 and linux/arm64.

This repository publishes four GHCR packages:

Package Purpose
ghcr.io/asiomchen/rdkit-postgres-dist RDKit PostgreSQL extension artifact image.
ghcr.io/asiomchen/rdkit-postgres Ready-to-run PostgreSQL image with RDKit installed.
ghcr.io/asiomchen/bingo-dist Bingo PostgreSQL extension artifact image.
ghcr.io/asiomchen/bingo-postgres Ready-to-run PostgreSQL image with Bingo installed.

Tag Naming

Distribution artifact images are tagged by extension version and PostgreSQL major:

<extension-version>-postgres<postgres-major>

Examples:

ghcr.io/asiomchen/rdkit-postgres-dist:2025.09.5-postgres17
ghcr.io/asiomchen/bingo-dist:1.43.0-postgres17

Final runtime images are tagged by Rocky Linux version, PostgreSQL version, extension name, and extension version:

rocky<rocky-major>-postgres<postgres-minor>-<extension><extension-version>
rocky<rocky-major>-postgres<postgres-major>-<extension><extension-version>
postgres<postgres-major>-<extension><extension-version>
postgres<postgres-minor>-<extension><extension-version>

Examples:

ghcr.io/asiomchen/rdkit-postgres:rocky9-postgres17.10-rdkit2025.09.5
ghcr.io/asiomchen/rdkit-postgres:postgres17-rdkit2025.09.5
ghcr.io/asiomchen/bingo-postgres:rocky9-postgres17.10-bingo1.43.0
ghcr.io/asiomchen/bingo-postgres:postgres17-bingo1.43.0

Tags without the rocky9- prefix are Rocky Linux 9 aliases. Major-only PostgreSQL tags, such as postgres17-rdkit2025.09.5, point at the latest PostgreSQL minor version built for that major.

Using RDKit Dist with Existing PostgreSQL

Use ghcr.io/asiomchen/rdkit-postgres-dist to install RDKit into an existing PostgreSQL installation. Choose a dist tag that matches the target PostgreSQL major version and CPU architecture, and run pg_config from the same PostgreSQL installation you are modifying. The dist artifacts are built on Rocky Linux 9, so use them with a compatible glibc-based Linux environment.

Shell install example:

export DB=chemistry

docker run --rm ghcr.io/asiomchen/rdkit-postgres-dist:2025.09.5-postgres17 \
  sh -c "cat /out/rdkit-postgres.tgz" > ./rdkit-postgres.tgz

tar -xzf ./rdkit-postgres.tgz
cd rdkit-postgres17-linux-*-rdkit2025.09.5

sudo sh ./rdkit-pg-install.sh \
  -libdir "$(pg_config --pkglibdir)" \
  -sharedir "$(pg_config --sharedir)/extension" \
  -y

psql -d "${DB}" -c "CREATE EXTENSION IF NOT EXISTS rdkit;"
psql -d "${DB}" -c "SELECT rdkit_version();"

Using Bingo Dist with Existing PostgreSQL

Use ghcr.io/asiomchen/bingo-dist to install Bingo into an existing PostgreSQL installation. Choose a dist tag that matches the target PostgreSQL major version and CPU architecture, and run pg_config from the same PostgreSQL installation you are modifying. The dist artifacts are built on Rocky Linux 9, so use them with a compatible glibc-based Linux environment.

Shell install example:

export DB=chemistry

docker run --rm ghcr.io/asiomchen/bingo-dist:1.43.0-postgres17 \
  sh -c "cat /out/bingo-postgres.tgz" > ./bingo-postgres.tgz

tar -xzf ./bingo-postgres.tgz
cd bingo-postgres17-linux-*

sudo install -m 0755 \
  ./lib/libbingo-postgres.so \
  "$(pg_config --pkglibdir)/libbingo-postgres.so"

sh ./bingo-pg-install.sh -libdir "$(pg_config --pkglibdir)" -y

psql -d "${DB}" -f ./bingo_install.sql
psql -d "${DB}" -c "SELECT bingo.GetVersion();"

Example Dockerfiles

The examples/ directory shows how to consume dist images from official PostgreSQL trixie images:

Example Description
examples/rdkit-postgres-trixie/Dockerfile Installs RDKit from rdkit-postgres-dist into postgres:17-trixie and creates the extension in public.
examples/rdkit-postgres-trixie-molecules-schema/Dockerfile Installs RDKit into a molecules schema and sets the database search_path to molecules, public.
examples/bingo-postgres-trixie/Dockerfile Installs Bingo from bingo-dist into postgres:17-trixie.

RDKit Dist

ghcr.io/asiomchen/rdkit-postgres-dist is a small artifact image containing a packaged RDKit PostgreSQL cartridge for one RDKit version and one PostgreSQL major version. It is intended for building final runtime images, not for running PostgreSQL directly.

The image contains:

/out/rdkit-postgres.tgz
/out/rdkit-postgres<postgres-major>-linux-<arch>-rdkit<rdkit-version>.tgz

Use it to inspect or extract the packaged extension:

docker run --rm ghcr.io/asiomchen/rdkit-postgres-dist:2025.09.5-postgres17

container_id="$(docker create ghcr.io/asiomchen/rdkit-postgres-dist:2025.09.5-postgres17)"
docker cp "${container_id}:/out/rdkit-postgres.tgz" ./rdkit-postgres.tgz
docker rm "${container_id}"
tar -tzf ./rdkit-postgres.tgz

The final rdkit-postgres image consumes this package through the RDKIT_DIST_IMAGE Docker build argument.

RDKit Postgres

ghcr.io/asiomchen/rdkit-postgres is a ready-to-run PostgreSQL image with RDKit installed, preloaded, and automatically created in fresh databases via /docker-entrypoint-initdb.d/rdkit.sql.

Run a PostgreSQL instance with RDKit:

docker run -d \
  --name rdkit-postgres \
  -e POSTGRES_PASSWORD=mysecretpassword \
  -e POSTGRES_DB=chemistry \
  -p 5432:5432 \
  -v rdkit_pgdata:/var/lib/postgresql/data \
  ghcr.io/asiomchen/rdkit-postgres:postgres17-rdkit2025.09.5

Check the extension:

docker exec rdkit-postgres \
  psql -U postgres -d chemistry -c "SELECT rdkit_version(); SELECT mol_logp(mol_from_smiles('CCO'));"

Bingo Dist

ghcr.io/asiomchen/bingo-dist is a small artifact image containing a packaged Bingo PostgreSQL extension for one Bingo version and one PostgreSQL major version. It is intended for building final runtime images, not for running PostgreSQL directly.

The image contains:

/out/bingo-postgres.tgz
/out/bingo-postgres<postgres-major>-linux-<arch>.tgz

Use it to inspect or extract the packaged extension:

docker run --rm ghcr.io/asiomchen/bingo-dist:1.43.0-postgres17

container_id="$(docker create ghcr.io/asiomchen/bingo-dist:1.43.0-postgres17)"
docker cp "${container_id}:/out/bingo-postgres.tgz" ./bingo-postgres.tgz
docker rm "${container_id}"
tar -tzf ./bingo-postgres.tgz

The final bingo-postgres image consumes this package through the BINGO_DIST_IMAGE Docker build argument.

Bingo Postgres

ghcr.io/asiomchen/bingo-postgres is a ready-to-run PostgreSQL image with Bingo installed and initialized for fresh databases through bingo_install.sql.

Run a PostgreSQL instance with Bingo:

docker run -d \
  --name bingo-postgres \
  -e POSTGRES_PASSWORD=mysecretpassword \
  -e POSTGRES_DB=chemistry \
  -p 5432:5432 \
  -v bingo_pgdata:/var/lib/postgresql/data \
  ghcr.io/asiomchen/bingo-postgres:postgres17-bingo1.43.0

Check the extension:

docker exec bingo-postgres \
  psql -U postgres -d chemistry -c "SELECT bingo.GetVersion();"

Common Runtime Configuration

The final PostgreSQL images use the standard PostgreSQL Docker environment variables:

Variable Description
POSTGRES_PASSWORD Required password for the PostgreSQL superuser.
POSTGRES_USER Optional user name, defaults to postgres.
POSTGRES_DB Optional database name, defaults to the user name.

Both final images include a pg_isready health check and use an entrypoint derived from the official PostgreSQL container image.

Supported Software

Component Versions
PostgreSQL (RDKit) 16, 17, 18
PostgreSQL (Bingo) 15, 16, 17
RDKit 2025.03.1, 2025.03.2, 2025.03.3, 2025.03.4, 2025.03.5, 2025.03.6, 2025.09.1, 2025.09.2, 2025.09.3, 2025.09.4, 2025.09.5, 2025.09.6, 2026.03.1, 2026.03.2, 2026.03.3, 2026.03.4, 2026.03.5, 2026.03.6, 2026.09.1, 2026.09.2, 2026.09.3 (latest)
Bingo 1.34.0, 1.35.0, 1.36.0, 1.37.0, 1.38.0, 1.39.0, 1.40.0, 1.41.0, 1.42.0, 1.43.0, 1.44.0, 1.45.0, 1.46.0, 1.47.0, 1.48.0, 1.49.0 (latest)

About

Docker images for PostgreSQL with RDkit and Bingo

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages