copy whether absolute path or local
Some checks failed
Lint Checks / Run linter (push) Failing after 39s
Lint Checks / Run linter (pull_request) Failing after 39s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m5s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m25s
Smoke Test / Run basic test suite (pull_request) Successful in 4m44s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m56s
Some checks failed
Lint Checks / Run linter (push) Failing after 39s
Lint Checks / Run linter (pull_request) Failing after 39s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m5s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m25s
Smoke Test / Run basic test suite (pull_request) Successful in 4m44s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m56s
This commit is contained in:
parent
02c33cb229
commit
5123111db0
@ -16,13 +16,22 @@
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from shutil import copy
|
from shutil import copy
|
||||||
|
import yaml
|
||||||
|
|
||||||
def create(context, extra_args):
|
def create(context, extra_args):
|
||||||
|
|
||||||
# Our goal here is just to copy the json files for blast
|
# Our goal here is just to copy the json files for blast
|
||||||
deployment_config_dir = context.deployment_dir.joinpath("data", "blast-data")
|
yml_path = context.deployment_dir.joinpath("spec.yml")
|
||||||
|
with open(yml_path, 'r') as file:
|
||||||
|
data = yaml.safe_load(file)
|
||||||
|
|
||||||
|
mount_point = data['volumes']['blast-data']
|
||||||
|
if mount_point[0] == "/":
|
||||||
|
deploy_dir = Path(mount_point)
|
||||||
|
else:
|
||||||
|
deploy_dir = context.deployment_dir.joinpath(mount_point)
|
||||||
|
|
||||||
command_context = extra_args[2]
|
command_context = extra_args[2]
|
||||||
compose_file = [f for f in command_context.cluster_context.compose_files if "blast" in f][0]
|
compose_file = [f for f in command_context.cluster_context.compose_files if "blast" in f][0]
|
||||||
source_config_file = Path(compose_file).parent.parent.joinpath("config", "blast", "genesis.json")
|
source_config_file = Path(compose_file).parent.parent.joinpath("config", "blast", "genesis.json")
|
||||||
copy(source_config_file, deployment_config_dir)
|
copy(source_config_file, deploy_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user