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
2b91175d
Commit
2b91175d
authored
Jan 26, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbg
parent
ff29d78a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
workspace.xml
drip-planner/.idea/workspace.xml
+5
-3
Dockerfile
drip-planner/Dockerfile
+1
-3
__main__.py
drip-planner/__main__.py
+1
-0
simple_start_dockers.sh
simple_start_dockers.sh
+6
-6
No files found.
drip-planner/.idea/workspace.xml
View file @
2b91175d
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../package.sh"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../package.sh"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/Dockerfile"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/Dockerfile"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/__main__.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/__main__.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../simple_start_dockers.sh"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../simple_start_dockers.sh"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -310,11 +312,11 @@
...
@@ -310,11 +312,11 @@
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
<state
x=
"679"
y=
"283"
key=
"SettingsEditor/67.34.2493.1406@67.34.2493.1406"
timestamp=
"1575885393075"
/>
<state
x=
"679"
y=
"283"
key=
"SettingsEditor/67.34.2493.1406@67.34.2493.1406"
timestamp=
"1575885393075"
/>
<state
x=
"893"
y=
"526"
key=
"com.intellij.ide.util.TipDialog"
timestamp=
"15800
66068605
"
>
<state
x=
"893"
y=
"526"
key=
"com.intellij.ide.util.TipDialog"
timestamp=
"15800
74814056
"
>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
<state
x=
"681"
y=
"400"
key=
"com.intellij.ide.util.TipDialog/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1579175096269"
/>
<state
x=
"681"
y=
"400"
key=
"com.intellij.ide.util.TipDialog/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1579175096269"
/>
<state
x=
"893"
y=
"526"
key=
"com.intellij.ide.util.TipDialog/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15800
66068605
"
/>
<state
x=
"893"
y=
"526"
key=
"com.intellij.ide.util.TipDialog/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15800
74814056
"
/>
<state
x=
"882"
y=
"239"
width=
"862"
height=
"993"
key=
"find.popup"
timestamp=
"1576090708880"
>
<state
x=
"882"
y=
"239"
width=
"862"
height=
"993"
key=
"find.popup"
timestamp=
"1576090708880"
>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
...
...
drip-planner/Dockerfile
View file @
2b91175d
...
@@ -9,6 +9,4 @@ RUN pip3 install --no-cache-dir -r requirements.txt
...
@@ -9,6 +9,4 @@ RUN pip3 install --no-cache-dir -r requirements.txt
COPY
. /usr/src/app
COPY
. /usr/src/app
EXPOSE
8081
CMD
["python3 __main__.py $RABBITMQ_HOST planner"]
ENTRYPOINT
["python3 __main__.py $RABBITMQ_HOST planner_queue"]
drip-planner/__main__.py
View file @
2b91175d
...
@@ -132,6 +132,7 @@ if __name__ == "__main__":
...
@@ -132,6 +132,7 @@ if __name__ == "__main__":
test_response
=
{
'toscaTemplate'
:
template_dict
}
test_response
=
{
'toscaTemplate'
:
template_dict
}
logger
.
info
(
"Output message:"
+
json
.
dumps
(
test_response
))
logger
.
info
(
"Output message:"
+
json
.
dumps
(
test_response
))
else
:
else
:
print
(
"Input args: "
+
sys
.
argv
[
0
]
+
' '
+
sys
.
argv
[
1
]
+
' '
+
sys
.
argv
[
2
])
logger
.
info
(
"Input args: "
+
sys
.
argv
[
0
]
+
' '
+
sys
.
argv
[
1
]
+
' '
+
sys
.
argv
[
2
])
logger
.
info
(
"Input args: "
+
sys
.
argv
[
0
]
+
' '
+
sys
.
argv
[
1
]
+
' '
+
sys
.
argv
[
2
])
channel
=
init_chanel
(
sys
.
argv
)
channel
=
init_chanel
(
sys
.
argv
)
global
queue_name
global
queue_name
...
...
simple_start_dockers.sh
View file @
2b91175d
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
sudo
docker stop
$(
sudo
docker ps
-q
)
sudo
docker stop
$(
sudo
docker ps
-q
)
docker start mongo-inst
sudo
docker start mongo-inst
sleep
2
sleep
2
docker start some-rabbit
sudo
docker start some-rabbit
sleep
2
sleep
2
docker run
-d
sure-tosca:3.0.0
sudo
docker run
-d
sure-tosca:3.0.0
sleep
6
sleep
6
docker run
-e
MONGO_HOST
=
172.17.0.2
-e
RABBITMQ_HOST
=
172.17.0.3
-e
SURE_TOSCA_BASE_PATH
=
'http\:\/\/172.17.0.4\/8081\/tosca-sure\/1.0.0\/'
-p
8085:8080
-d
alogo53/drip-manager:3.0.0
sudo
docker run
-e
MONGO_HOST
=
172.17.0.2
-e
RABBITMQ_HOST
=
172.17.0.3
-e
SURE_TOSCA_BASE_PATH
=
'http\:\/\/172.17.0.4\/8081\/tosca-sure\/1.0.0\/'
-p
8085:8080
-d
alogo53/drip-manager:3.0.0
docker run
-it
-e
RABBITMQ_HOST
=
172.17.0.3
-e
SURE_TOSCA_BASE_PATH
=
'http\:\/\/172.17.0.4\/8081\/tosca-sure\/1.0.0\/'
-p
8080:8080 alogo53/
drip-planner:3.0.0
sudo
docker run
-it
-e
RABBITMQ_HOST
=
172.17.0.3
-e
SURE_TOSCA_BASE_PATH
=
'http\:\/\/172.17.0.4\/8081\/tosca-sure\/1.0.0\/'
drip-planner:3.0.0
docker run
-it
-e
RABBITMQ_HOST
=
172.17.0.3
-e
SURE_TOSCA_BASE_PATH
=
'http\:\/\/172.17.0.4\/8081\/tosca-sure\/1.0.0\/'
-p
8080:8080
alogo53/drip-provisioner:3.0.0
# sudo docker run -it -e RABBITMQ_HOST=172.17.0.3 -e SURE_TOSCA_BASE_PATH='http\:\/\/172.17.0.4\/8081\/tosca-sure\/1.0.0\/'
alogo53/drip-provisioner:3.0.0
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