<commit_before># Dockerfile PostgreSQL

## Info

This Dockerfile creates a container running PostgreSQL 9.3

Here's what it does in particular:

- Install PostgreSQL
- exposing it on port `5432`
- initializes a database in `/data`
- inserts a superuser in the database: `docker:docker` (change in the Dockerfile)


## Install

- `docker build -t "postgresql9.3" .`
- `docker run -d postgresql9.3`


## Persistance

You can mount the database directory as a volume to persist your data:

`docker run -p 127.0.0.1:5432:5432 -v /data/pg:/data -name pg postgresql9.3`

But before you can do so you first need to create the source folder: `mkdir -p /data/pg`
<commit_msg>Update readme.<commit_after># BedquiltDB Example Dockerfile

## Info

This Dockerfile creates a container running PostgreSQL 9.4 and BedquiltDB.

Here is a summary of what happens:

- Install PostgreSQL
- Exposes the `postgres` service on port `5432`
- Initializes a database in `/data`
- Installs the `bedquilt` extension
- Inserts a superuser in the database: `docker:docker` (change in the Dockerfile)
- Enables the `bedquilt` extension on the default `postgres` database


## Install

- `docker build -t "bedquiltdb_example" .`
- `docker run -d bedquiltdb_example --name bq`


## Persistance

You can mount the database directory as a volume to persist your data:

`docker run -d -v /data/pg:/data --name bq bedquiltdb_example`

But before you can do so you first need to create the source folder: `mkdir -p /data/pg`

{'fraction_non_alphanumeric': 0.08870967741935484, 'fraction_numerical': 0.021505376344086023, 'mean_word_length': 3.946843853820598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3967060', 'n_tokens_mistral': 515, 'n_tokens_neox': 472, 'n_words': 201}