Commit b5b935d1 authored by jlopez's avatar jlopez
Browse files

Fix generation in Conda env

parent 2606a934
......@@ -233,6 +233,18 @@ function generate_container() {
nrow += 2;
}
if(SELECTED_PACKAGES["Conda"].length > 0) {
if(isSingularity) {
PREVIEW += "\texport PATH=/opt/conda/bin:$PATH\n";
PREVIEW += "\n";
nrow += 2;
} else {
PREVIEW += "RUN export PATH=/opt/conda/bin:$PATH\n";
PREVIEW += "\n";
nrow += 2;
}
}
var date = new Date();
var options = {
......@@ -258,27 +270,8 @@ function generate_container() {
nrow += 4;
}
if(SELECTED_PACKAGES["Conda"].length > 0) {
if(isSingularity) {
PREVIEW += "%environment\n";
PREVIEW += "\texport PATH=/opt/conda/bin:$PATH\n";
nrow += 2;
} else {
PREVIEW += "RUN export PATH=/opt/conda/bin:$PATH\n";
nrow += 1;
}
}
if(isSingularity) {
PREVIEW += "%post\n";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment