Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
05e74c1c
Commit
05e74c1c
authored
Nov 10, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docker files
parent
0259793e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
12 deletions
+24
-12
Jenkinsfile
Jenkinsfile
+4
-4
workspace.xml
drip-planner/.idea/workspace.xml
+4
-6
Dockerfile
drip-planner/Dockerfile
+14
-0
Dockerfile
sure_tosca-flask-server/Dockerfile
+2
-2
No files found.
Jenkinsfile
View file @
05e74c1c
...
...
@@ -12,9 +12,9 @@ pipeline {
echo
'Building'
git
branch:
'DRIP_3.0'
,
url:
'https://github.com/skoulouzis/DRIP.git'
sh
"mvn -Dmaven.test.skip=true install"
sh
"cd drip-planner && python3 -m venv venv && venv/bin/pip3 install -r requirements.txt"
sh
"cd drip-planner && python3
.7
-m venv venv && venv/bin/pip3 install -r requirements.txt"
sh
"cd ../"
sh
"cd sure_tosca-flask-server && python3 -m venv venv && venv/bin/pip3 install -r requirements.txt && venv/bin/pip3 install -r test-requirements.txt"
sh
"cd sure_tosca-flask-server && python3
.7
-m venv venv && venv/bin/pip3 install -r requirements.txt && venv/bin/pip3 install -r test-requirements.txt"
sh
"pwd && ls"
}
}
...
...
@@ -22,8 +22,8 @@ pipeline {
steps
{
echo
'Testing'
sh
"mvn test"
sh
"cd drip-planner && venv/bin/python3 -m unittest discover"
sh
"cd sure_tosca-flask-server && venv/bin/python3 -m unittest discover"
sh
"cd drip-planner && venv/bin/python3
.7
-m unittest discover"
sh
"cd sure_tosca-flask-server && venv/bin/python3
.7
-m unittest discover"
}
}
stage
(
'Package'
)
{
...
...
drip-planner/.idea/workspace.xml
View file @
05e74c1c
...
...
@@ -2,9 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/drip-planner.iml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/drip-planner.iml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/misc.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/misc.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/test/test_planner.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/test/test_planner.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -49,7 +47,7 @@
</list>
</option>
</component>
<component
name=
"RunManager"
selected=
"Python
tests.Unittests for test_planner.MyTestCase.test_something
"
>
<component
name=
"RunManager"
selected=
"Python
.__main__
"
>
<configuration
name=
"__main__"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
>
<module
name=
"drip-planner"
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
...
...
@@ -106,9 +104,9 @@
</list>
<recent_temporary>
<list>
<item
itemvalue=
"Python tests.Unittests for test_planner.MyTestCase.test_something"
/>
<item
itemvalue=
"Python tests.Unittests in test_planner.py"
/>
<item
itemvalue=
"Python.__main__"
/>
<item
itemvalue=
"Python tests.Unittests in test_planner.py"
/>
<item
itemvalue=
"Python tests.Unittests for test_planner.MyTestCase.test_something"
/>
</list>
</recent_temporary>
</component>
...
...
drip-planner/Dockerfile
0 → 100644
View file @
05e74c1c
FROM
python:3.7-alpine
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
COPY
requirements.txt /usr/src/app/
RUN
pip
install
--no-cache-dir
-r
requirements.txt
COPY
. /usr/src/app
EXPOSE
8081
ENTRYPOINT
["python __main__.py $RABBITMQ_HOST planner_queue"]
sure_tosca-flask-server/Dockerfile
View file @
05e74c1c
FROM
python:
2
-alpine
FROM
python:
3.7
-alpine
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
...
...
@@ -13,4 +13,4 @@ EXPOSE 8081
ENTRYPOINT
["python"]
CMD
["-m", "sure_tosca"]
\ No newline at end of file
CMD
["-m", "sure_tosca"]
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