Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
adega
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
64
Issues
64
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
adega
adega
Commits
a3a1d067
Commit
a3a1d067
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
a10372c1
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 @
a3a1d067
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 @
a3a1d067
#!/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 @
a3a1d067
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