Skip to content

Commit

Permalink
Fix docker node config filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Sep 11, 2024
1 parent 50af5dc commit 254009b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node_cli/configs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ def _get_env():

TELEGRAF_TEMPLATE_PATH = os.path.join(CONTAINER_CONFIG_PATH, 'telegraf.conf.j2')
TELEGRAF_CONFIG_PATH = os.path.join(CONTAINER_CONFIG_PATH, 'telegraf.conf')
NODE_DOCKER_CONFIG_PATH = os.path.join(CONTAINER_CONFIG_PATH, 'docker.json')
NODE_DOCKER_CONFIG_PATH = os.path.join(NODE_DATA_PATH, 'docker.json')
3 changes: 3 additions & 0 deletions node_cli/operations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ def turn_off():

def turn_on(env):
logger.info('Turning on the node...')
if env.get('SKIP_DOCKER_CONFIG') != 'True':
configure_docker()
logger.info('Launching containers on the node...')
compose_up(env)


Expand Down

0 comments on commit 254009b

Please sign in to comment.