even better logs

This commit is contained in:
Philipp Kunz 2016-06-07 06:35:10 +02:00
parent 3ea8265a75
commit 5085e86c9b
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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,