Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/deploy_tools/templates/modulefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ if { [module-info mode load] } {
}
}

{% if env_vars|length %}
{% for var in env_vars %}
setenv {{ var.name }} "{{ var.value }}"
{% endfor %}

{% endif -%}
{% if dependencies|length %}
{% for module in dependencies %}
{% if module.version == None %}
Expand All @@ -25,6 +19,12 @@ module load {{ module.name }}/{{ module.version }}
{% endif %}
{% endfor %}

{% endif -%}
{% if env_vars|length %}
{% for var in env_vars %}
setenv {{ var.name }} "{{ var.value }}"
{% endfor %}

{% endif -%}
{% if load_script|length %}
if { [module-info mode load] } {
Expand Down
6 changes: 3 additions & 3 deletions tests/samples/deploy-tools-output/modules/ec/i13-1/modulefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ if { [module-info mode load] } {
}
}

setenv EC_TARGET "i13-1-beamline/i13-1"
setenv EC_SERVICES_REPO "https://gitlab.diamond.ac.uk/controls/containers/beamline/i13-1-services.git"

module load edge-containers-cli
module load k8s-i13-1/local

setenv EC_TARGET "i13-1-beamline/i13-1"
setenv EC_SERVICES_REPO "https://gitlab.diamond.ac.uk/controls/containers/beamline/i13-1-services.git"

prepend-path PATH "/tmp/deploy-tools-output/modules/ec/i13-1/entrypoints"
6 changes: 3 additions & 3 deletions tests/samples/deploy-tools-output/modules/ec/p47/modulefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ if { [module-info mode load] } {
}
}

setenv EC_TARGET "p47-beamline/p47"
setenv EC_SERVICES_REPO "https://github.com/epics-containers/p47-services"

module load edge-containers-cli/0.1
module load pollux/local

setenv EC_TARGET "p47-beamline/p47"
setenv EC_SERVICES_REPO "https://github.com/epics-containers/p47-services"

prepend-path PATH "/tmp/deploy-tools-output/modules/ec/p47/entrypoints"
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ if { [module-info mode load] } {
}
}

module load argocd/v2.14.10

setenv EC_CLI_BACKEND "ARGOCD"
setenv EC_LOG_URL "https://graylog.diamond.ac.uk/search?rangetype=relative&fields=message%2Csource&width=1489&highlightMessage=&relative=172800&q=pod_name%3A{service_name}*"

module load argocd/v2.14.10

prepend-path PATH "/tmp/deploy-tools-output/modules/edge-containers-cli/0.1/entrypoints"
Loading