Commit cacdeaa9 authored by jaster's avatar jaster

Initial commit

parents
FROM debian:latest
MAINTAINER tom@jorquera.net
RUN apt update && apt --yes install git virtualenv python-pip wget unzip postgresql-client
RUN git clone https://git.laquadrature.net/memopol/memopol.git && \
cd memopol && \
cp src/memopol/local_settings.py.example src/memopol/local_settings.py && \
sed -i 's/localhost/172.17.0.1/' src/memopol/local_settings.py
WORKDIR memopol
CMD bash -c './bin/dev.sh && \
echo yes | ./bin/quickstart.sh && \
source memopol_env/bin/activate && \
bin/update_representatives'
\ No newline at end of file
FROM postgres:latest
MAINTAINER tom@jorquera.net
COPY init.sh /docker-entrypoint-initdb.d/10-init.sh
\ No newline at end of file
#!/bin/bash
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