Skip to content
This repository was archived by the owner on May 23, 2021. It is now read-only.

Commit a0790a2

Browse files
committed
Back to centos 7 for now
1 parent 8805c21 commit a0790a2

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

scripts/centos.dockerfile

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
FROM centos:6
1+
FROM centos:7
22

33
RUN yum update -y \
4-
&& yum install -y epel-release yum-utils centos-release-scl-rh \
5-
&& yum-config-manager --enable rhel-server-rhscl-6-rpms \
4+
&& yum install -y epel-release centos-release-scl \
5+
&& yum-config-manager --enable rhel-server-rhscl-7-rpms \
66
&& yum update -y
77

88
RUN yum install -y \
99
devtoolset-6 \
1010
gcc-c++ \
11-
python27 \
1211
xz \
1312
ccache \
1413
git
1514

1615
RUN mkdir /root/node \
1716
&& cd /root/node \
18-
&& curl https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.xz | tar xJ --strip-components=1 -- \
17+
&& curl https://nodejs.org/dist/v12.14.0/node-v12.14.0-linux-x64.tar.xz | tar xJ --strip-components=1 -- \
1918
&& ln -s /root/node/bin/node /usr/bin/node
2019

2120
ENV PATH "$PATH:/root/node/bin"

scripts/ci.bash

+2-10
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@ function docker-build() {
3232
docker-exec "cross-build-end"
3333
;;
3434
*centos*)
35-
# `__STDC_FORMAT_MACROS` is required on some older systems for access to
36-
# some macros used by Node like `PRIx64`. In newer versions of Node this
37-
# will already be set and we can remove it here.
38-
local cpp_flags="-D __STDC_FORMAT_MACROS"
39-
40-
# `-lrt` provides clock_*; required for gcc < 2.17 (in 2.17 they became
41-
# part of the main C library).
42-
local ld_flags="-lrt"
43-
44-
docker-exec-build ". /opt/rh/devtoolset-6/enable && . /opt/rh/python27/enable && CPPFLAGS='$cpp_flags' LDFLAGS='$ld_flags'"
35+
docker-exec-build ". /opt/rh/devtoolset-6/enable &&"
36+
docker-exec "cd /src && npm rebuild" # So the native module works.
4537
;;
4638
*)
4739
docker-exec-build

0 commit comments

Comments
 (0)