Permalink
Browse files

fix(setup): docker image build fix

  • Loading branch information...
jkuri committed Aug 18, 2017
1 parent 099406f commit 59c963092c59da9ec6d63cb0102025ca563c37db
Showing with 19 additions and 0 deletions.
  1. +9 −0 src/api/docker.ts
  2. +10 −0 src/app/components/app-terminal/app-terminal.component.ts
@@ -71,6 +71,15 @@ function execTty(id: string, cmd: string, args: string[] = []): Subject<any> {
let msg: TTYMessage = { id: id, type: 'data', data: null, status: 'queued' };
observer.next(msg);

let buildMsg: TTYMessage = {
id: id,
type: 'data',
data: '==> Build Docker Image',
status: 'running'
};

observer.next(buildMsg);

ps.on('data', data => {
let msg: TTYMessage = { id: id, type: 'data', data: data, status: 'running' };
observer.next(msg);
@@ -65,6 +65,16 @@ export class AppTerminalComponent implements OnInit {
return cmd;
});
}

this.checkScrollBottom();
}

checkScrollBottom(): void {
// TODO: make this work actually
// const element = window.document.documentElement;
// if (element.scrollTop + element.clientHeight == element.scrollHeight) {
window.scrollTo(0, document.body.scrollHeight);
// }
}

toogleCommand(index: number) {

0 comments on commit 59c9630

Please sign in to comment.