Still working on the post install execution of Docker

This commit is contained in:
Raelon Masters
2020-04-07 14:45:27 -04:00
parent 82f186b4f9
commit eaf689be97
2 changed files with 2 additions and 2 deletions

2
Dockerfile vendored
View File

@@ -17,7 +17,7 @@ ENV PYTHONUNBUFFERED=1
VOLUME ['/srv/Books','/srv/http','/srv/logs'] VOLUME ['/srv/Books','/srv/http','/srv/logs']
WORKDIR /srv/http WORKDIR /srv/http
RUN git clone https://github.com/th3r00t/pyShelf.git /srv/http && \ RUN git clone https://github.com/th3r00t/pyShelf.git /srv/http && \
git checkout 0.5.0--docker && pip install -r requirements.txt git checkout 0.5.0--docker && git fetch && pip install -r requirements.txt
# RUN sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/pgsql.log start # RUN sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/pgsql.log start
# RUN sudo -u postgres psql -f create_db.sql # RUN sudo -u postgres psql -f create_db.sql
# RUN gunicorn pyShelf.wsgi 8000:8000 # RUN gunicorn pyShelf.wsgi 8000:8000

2
create_db.sql vendored
View File

@@ -1 +1 @@
CREATE DATABASE pyshelf; CREATE USER pyshelf WITH PASSWORD pyshelf; GRANT ALL PRIVILEGES ON DATABASE pyshelf TO pyshelf; CREATE DATABASE 'pyshelf'; CREATE USER 'pyshelf' WITH PASSWORD 'pyshelf'; GRANT ALL PRIVILEGES ON DATABASE 'pyshelf' TO 'pyshelf';