-
Notifications
You must be signed in to change notification settings - Fork 20
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
add setting for a script to customize build environment #302
add setting for a script to customize build environment #302
Conversation
Yes, and another use case I see is setting the
The problem is that the
Which is much more clear and direct. |
This thing works brilliantly:
which contains:
And I now see the following output in the job:
Great, this is what I need. I can now set the umask. Setting that APPTAINER_CONFIG_FILE allows me to avoid an issue I had with config file in Awesome! |
Oh, one issue that I saw is:
in the output. I thought that was introduced by a previous PR, but it is this one. I'll suggest a fix. |
scripts/bot-build.slurm
Outdated
if $inside_site_config && [[ $line =~ ^site_config_script\ *=\ *([^[:space:]]+) ]]; then | ||
site_config_script_value="${BASH_REMATCH[1]}" | ||
fi | ||
if -n "$local_tmp_value" && -n "$site_config_script_value"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if -n "$local_tmp_value" && -n "$site_config_script_value"; then | |
if [[ -n "${local_tmp_value}" ]] && [[ -n "${site_config_script_value}" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny bug in one of the if
statements for bash, see my suggestion. Otherwise, this looks and works great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
Adds an additional means to customize the environment in which a build job runs. This could be already done by writing a module file and then using the setting
load_modules
. However doing that if one would just want to run something likeumask 0002
would require unnecessary effort.