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
e56b5026
Commit
e56b5026
authored
8 years ago
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug messages
parent
506433fe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
213 additions
and
196 deletions
+213
-196
MOG.yaml
doc/composer_files/MOG.yaml
+98
-98
docker-composerMOG.yaml
doc/input_tosca_files/docker-composerMOG.yaml
+98
-98
drip-deployer.tar.gz
drip-deployer.tar.gz
+0
-0
docker_swarm.pyc
drip-deployer/docker_swarm.pyc
+0
-0
rpc_server.py
drip-deployer/rpc_server.py
+17
-0
No files found.
doc/composer_files/MOG.yaml
View file @
e56b5026
version
:
'
3'
version
:
'
3'
services
:
services
:
input
:
input
:
container_name
:
InputDistributor
container_name
:
InputDistributor
ports
:
ports
:
-
"
2000:2000/udp"
-
"
2000:2000/udp"
environment
:
environment
:
-
inPort=2000
-
inPort=2000
-
multicastAddrIP=225.2.2.0
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
multicastAddrPort=3000
-
waitingTime=1000
-
waitingTime=1000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/inputdistributor
image
:
1
29.7.98.3:5000/mogswitch/inputdistributor
input2
:
input2
:
container_name
:
InputDistributor2
container_name
:
InputDistributor2
ports
:
ports
:
-
"
2002:2002/udp"
-
"
2002:2002/udp"
environment
:
environment
:
-
inPort=2002
-
inPort=2002
-
multicastAddrIP=225.2.2.2
-
multicastAddrIP=225.2.2.2
-
multicastAddrPort=3002
-
multicastAddrPort=3002
-
waitingTime=1000
-
waitingTime=1000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/inputdistributor
image
:
1
29.7.98.3:5000/mogswitch/inputdistributor
proxy
:
proxy
:
container_name
:
ProxyTranscoder
container_name
:
ProxyTranscoder
ports
:
ports
:
-
"
8081:80"
-
"
8081:80"
environment
:
environment
:
-
multicastAddrIP=225.2.2.0
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
multicastAddrPort=3000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/proxytranscoder
image
:
1
29.7.98.3:5000/mogswitch/proxytranscoder
privileged
:
true
privileged
:
true
proxy2
:
proxy2
:
container_name
:
ProxyTranscoder2
container_name
:
ProxyTranscoder2
ports
:
ports
:
-
"
8082:80"
-
"
8082:80"
environment
:
environment
:
-
multicastAddrIP=225.2.2.2
-
multicastAddrIP=225.2.2.2
-
multicastAddrPort=3002
-
multicastAddrPort=3002
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/proxytranscoder
image
:
1
29.7.98.3:5000/mogswitch/proxytranscoder
privileged
:
true
privileged
:
true
proxyOut
:
proxyOut
:
container_name
:
ProxyTranscoderOut
container_name
:
ProxyTranscoderOut
ports
:
ports
:
-
"
8085:80"
-
"
8085:80"
environment
:
environment
:
-
multicastAddrIP=226.2.2.2
-
multicastAddrIP=226.2.2.2
-
multicastAddrPort=6000
-
multicastAddrPort=6000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/proxytranscoder
image
:
1
29.7.98.3:5000/mogswitch/proxytranscoder
privileged
:
true
privileged
:
true
switcher
:
switcher
:
container_name
:
VideoSwitcher
container_name
:
VideoSwitcher
ports
:
ports
:
-
"
8008:8008"
-
"
8008:8008"
environment
:
environment
:
# PROXY 1
# PROXY 1
-
multicastAddrIP=225.2.2.0
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
multicastAddrPort=3000
# PROXY 2
# PROXY 2
-
multicastAddrIP2=225.2.2.2
-
multicastAddrIP2=225.2.2.2
-
multicastAddrPort2=3002
-
multicastAddrPort2=3002
# SWITCHER SETTINGS
# SWITCHER SETTINGS
-
switcherOutAddrIP=226.2.2.2
-
switcherOutAddrIP=226.2.2.2
-
switcherOutAddrPort=6000
-
switcherOutAddrPort=6000
-
switcherREST=8008
-
switcherREST=8008
-
waitingTime=1000
-
waitingTime=1000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/videoswitcher
image
:
1
29.7.98.3:5000/mogswitch/videoswitcher
output
:
output
:
container_name
:
OutputTranscoder
container_name
:
OutputTranscoder
ports
:
ports
:
-
"
4000:4000"
-
"
4000:4000"
environment
:
environment
:
-
multicastAddrIP=226.2.2.2
-
multicastAddrIP=226.2.2.2
-
multicastAddrPort=6000
-
multicastAddrPort=6000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
-
OutIP=192.168.1.194
-
OutIP=192.168.1.194
-
OutPort=4000
-
OutPort=4000
image
:
1
45.100.133.241:5000/mogswitch/outputtranscoder
image
:
1
29.7.98.3:5000/mogswitch/outputtranscoder
privileged
:
true
privileged
:
true
This diff is collapsed.
Click to expand it.
doc/input_tosca_files/docker-composerMOG.yaml
View file @
e56b5026
version
:
'
3'
version
:
'
3'
services
:
services
:
input
:
input
:
container_name
:
InputDistributor
container_name
:
InputDistributor
ports
:
ports
:
-
"
2000:2000/udp"
-
"
2000:2000/udp"
environment
:
environment
:
-
inPort=2000
-
inPort=2000
-
multicastAddrIP=225.2.2.0
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
multicastAddrPort=3000
-
waitingTime=1000
-
waitingTime=1000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/inputdistributor
image
:
1
29.7.98.3:5000/mogswitch/inputdistributor
input2
:
input2
:
container_name
:
InputDistributor2
container_name
:
InputDistributor2
ports
:
ports
:
-
"
2002:2002/udp"
-
"
2002:2002/udp"
environment
:
environment
:
-
inPort=2002
-
inPort=2002
-
multicastAddrIP=225.2.2.2
-
multicastAddrIP=225.2.2.2
-
multicastAddrPort=3002
-
multicastAddrPort=3002
-
waitingTime=1000
-
waitingTime=1000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/inputdistributor
image
:
1
29.7.98.3:5000/mogswitch/inputdistributor
proxy
:
proxy
:
container_name
:
ProxyTranscoder
container_name
:
ProxyTranscoder
ports
:
ports
:
-
"
8081:80"
-
"
8081:80"
environment
:
environment
:
-
multicastAddrIP=225.2.2.0
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
multicastAddrPort=3000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/proxytranscoder
image
:
1
29.7.98.3:5000/mogswitch/proxytranscoder
privileged
:
true
privileged
:
true
proxy2
:
proxy2
:
container_name
:
ProxyTranscoder2
container_name
:
ProxyTranscoder2
ports
:
ports
:
-
"
8082:80"
-
"
8082:80"
environment
:
environment
:
-
multicastAddrIP=225.2.2.2
-
multicastAddrIP=225.2.2.2
-
multicastAddrPort=3002
-
multicastAddrPort=3002
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/proxytranscoder
image
:
1
29.7.98.3:5000/mogswitch/proxytranscoder
privileged
:
true
privileged
:
true
proxyOut
:
proxyOut
:
container_name
:
ProxyTranscoderOut
container_name
:
ProxyTranscoderOut
ports
:
ports
:
-
"
8085:80"
-
"
8085:80"
environment
:
environment
:
-
multicastAddrIP=226.2.2.2
-
multicastAddrIP=226.2.2.2
-
multicastAddrPort=6000
-
multicastAddrPort=6000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/proxytranscoder
image
:
1
29.7.98.3:5000/mogswitch/proxytranscoder
privileged
:
true
privileged
:
true
switcher
:
switcher
:
container_name
:
VideoSwitcher
container_name
:
VideoSwitcher
ports
:
ports
:
-
"
8008:8008"
-
"
8008:8008"
environment
:
environment
:
# PROXY 1
# PROXY 1
-
multicastAddrIP=225.2.2.0
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
multicastAddrPort=3000
# PROXY 2
# PROXY 2
-
multicastAddrIP2=225.2.2.2
-
multicastAddrIP2=225.2.2.2
-
multicastAddrPort2=3002
-
multicastAddrPort2=3002
# SWITCHER SETTINGS
# SWITCHER SETTINGS
-
switcherOutAddrIP=226.2.2.2
-
switcherOutAddrIP=226.2.2.2
-
switcherOutAddrPort=6000
-
switcherOutAddrPort=6000
-
switcherREST=8008
-
switcherREST=8008
-
waitingTime=1000
-
waitingTime=1000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
image
:
1
45.100.133.241:5000/mogswitch/videoswitcher
image
:
1
29.7.98.3:5000/mogswitch/videoswitcher
output
:
output
:
container_name
:
OutputTranscoder
container_name
:
OutputTranscoder
ports
:
ports
:
-
"
4000:4000"
-
"
4000:4000"
environment
:
environment
:
-
multicastAddrIP=226.2.2.2
-
multicastAddrIP=226.2.2.2
-
multicastAddrPort=6000
-
multicastAddrPort=6000
-
videoWidth=176
-
videoWidth=176
-
videoHeight=100
-
videoHeight=100
-
OutIP=192.168.1.194
-
OutIP=192.168.1.194
-
OutPort=4000
-
OutPort=4000
image
:
1
45.100.133.241:5000/mogswitch/outputtranscoder
image
:
1
29.7.98.3:5000/mogswitch/outputtranscoder
privileged
:
true
privileged
:
true
This diff is collapsed.
Click to expand it.
drip-deployer.tar.gz
0 → 100644
View file @
e56b5026
File added
This diff is collapsed.
Click to expand it.
drip-deployer/docker_swarm.pyc
View file @
e56b5026
No preview for this file type
This diff is collapsed.
Click to expand it.
drip-deployer/rpc_server.py
View file @
e56b5026
...
@@ -9,6 +9,9 @@ import docker_kubernetes
...
@@ -9,6 +9,9 @@ import docker_kubernetes
import
docker_engine
import
docker_engine
import
docker_swarm
import
docker_swarm
import
control_agent
import
control_agent
import
sys
,
argparse
from
threading
import
Thread
from
time
import
sleep
print
sys
.
argv
print
sys
.
argv
if
len
(
sys
.
argv
)
>
1
:
if
len
(
sys
.
argv
)
>
1
:
...
@@ -23,6 +26,13 @@ channel.queue_declare(queue='deployer_queue')
...
@@ -23,6 +26,13 @@ channel.queue_declare(queue='deployer_queue')
path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
"/"
path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
"/"
def
threaded_function
(
args
):
while
True
:
#print "processing data events"
connection
.
process_data_events
()
sleep
(
30
)
def
handleDelivery
(
message
):
def
handleDelivery
(
message
):
parsed_json
=
json
.
loads
(
message
)
parsed_json
=
json
.
loads
(
message
)
params
=
parsed_json
[
"parameters"
]
params
=
parsed_json
[
"parameters"
]
...
@@ -82,6 +92,8 @@ def on_request(ch, method, props, body):
...
@@ -82,6 +92,8 @@ def on_request(ch, method, props, body):
par
[
"attributes"
]
=
"null"
par
[
"attributes"
]
=
"null"
response
[
"parameters"
]
.
append
(
par
)
response
[
"parameters"
]
.
append
(
par
)
print
"Response:
%
s "
%
response
ch
.
basic_publish
(
exchange
=
''
,
ch
.
basic_publish
(
exchange
=
''
,
routing_key
=
props
.
reply_to
,
routing_key
=
props
.
reply_to
,
properties
=
pika
.
BasicProperties
(
correlation_id
=
\
properties
=
pika
.
BasicProperties
(
correlation_id
=
\
...
@@ -92,5 +104,10 @@ def on_request(ch, method, props, body):
...
@@ -92,5 +104,10 @@ def on_request(ch, method, props, body):
channel
.
basic_qos
(
prefetch_count
=
1
)
channel
.
basic_qos
(
prefetch_count
=
1
)
channel
.
basic_consume
(
on_request
,
queue
=
'deployer_queue'
)
channel
.
basic_consume
(
on_request
,
queue
=
'deployer_queue'
)
thread
=
Thread
(
target
=
threaded_function
,
args
=
(
1
,
))
thread
.
start
()
print
(
" [x] Awaiting RPC requests"
)
print
(
" [x] Awaiting RPC requests"
)
channel
.
start_consuming
()
channel
.
start_consuming
()
thread
.
stop
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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