Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate temp file and rohe system file (template) and use some pre-defined environment variable #27

Open
linhsolar opened this issue Oct 19, 2023 · 0 comments
Assignees

Comments

@linhsolar
Copy link
Contributor

@vtn13042000
this is a mix between temporary file dir and system file (part of rohe). We need to separate them using configuration environment,

e.g.,

ROHE_DIR= is the root directory of ROHE installation (where you see bin, template, conf ...)
ROHE_TEMP_DIR= could be a dir for temporary file. ROHE_TEMP_DIR can be loaded from rohe.yaml in rohe configuration.

then remove hardlink and separate temporary again others. see example also rohe.yaml in config.

from jinja2 import Environment, FileSystemLoader
temporary_folder = qoaUtils.get_parent_dir(file,3)+"/services/orchestration/temp"
template_folder = qoaUtils.get_parent_dir(file,3)+"/templates"
jinja_env = Environment(loader=FileSystemLoader(template_folder))
deployment = jinja_env.get_template("deployment_templates.yaml")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants