Skip to content

Commit

Permalink
Fix pullimage
Browse files Browse the repository at this point in the history
  • Loading branch information
IKCAP committed Sep 11, 2024
1 parent 3e1f408 commit 38a2541
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/classes/localex/local-execution-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ export const getModelCacheDirectory = (url: string, prefs: MintPreferences) => {
export const loadModelWCM = async (url: string, model: Model, prefs: MintPreferences) => {
const modeldir = await _downloadWCM(url, prefs);
console.log("Model dir.. " + modeldir)
if (model.software_image != null) {
// Pull docker image if needed
await pullImage(model.software_image);
}
// if (model.software_image != null) {
// // Pull docker image if needed
// await pullImage(model.software_image);
// }
let details = _getModelDetails(model, modeldir);
// If we cannot get the details from just the model cache, then try to get it from the yaml
if (!details) {
Expand Down
5 changes: 2 additions & 3 deletions src/classes/localex/seed-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ module.exports = async (job: any) => {
fs.mkdirsSync(outputdir);
}

let use_kubernetes = true // FIXME: Hardcoding this for now prefs.kubernetes?.use || true;
let use_kubernetes = prefs.kubernetes?.use || true;
if(use_kubernetes) {
// If Running as a Kubernetes Pod, then extract I/O from CWL file and run that way
console.log("Running as a Kubernetes Job:" )
Expand Down Expand Up @@ -267,8 +267,7 @@ module.exports = async (job: any) => {
// If there is only a docker image, run the container
// --------------------------------------------------
else if (softwareImage != null) {
let use_kubernetes = true // FIXME: Hardcoding this for now prefs.kubernetes?.use || true;
//let use_kubernetes = prefs.kubernetes?.use || true;
let use_kubernetes = prefs.kubernetes?.use || true;
if(use_kubernetes) {
console.log("Running as a Kubernetes Job:" )
let logstream = fs.createWriteStream(logstdout, { 'flags': 'a' });
Expand Down

0 comments on commit 38a2541

Please sign in to comment.