even better logs
This commit is contained in:
parent
3ea8265a75
commit
5085e86c9b
5
dist/npmci.build.docker.js
vendored
5
dist/npmci.build.docker.js
vendored
File diff suppressed because one or more lines are too long
@ -147,6 +147,7 @@ export class Dockerfile {
|
|||||||
this.localBaseImageDependent = false;
|
this.localBaseImageDependent = false;
|
||||||
};
|
};
|
||||||
build(){
|
build(){
|
||||||
|
plugins.beautylog.info("now building Dockerfile for " + this.cleanTag);
|
||||||
let done = plugins.q.defer();
|
let done = plugins.q.defer();
|
||||||
this.patchContents();
|
this.patchContents();
|
||||||
bashBare("docker build -t " + this.buildTag + " -f " + this.filePath + " .");
|
bashBare("docker build -t " + this.buildTag + " -f " + this.filePath + " .");
|
||||||
@ -191,7 +192,7 @@ export class Dockerfile {
|
|||||||
patchContents(){
|
patchContents(){
|
||||||
let done = plugins.q.defer();
|
let done = plugins.q.defer();
|
||||||
if(this.localBaseImageDependent == true){
|
if(this.localBaseImageDependent == true){
|
||||||
plugins.beautylog.info("Patching Dockerfile due to local build dependency!");
|
plugins.beautylog.info("patching Dockerfile due to local build dependency!");
|
||||||
this.patchedContent = this.content.replace(/FROM\s[a-zA-Z0-9\/\-\:]*/, 'FROM ' + this.localBaseDockerfile.buildTag);
|
this.patchedContent = this.content.replace(/FROM\s[a-zA-Z0-9\/\-\:]*/, 'FROM ' + this.localBaseDockerfile.buildTag);
|
||||||
plugins.smartfile.memory.toFsSync(
|
plugins.smartfile.memory.toFsSync(
|
||||||
this.patchedContent,
|
this.patchedContent,
|
||||||
|
Loading…
Reference in New Issue
Block a user