Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Odair M.
adega
Commits
d76cf120
Commit
d76cf120
authored
May 29, 2018
by
Odair M.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adiciona arquivos de instalaçao com o docker
parent
c90c227d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
0 deletions
+61
-0
Dockerfile
Dockerfile
+12
-0
install.sh
install.sh
+38
-0
requeriments.txt
requeriments.txt
+11
-0
No files found.
Dockerfile
0 → 100644
View file @
d76cf120
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
install.sh
0 → 100644
View file @
d76cf120
#!/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
requeriments.txt
0 → 100644
View file @
d76cf120
coverage
ipython
Django==1.11.10
django-widget-tweaks
pandas==0.22
xlrd
django-extensions
ujson
eventlet
gunicorn
psycopg2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment