From 1bc81dc6e3e62b084ffb638e0f09175d7de0728d Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Mon, 18 Mar 2019 14:31:31 -0400 Subject: [PATCH] ensure node is present in PATH --- scripts/release/Dockerfile | 3 ++- scripts/release/docker-build-all | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/release/Dockerfile b/scripts/release/Dockerfile index e728b1ae0..2957dc00f 100644 --- a/scripts/release/Dockerfile +++ b/scripts/release/Dockerfile @@ -35,8 +35,9 @@ RUN /tmp/scripts/vagrant-linux-unpriv-ui.sh COPY ./scripts/release/docker-build-all /tmp/scripts/docker-build-all # Update PATH with GO bin, yarn, and node +ENV NODE_VERSION=v8.11.2 ENV GOPATH="/opt/gopath" \ - PATH="/home/vagrant/bin:/opt/gopath/bin:/home/vagrant/.yarn/bin:/home/vagrant/.config/yarn/global/node_modules/.bin:$PATH" + PATH="/home/vagrant/.nvm/versions/node/${NODE_VERSION}/bin:/home/vagrant/bin:/opt/gopath/bin:/home/vagrant/.yarn/bin:/home/vagrant/.config/yarn/global/node_modules/.bin:$PATH" RUN mkdir -p /opt/gopath/src/github.com/hashicorp/nomad RUN mkdir -p /home/vagrant/bin \ diff --git a/scripts/release/docker-build-all b/scripts/release/docker-build-all index f1be5aca5..32c45034b 100755 --- a/scripts/release/docker-build-all +++ b/scripts/release/docker-build-all @@ -1,7 +1,5 @@ #!/usr/bin/env bash -. ~/.nvm/nvm.sh - set -e set -x