mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Still working on the post install execution of Docker
This commit is contained in:
2
Dockerfile
vendored
2
Dockerfile
vendored
@@ -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
2
create_db.sql
vendored
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user