Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vqgroup
flow-matrix
Commits
6b4a3f57
Commit
6b4a3f57
authored
May 07, 2018
by
Nicolas Herbaut
Browse files
added port in the configuration
parent
870caced
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
6b4a3f57
...
...
@@ -5,4 +5,4 @@ RUN pip install -r /tmp/requirements.txt
COPY
./dist/*.whl /tmp
RUN
pip
install
/tmp/
*
.whl
EXPOSE
5011
CMD
flow-matrix --influxdb_host $INFLUX_DB_HOST
CMD
flow-matrix --influxdb_host $INFLUX_DB_HOST
--influxdb_port $INFLUX_DB_PORT
bin/flow-matrix
View file @
6b4a3f57
...
...
@@ -15,7 +15,7 @@ app.autoescape = False
parser
=
argparse
.
ArgumentParser
(
description
=
'Start Flask app for flow matrix'
)
parser
.
add_argument
(
'--influxdb_host'
,
type
=
str
,
help
=
'hostname or IP for the influxdb server'
,
required
=
True
)
parser
.
add_argument
(
'--flow_matrix_port'
,
type
=
int
,
help
=
'the port on which to run the flow_matrix'
,
default
=
5011
)
parser
.
add_argument
(
'--influxdb_port'
,
type
=
str
,
help
=
'port of the influxdb server'
,
default
=
"8
0
86"
)
parser
.
add_argument
(
'--influxdb_port'
,
type
=
str
,
help
=
'port of the influxdb server'
,
default
=
"8
1
86"
)
parser
.
add_argument
(
'--influxdb_database'
,
type
=
str
,
help
=
'database to used in the influxdb server'
,
default
=
"telegraf"
)
parser
.
add_argument
(
'--pillar'
,
type
=
str
,
help
=
'The path to the pillar used for configuring the stack'
,
default
=
"/opt/flow-matrix/placement.sls"
)
...
...
@@ -65,7 +65,8 @@ def get_containers_flow():
res
=
[]
for
a
in
matrix
.
keys
():
for
b
in
matrix
.
keys
():
res
.
append
(
"%s
\t
%s
\t
%s
\n
"
%
(
a
.
split
(
"_"
)[
1
],
b
.
split
(
"_"
)[
1
],
matrix
[
a
][
b
]))
if
a
!=
b
:
res
.
append
(
"%s
\t
%s
\t
%s
\n
"
%
(
a
.
split
(
"_"
)[
1
],
b
.
split
(
"_"
)[
1
],
matrix
[
a
][
b
]))
return
Response
(
res
,
mimetype
=
'text/yaml'
)
...
...
Write
Preview
Supports
Markdown
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