Skip to content

Commit

Permalink
config util function
Browse files Browse the repository at this point in the history
  • Loading branch information
debuggy committed Nov 18, 2018
1 parent 7023afe commit a1edb3b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/config-util/build-base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

function buildBase(config) {
let dockerContent = '';
dockerContent += `From ${config.base_docker}\n`;
return dockerContent;
}

module.exports = buildBase;
10 changes: 10 additions & 0 deletions lib/config-util/build-env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

function buildEnv(config) {
let dockerContent = '';
for (const envKey in config.env_variables) {
dockerContent += `ENV ${envKey}=${config.env_variables[envKey]}\n`;
}
return dockerContent;
}

module.exports = buildEnv;
Empty file added lib/config-util/index.js
Empty file.
6 changes: 6 additions & 0 deletions lib/config-util/install-python.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

function InstallPython(config) {
// TODO: need discussion
}

module.exports = InstallPython;

0 comments on commit a1edb3b

Please sign in to comment.