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
5b9f8f51
Commit
5b9f8f51
authored
Mar 14, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added properties
parent
1f2b284f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
3 deletions
+14
-3
MongoConfig.java
...i/src/main/java/nl/uva/sne/drip/api/conf/MongoConfig.java
+3
-1
drip.properties
drip-api/src/main/resources/drip.properties
+1
-0
drip-deployer.tar.gz
drip-deployer.tar.gz
+0
-0
rpc_server.py
drip-deployer/rpc_server.py
+7
-1
rpc_server.py
drip-planner/rpc_server.py
+3
-1
No files found.
drip-api/src/main/java/nl/uva/sne/drip/api/conf/MongoConfig.java
View file @
5b9f8f51
...
...
@@ -40,6 +40,8 @@ public class MongoConfig extends AbstractMongoConfiguration {
@Value
(
"${db.name}"
)
private
String
dbName
;
@Value
(
"${db.host}"
)
private
String
dbHost
;
@Value
(
"${db.username}"
)
private
String
dbUsername
;
@Value
(
"${db.password}"
)
...
...
@@ -56,7 +58,7 @@ public class MongoConfig extends AbstractMongoConfiguration {
@Override
public
Mongo
mongo
()
throws
Exception
{
return
new
MongoClient
(
"127.0.0.1"
,
27017
);
return
new
MongoClient
(
dbHost
,
27017
);
}
@Override
...
...
drip-api/src/main/resources/drip.properties
View file @
5b9f8f51
message.broker.host
=
127.0.0.1
dbHost
=
127.0.0.1
db.name
=
drip
db.username
=
drip-user
db.password
=
drip-pass
drip-deployer.tar.gz
deleted
100644 → 0
View file @
1f2b284f
File deleted
drip-deployer/rpc_server.py
View file @
5b9f8f51
...
...
@@ -10,8 +10,14 @@ import docker_engine
import
docker_swarm
import
control_agent
print
sys
.
argv
if
len
(
sys
.
argv
)
>
1
:
rabbitmq_host
=
sys
.
argv
[
1
]
else
:
rabbitmq_host
=
'127.0.0.1'
connection
=
pika
.
BlockingConnection
(
pika
.
ConnectionParameters
(
host
=
'127.0.0.1'
))
connection
=
pika
.
BlockingConnection
(
pika
.
ConnectionParameters
(
host
=
rabbitmq_host
))
channel
=
connection
.
channel
()
channel
.
queue_declare
(
queue
=
'deployer_queue'
)
...
...
drip-planner/rpc_server.py
View file @
5b9f8f51
...
...
@@ -15,12 +15,14 @@ import random
import
time
import
json
print
"---------"
print
sys
.
argv
if
len
(
sys
.
argv
)
>
1
:
rabbitmq_host
=
sys
.
argv
[
1
]
else
:
rabbitmq_host
=
'127.0.0.1'
print
"Trying to connect to:
%
s"
%
rabbitmq_host
connection
=
pika
.
BlockingConnection
(
pika
.
ConnectionParameters
(
host
=
rabbitmq_host
))
channel
=
connection
.
channel
()
...
...
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