From 9e2e4c12426c6121f9fc5dc2381cd7731f597534 Mon Sep 17 00:00:00 2001 From: Vivian Lim Date: Mon, 30 Dec 2019 23:20:49 -0800 Subject: [PATCH] add cloudcmd --- Dockerfile | 6 +++++- user_launch.sh | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8634df6..c33c0b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ RUN pacman -Syu --noconfirm \ # some more packages RUN pacman -Sy --noconfirm \ - && pacman -S base iputils ffmpeg imagemagick sshfs inotify inotify-tools wget dnsutils youtube-dl --noconfirm \ + && pacman -S base iputils ffmpeg imagemagick sshfs inotify-tools wget dnsutils youtube-dl --noconfirm \ # clean cache && pacman -Scc --noconfirm @@ -54,6 +54,10 @@ RUN rm /home/vivlim/.zshrc RUN pacman --noconfirm -Sy npm python-pipenv elixir \ && pacman -Scc --noconfirm +RUN npm install -g cloudcmd + +# installing gritty requires root +RUN npm install -g gritty --unsafe COPY launch.sh /launch.sh COPY user_launch.sh /user_launch.sh diff --git a/user_launch.sh b/user_launch.sh index dafd15c..a1a1450 100755 --- a/user_launch.sh +++ b/user_launch.sh @@ -27,3 +27,6 @@ if [ $? == 0 ]; then echo "No password is set. You will be prompted for one when you connect." tmux send-keys -t 1 "passwd vivlim" C-m fi + +# start cloudcmd +cloudcmd --terminal --terminal-path `gritty --path` &