Radu Tutueanu 2543413017 Build and publish node pre-gyp binaries (#657)
* Build node pre-gyp for linux

* Add Jenkisfile

* Fix core package names

* Fix Jenkinsfile errors

* To revert: only build using 4.4.7

* Do not download on linux

* Fix wrong argument

* Fix archiving linux artifacts

* Try to fix

* Revert "Try to fix"

This reverts commit 8bcd1d0ffb539b9f2881ce8e0396681b55caf69e.

* Fix moving the gyp binaries

* Update version

* Revert "To revert: only build using 4.4.7"

This reverts commit b829c0e0d27b1baed50c3af436731c5014de290f.

* Bump version in dependencies

* Publish binaries

* Use correct version

* Remove unneded quote

* Fix publish
2016-11-23 15:09:47 +01:00

38 lines
1.0 KiB
Docker

FROM alanfranz/fwd-centos-6:latest
ARG PACKAGECLOUD_URL
ENV NPM_CONFIG_UNSAFE_PERM true
# Install EPEL & devtoolset
# On CentOS6, there is a bug with OverlayFS and Docker. It is needed to touch
# /var/lib/rpm/* in order to work around this issue.
# Link: https://github.com/docker/docker/issues/10180
RUN touch /var/lib/rpm/* \
&& yum -y install \
epel-release \
centos-release-scl-rh \
&& yum-config-manager --enable rhel-server-rhscl-6-rpms \
&& curl -s $PACKAGECLOUD_URL/script.rpm.sh | bash \
&& yum -y install \
python27 \
which \
chrpath \
openssl-devel \
devtoolset-3-gcc \
devtoolset-3-gcc-c++ \
devtoolset-3-binutils \
libconfig-devel \
jq \
&& yum remove -y g++ gcc \
&& yum clean all
ENV NVM_DIR /root/.nvm
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash
RUN . $NVM_DIR/nvm.sh && \
nvm install 4.4.7 && \
nvm install 5.12.0 && \
nvm install 6.5.0 && \
nvm install 7.0.0