Skip to content

Commit

Permalink
fix(entry): fix container entry point to not output vnc and stuff logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Dec 8, 2017
1 parent d8ad628 commit d0b9d90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/components/app-job/app-job.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export class AppJobComponent implements OnInit, OnDestroy {
this.sshd = null;
this.vnc = null;
this.debug = false;
this.terminalInput = { clear: true };
this.socketService.emit({ type: 'restartJob', data: { jobId: this.id } });
this.terminalInput = { clear: true };
}
Expand Down
6 changes: 3 additions & 3 deletions src/files/docker-essential/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

VNC_STORE_PWD_FILE=/home/abstruse/.vnc/passwd
if [ ! -e "${VNC_STORE_PWD_FILE}" -o -n "${VNC_PASSWORD}" ]; then
mkdir -vp /home/abstruse/.vnc
x11vnc -storepasswd ${VNC_PASSWORD:-abstruse} ${VNC_STORE_PWD_FILE} &> /dev/null
mkdir -vp /home/abstruse/.vnc > /dev/null 2>&1
x11vnc -storepasswd ${VNC_PASSWORD:-abstruse} ${VNC_STORE_PWD_FILE} > /dev/null 2>&1
fi

export CHROME=${CHROME:-/opt/google/chrome/google-chrome}
Expand All @@ -14,7 +14,7 @@ export DISPLAY=:99
sudo /etc/init.d/fluxbox start
/etc/init.d/x11vnc start
sudo /etc/init.d/ssh start
} &> /dev/null
} > /dev/null 2>&1

/bin/bash

0 comments on commit d0b9d90

Please sign in to comment.