Skip to content

Commit

Permalink
change name to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede committed Aug 16, 2023
1 parent 9cd551f commit da71775
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
5 changes: 2 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ services:
ports:
- 8081:8081

# Reducer
reducer:
dashboard:
environment:
- GET_HOSTS_FROM=dns
- USER=test
Expand All @@ -75,7 +74,7 @@ services:
- ${HOST_REPO_DIR:-.}/fedn:/app/fedn
entrypoint: [ "sh", "-c" ]
command:
- "/venv/bin/pip install --no-cache-dir -e /app/fedn && /venv/bin/fedn run reducer -n reducer --init=config/settings-reducer.yaml"
- "/venv/bin/pip install --no-cache-dir -e /app/fedn && /venv/bin/fedn run dashboard -n reducer --init=config/settings-reducer.yaml"
ports:
- 8090:8090

Expand Down
21 changes: 11 additions & 10 deletions fedn/cli/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def client_cmd(ctx, discoverhost, discoverport, token, name, client_id, local_pa
client.run()


@run_cmd.command('reducer')
@run_cmd.command('dashboard')
@click.option('-h', '--host', required=False)
@click.option('-p', '--port', required=False, default='8090', show_default=True)
@click.option('-k', '--secret-key', required=False, help='Set secret key to enable jwt token authentication.')
Expand All @@ -154,15 +154,16 @@ def client_cmd(ctx, discoverhost, discoverport, token, name, client_id, local_pa
@click.option('-in', '--init', required=True, default=None,
help='Set to a filename to (re)init reducer state from file.')
@click.pass_context
def reducer_cmd(ctx, host, port, secret_key, local_package, name, init):
"""
:param ctx:
:param discoverhost:
:param discoverport:
:param secret_key:
:param name:
:param init:
def dashboard_cmd(ctx, host, port, secret_key, local_package, name, init):
""" Start the dashboard service.
:param ctx: Click context.
:param discoverhost: Hostname for discovery services (dashboard).
:param discoverport: Port for discovery services (dashboard).
:param secret_key: Set secret key to enable jwt token authentication.
:param local_package: Enable use of local compute package.
:param name: Set service name.
:param init: Set to a filename to (re)init config state from file.
"""
remote = False if local_package else True
config = {'host': host, 'port': port, 'secret_key': secret_key,
Expand Down
2 changes: 0 additions & 2 deletions fedn/fedn/network/api/server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import uuid

from flask import Flask, jsonify, request

from fedn.common.config import get_network_config, get_statestore_config
Expand Down

0 comments on commit da71775

Please sign in to comment.