Skip to content
Snippets Groups Projects
Commit 115290c3 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add nvm for node management

Adding to the PHP images because certain WP-specific Grunt tasks rely on PHP,
so it makes sense to have it all in one place.

See also gitlab/ci/wordpress#1
parent 6a628e33
No related branches found
No related tags found
1 merge request!25Add Xdebug
Pipeline #4843 failed with stages
in 7 minutes and 47 seconds
......@@ -35,7 +35,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer --version \
&& mkdir $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm --version
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
......@@ -35,7 +35,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer --version \
&& mkdir $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm --version
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
......@@ -35,7 +35,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer --version \
&& mkdir $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm --version
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
......@@ -36,7 +36,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer --version \
&& mkdir $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm --version
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
......@@ -36,7 +36,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer --version \
&& mkdir $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm --version
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
......@@ -36,7 +36,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer --version \
&& mkdir $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm --version
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
......@@ -36,7 +36,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer --version \
&& mkdir $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm --version
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment