diff --git a/docker/devenv/Dockerfile b/docker/devenv/Dockerfile index a81baf16e..d4d94c577 100644 --- a/docker/devenv/Dockerfile +++ b/docker/devenv/Dockerfile @@ -3,7 +3,7 @@ LABEL maintainer="Andrey Antukh " ARG DEBIAN_FRONTEND=noninteractive -ENV NODE_VERSION=v12.14.1 \ +ENV NODE_VERSION=v12.16.1 \ CLOJURE_VERSION=1.10.1.507 \ LANG=en_US.UTF-8 \ LC_ALL=C.UTF-8 diff --git a/docker/devenv/files/init.sh b/docker/devenv/files/init.sh index e2ca1f41f..c87dd9f38 100755 --- a/docker/devenv/files/init.sh +++ b/docker/devenv/files/init.sh @@ -6,10 +6,5 @@ source ~/.zshrc echo "[init.sh] Setting up local permissions." sudo chown -R uxbox /home/uxbox/local -echo "[init.sh] Installing node dependencies" -pushd /home/uxbox/uxbox/frontend/ -npm ci -popd - echo "[init.sh] Ready!" tail -f /dev/null diff --git a/docker/devenv/files/start-tmux.sh b/docker/devenv/files/start-tmux.sh index 7a1b5abed..15e4a0db1 100755 --- a/docker/devenv/files/start-tmux.sh +++ b/docker/devenv/files/start-tmux.sh @@ -1,5 +1,14 @@ #!/usr/bin/env zsh +set -e; +source ~/.zshrc + +echo "[start-tmux.sh] Installing node dependencies" +pushd ~/uxbox/frontend/ +rm -rf node_modules; +npm ci; +popd + tmux -2 new-session -d -s uxbox tmux new-window -t uxbox:1 -n 'figwheel'