Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
9
config/client_config.Dockerfile
Normal file
9
config/client_config.Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM curlimages/curl:latest
|
||||
|
||||
# Use curl to send POST and GET requests
|
||||
CMD curl -X GET -H "Content-Type: application/json" \
|
||||
-d '{"node_ip": ["http://172.17.0.1:41002/upload"], "stream_ip": "172.17.0.1", "stream_url": "rtmp://172.17.0.1:31000/live/test"}' \
|
||||
http://172.17.0.1:45000/demo/start && \
|
||||
curl -X GET -H "Content-Type: application/json" \
|
||||
-d '{"node_ip": ["http://172.17.0.1:51002/upload"], "stream_ip": "172.17.0.1", "stream_url": "rtmp://172.17.0.1:31000/live/test"}' \
|
||||
http://172.17.0.1:55000/demo/start
|
||||
9
config/server_config.Dockerfile
Normal file
9
config/server_config.Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM curlimages/curl:latest
|
||||
|
||||
# Use curl to send POST and GET requests
|
||||
CMD curl -X POST -H "Content-Type: application/json" \
|
||||
-d '{ "ml_model": "../resources/best_model_no_tuner_40.h5", "num_epochs": 10, "min_working_nodes": 2, "hyperparam_epochs": 5, "hyperparam_batch_size": 2048, "hyperparam_learning_rate": 0.001, "avg_algorithm": "FedAvg", "training_clients_per_round": 2 }' \
|
||||
http://172.17.0.1:34001/config_server && \
|
||||
curl -X GET -H "Content-Type: application/json" \
|
||||
-d '{"eligible_clients_ids" : ["1", "2"]}' \
|
||||
http://172.17.0.1:34001/select_clients
|
||||
Reference in New Issue
Block a user