<commit_before>FROM tiagoantao/alpine-supervisor-sshd
MAINTAINER <NAME> <<EMAIL>>

RUN apk update
RUN apk add postgresql postgresql-client sudo

#Making sure we are on version 9.5
RUN ver=`pg_config --version`; if [ ${ver:10:4} != "9.5" ]; then exit 1; fi

COPY copy/etc/supervisor.d/postgres.ini /etc/supervisor.d

#We will initiate the data dir only if it is empty, so we copy to a temporary one
COPY copy/sbin/prepare_magic.sh /sbin
RUN mkdir -p /copy/var/lib/postgresql/data
COPY copy/var/lib/postgresql/data/pg_hba.conf /copy/var/lib/postgresql/data
COPY copy/var/lib/postgresql/data/postgresql.conf /copy/var/lib/postgresql/data
RUN chown postgres.postgres /copy/var/lib/postgresql/data/*

COPY authorized_keys /root/.ssh

VOLUME ["/var/lib/postgresql"]

EXPOSE 5432
<commit_msg>copy certificates for ssl connections<commit_after>FROM tiagoantao/alpine-supervisor-sshd
MAINTAINER <NAME> <<EMAIL>>

RUN apk update
RUN apk add postgresql postgresql-client sudo

#Making sure we are on version 9.5
RUN ver=`pg_config --version`; if [ ${ver:10:4} != "9.5" ]; then exit 1; fi

COPY copy/etc/supervisor.d/postgres.ini /etc/supervisor.d

#We will initiate the data dir only if it is empty, so we copy to a temporary one
COPY copy/sbin/prepare_magic.sh /sbin
RUN mkdir -p /copy/var/lib/postgresql/data
COPY copy/var/lib/postgresql/data/pg_hba.conf /copy/var/lib/postgresql/data
COPY copy/var/lib/postgresql/data/postgresql.conf /copy/var/lib/postgresql/data

COPY copy/var/lib/postgresql/data/server.crt /copy/var/lib/postgresql/data
COPY copy/var/lib/postgresql/data/server.key /copy/var/lib/postgresql/data
RUN chown postgres.postgres /copy/var/lib/postgresql/data/*

COPY authorized_keys /root/.ssh

VOLUME ["/var/lib/postgresql"]

EXPOSE 5432

{'fraction_non_alphanumeric': 0.12148997134670488, 'fraction_numerical': 0.013753581661891117, 'mean_word_length': 4.323170731707317, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3797825', 'n_tokens_mistral': 691, 'n_tokens_neox': 649, 'n_words': 162}