forked from finos/morphir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b64694a
commit ded4931
Showing
5 changed files
with
70 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
// NPM Imports | ||
// NPM Imports | ||
import { Command } from "commander"; | ||
import { dockerize } from "./cliAPI"; | ||
|
||
// logging | ||
require('log-timestamp') | ||
// logging | ||
require("log-timestamp"); | ||
|
||
const program = new Command() | ||
program | ||
.name('morphir dockerize') | ||
.description('Creates a Docker image of a Morphir IR with Morphir Develop') | ||
.option('-p, --project-dir <path>', 'Root directory of the project where morphir.json is located.', '.') | ||
.option('-f, --force', 'Overwrite any Dockerfile in target location', false) | ||
.parse(process.argv) | ||
export const command = new Command(); | ||
command | ||
.name("dockerize") | ||
.description("Creates a Docker image of a Morphir IR with Morphir Develop") | ||
.option( | ||
"-p, --project-dir <path>", | ||
"Root directory of the project where morphir.json is located.", | ||
"." | ||
) | ||
.option("-f, --force", "Overwrite any Dockerfile in target location", false) | ||
.action(run); | ||
|
||
// run | ||
dockerize( program.opts()['projectDir'], program.opts() ) | ||
function run(options: { projectDir: string; force: boolean }) { | ||
dockerize(options.projectDir, options); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters