Skip to content

Commit

Permalink
Pass credentials to Hyper for pull. Contribute to #146
Browse files Browse the repository at this point in the history
  • Loading branch information
olafveerman committed Jun 13, 2017
1 parent 9bbe3e7 commit 3a827cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/routes/scenarios--gen-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,11 @@ function spawnAnalysisProcess (projId, scId, opId) {
args.push(config.analysisProcess.container);

// Make sure the latest image (dev / stable) is used
let pullImage = cp.spawn(service, ['pull', config.analysisProcess.container]);
let pullImage = cp.spawn(service, [
'pull', config.analysisProcess.container,
'-e', `HYPER_ACCESS=${config.analysisProcess.hyperAccess}`,
'-e', `HYPER_SECRET=${config.analysisProcess.hyperSecret}`
]);
pullImage.on('close', () => {
// Spawn the processing script. It will take care of updating
// the database with progress.
Expand Down

0 comments on commit 3a827cf

Please sign in to comment.