Skip to main content

SampleDB

MIT license DOI DOI

SampleDB is a web-based sample and measurement metadata database.

Documentation

You can find the documentation for the current release at https://scientific-it-systems.iffgit.fz-juelich.de/SampleDB/.

Getting Started

We recommend using our pre-built Docker images for setting up SampleDB. You will need two containers, one for a PostgreSQL database and another for SampleDB itself, and a directory to store all files in.

If you would like to set up a development version of SampleDB instead, please see the contribution guide.

If you do not have Docker installed yet, please install Docker.

Using docker-compose

First, get the docker-compose.yml configuration file. You can git clone this repo or just get the file:

curl https://raw.githubusercontent.com/sciapp/sampledb/develop/docker-compose.yml.dist --output docker-compose.yml

Then simply bring everything up with:

docker compose up -d

Using docker commands

First, start your database container:

docker run \
    -d \
    -e POSTGRES_PASSWORD=password \
    -e PGDATA=/var/lib/postgresql/data/pgdata \
    -v `pwd`/pgdata:/var/lib/postgresql/data/pgdata:rw \
    --restart=always \
    --name sampledb-postgres \
    postgres:12

Next, start the SampleDB container:

docker run \
    -d \
    --link sampledb-postgres \
    -e SAMPLEDB_CONTACT_EMAIL=sampledb@example.com \
    -e SAMPLEDB_MAIL_SERVER=mail.example.com \
    -e SAMPLEDB_MAIL_SENDER=sampledb@example.com \
    -e SAMPLEDB_ADMIN_PASSWORD=password \
    -e SAMPLEDB_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://postgres:password@sampledb-postgres:5432/postgres \
    --restart=always \
    --name sampledb \
    -p 8000:8000 \
    sciapp/sampledb:0.28.2

Once it's started

This will start a minimal SampleDB installation at http://localhost:8000 and allow you to sign in with the username admin and the password password (which you should change immediately after signing in).

To learn how to further set up SampleDB, please follow the rest of the Getting Started guide.

Contributing

If you want to improve SampleDB, please read the contribution guide for a few notes on how to report issues or submit changes.

Support

If you run into any issues setting up or running SampleDB, please open an issue on GitHub.

You can also subscribe to the SampleDB mailing list to learn about new features and to discuss any questions regarding SampleDB.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sampledb-0.28.2.tar.gz (3.9 MB view details)

Uploaded Source

File details

Details for the file sampledb-0.28.2.tar.gz.

File metadata

  • Download URL: sampledb-0.28.2.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for sampledb-0.28.2.tar.gz
Algorithm Hash digest
SHA256 b6e4497cb576cc4f5d200b72b90378b1736f8fa7592d6cddc0182461b9e1a11c
MD5 f1b590f0eab6991000f9ef645a903d23
BLAKE2b-256 b95530c637eb3491a586c03dc1962ba5a5ce1ac6bd76e31b90d4619cd604b8e3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.33.1

1 file

0.33.0

1 file

0.32.0

1 file

0.31.1

1 file

0.31.0

1 file

0.30.0

1 file

0.29.1

1 file

0.29.0

1 file

This release

0.28.2 This release

1 file

0.28.1

1 file

0.28.0

1 file

0.27.0

1 file

0.26.0

1 file

0.25.3

1 file

0.25.2

1 file

0.25.1

1 file

0.25.0

1 file

0.24.1

1 file

0.24.0

1 file

0.23.1

1 file

0.23.0

1 file

0.22.1

1 file

0.22.0

1 file

0.21.5

1 file

0.21.4

1 file

0.21.3

1 file

0.21.2

1 file

0.21.1

1 file

0.21.0

1 file

0.20.0

1 file

0.19.3

1 file

0.19.2

1 file

0.19.1

1 file

0.19.0

1 file

0.18.0

1 file

0.17.0

1 file

0.16.1

1 file

0.16.0

1 file

0.15.0

1 file

0.14.1

1 file

0.14.0

1 file

0.13.1

1 file

0.13.0

1 file

0.12.0

1 file

0.11.0

1 file

0.10.0

1 file

0.9.0

1 file

0.8.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page