Commit a3a1d067 authored by Odair M.'s avatar Odair M.

adiciona arquivos de instalaçao com o docker

parent a10372c1
FROM python:3.5
Run apt-get update -qq
Run apt-get install -y \
python3-pip libpq-dev \
postgresql-client
Run mkdir /adega
WORKDIR /adega
ADD . /adega
Run pip3 install -r requirements.txt
Run ./install.sh --configure
VOLUME ["/adega"]
EXPOSE 8000
#!/bin/bash
# ---------------- flags -------------------
verbose=0
# ---------- functions ------------------
configure() {
postgres psql < ../postgres/create.sql
python3 manage.py makemigrations degree
python3 manage.py makemigrations uploads
python3 manage.py makemigrations educator
python3 manage.py makemigrations adega
python3 manage.py migrate
}
install() {
if [ ! -d "base_dados" ]; then
git clone git@gitlab.c3sl.ufpr.br:adega/base_dados.git
fi
docker build -t adega .
}
usase() {
echo -e "Options:\n
\t-h, --help\t print this menu\n"
}
# -------------- main ------------------
while [[ $1 = -?* ]]; do
case $1 in
-i | --install) install ;;
-c | --configure) configure ;;
-v | --verbose) verbose=1 ;;
-h | --help) usase ;;
esac
coverage
ipython
Django==1.11.10
django-widget-tweaks
pandas==0.22
xlrd
django-extensions
ujson
eventlet
gunicorn
psycopg2
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