Skip to content
Snippets Groups Projects
Commit 28c06d85 authored by murgatroid99's avatar murgatroid99
Browse files

Added persistent caching for npm dependencies in Jenkins Dockerfiles

parent ae369de3
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,7 @@ docker run \ ...@@ -66,6 +66,7 @@ docker run \
-i $TTY_FLAG \ -i $TTY_FLAG \
-v "$git_root:/var/local/jenkins/grpc" \ -v "$git_root:/var/local/jenkins/grpc" \
-v /tmp/ccache:/tmp/ccache \ -v /tmp/ccache:/tmp/ccache \
-v /tmp/npm-cache:/tmp/npm-cache \
-v /tmp/xdg-cache-home:/tmp/xdg-cache-home \ -v /tmp/xdg-cache-home:/tmp/xdg-cache-home \
-v /var/run/docker.sock:/var/run/docker.sock \ -v /var/run/docker.sock:/var/run/docker.sock \
-v $(which docker):/bin/docker \ -v $(which docker):/bin/docker \
......
...@@ -101,7 +101,7 @@ ENV NUGET mono /var/local/NuGet.exe ...@@ -101,7 +101,7 @@ ENV NUGET mono /var/local/NuGet.exe
# Install nvm # Install nvm
RUN touch .profile RUN touch .profile
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
RUN /bin/bash -l -c "nvm install 0.12" RUN /bin/bash -l -c "nvm install 0.12 && npm config set cache /tmp/npm-cache"
################## ##################
# Ruby dependencies # Ruby dependencies
......
...@@ -101,7 +101,7 @@ ENV NUGET mono /var/local/NuGet.exe ...@@ -101,7 +101,7 @@ ENV NUGET mono /var/local/NuGet.exe
# Install nvm # Install nvm
RUN touch .profile RUN touch .profile
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
RUN /bin/bash -l -c "nvm install 0.12" RUN /bin/bash -l -c "nvm install 0.12 && npm config set cache /tmp/npm-cache"
################## ##################
# Ruby dependencies # Ruby dependencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment