ensure node is present in PATH

This commit is contained in:
Mahmood Ali 2019-03-18 14:31:31 -04:00
parent 4832c77363
commit 1bc81dc6e3
2 changed files with 2 additions and 3 deletions

View file

@ -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 \

View file

@ -1,7 +1,5 @@
#!/usr/bin/env bash
. ~/.nvm/nvm.sh
set -e
set -x