Commit 05054069 authored by Odair M.'s avatar Odair M.
Browse files

update dockerfile

parent ad20a918
......@@ -7,6 +7,4 @@ Run mkdir /adega
WORKDIR /adega
ADD . /adega
Run pip3 install -r requirements.txt
Run ./install.sh --configure
VOLUME ["/adega"]
EXPOSE 8000
run ./install.sh --configure
version: '3'
services:
db:
image: postgres
environment:
- POSTGRES_USER=adega
- POSTGRES_PASSWORD=adega
- POSTGRES_DB=adega
web:
build: .
volumes:
- .:/adega
ports:
- "8000:8000"
links:
- db
depends_on:
- db
......@@ -4,13 +4,13 @@ verbose=0
# ---------- functions ------------------
configure() {
postgres psql < ../postgres/create.sql
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
python3 src/manage.py makemigrations degree
python3 src/manage.py makemigrations uploads
python3 src/manage.py makemigrations educator
python3 src/manage.py makemigrations adega
python3 src/manage.py migrate
}
......@@ -25,10 +25,12 @@ function install() {
DISTRO=${osInfo[$f]}
fi
done
sudo $DISTRO $PACKAGES
if [ ! -d "base_dados" ]; then
git clone git@gitlab.c3sl.ufpr.br:adega/base_dados.git
fi
docker build --tag adega .
#docker build --tag adega .
docker-compose up
}
function usase() {
echo -ne "
......
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