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
9d359651
Commit
9d359651
authored
May 30, 2018
by
Odair M.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update dockerfile
parent
32b77c13
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
10 deletions
+29
-10
Dockerfile
Dockerfile
+1
-3
docker-compose.yml
docker-compose.yml
+19
-0
install.sh
install.sh
+9
-7
requirements.txt
requirements.txt
+0
-0
No files found.
Dockerfile
View file @
9d359651
...
...
@@ -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
docker-compose.yml
0 → 100644
View file @
9d359651
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
install.sh
View file @
9d359651
...
...
@@ -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
"
...
...
requ
eri
ments.txt
→
requ
ire
ments.txt
View file @
9d359651
File moved
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