Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
1f8b7a01
Commit
1f8b7a01
authored
Nov 28, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flask_iscpif_regcomex/Dockerfile and other minor docker modifications
parent
996ad363
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
cheatsheet.md
setup/dockers/cheatsheet.md
+2
-2
docker-compose.yml
setup/dockers/docker-compose.yml
+1
-1
Dockerfile
setup/dockers/flask_iscpif_regcomex/Dockerfile
+16
-7
Dockerfile
setup/dockers/minidoors/Dockerfile
+1
-1
No files found.
setup/dockers/cheatsheet.md
View file @
1f8b7a01
** Docker commands for advanced testing **
```
# check ports redirection
docker inspect comex_
flask_
test | jq '.[0].NetworkSettings'
docker exec -it comex_
flask_
test bash
docker inspect comex_test | jq '.[0].NetworkSettings'
docker exec -it comex_test bash
```
setup/dockers/docker-compose.yml
View file @
1f8b7a01
...
...
@@ -17,7 +17,7 @@
-
"
32789:8989"
# POSSIBLE volume for h2 DB itself
flask_ispcif_regcomex
:
comex_test
:
image
:
flask_iscpif_regcomex
depends_on
:
-
mysql_regcomex
...
...
setup/dockers/flask_iscpif_regcomex/Dockerfile
View file @
1f8b7a01
...
...
@@ -13,21 +13,30 @@ ENV DEBIAN_FRONTEND noninteractive
RUN
locale-gen fr_FR fr_FR.UTF-8
RUN
dpkg-reconfigure locales
RUN
apt-get update
&&
apt-get autoclean
RUN
apt-get
install
-y
python3-pip git nano
# Install global dependencies
# Install global dependencies and utilities
RUN
apt update
&&
apt autoclean
RUN
apt
install
-y
python3-pip libmysqlclient-dev git nano tree htop
RUN
pip3
install
--upgrade
pip
RUN
pip3
install
gunicorn flask
# for regcomex itself ----------------------------------------------------------
# pull the comex server from repository
RUN
git clone https://github.com/moma/regcomex.git
# Install project dependencies
RUN
pip3
install
-r
regcomex/setup/requirements.txt
# main CMD to start the app
WORKDIR
/regcomex
# flask dev server
# CMD python3 server_comex_registration.py
# gunicorn production server
CMD
bash run.sh
# Ports
EXPOSE
5000
# ports ------------------------------------------------------------------------
# flask dev server
# EXPOSE 5000
# gunicorn production server
EXPOSE
9090
setup/dockers/minidoors/Dockerfile
View file @
1f8b7a01
...
...
@@ -37,7 +37,7 @@ WORKDIR /root/doors/application
# build and compile it once so it downloads dependencies
RUN
sbt
"project lab"
compile
test
package
# s
s
et docker run command to run doors servers
# set docker run command to run doors servers
CMD
sbt "project lab" run
# ports
...
...
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