Commit cacdeaa9 authored by jaster's avatar jaster
Browse files

Initial commit

FROM debian:latest
RUN apt update && apt --yes install git virtualenv python-pip wget unzip postgresql-client
RUN git clone && \
cd memopol && \
cp src/memopol/ src/memopol/ && \
sed -i 's/localhost/' src/memopol/
WORKDIR memopol
CMD bash -c './bin/ && \
echo yes | ./bin/ && \
source memopol_env/bin/activate && \
\ No newline at end of file
FROM postgres:latest
COPY /docker-entrypoint-initdb.d/
\ No newline at end of file
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --command="create user memopol with password 'memopol';"
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --command="alter role memopol with createdb;"
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --command="create database memopol with owner memopol;"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment