This repository was archived by the owner on May 23, 2021. It is now read-only.
File tree 2 files changed +6
-15
lines changed
2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
- FROM centos:6
1
+ FROM centos:7
2
2
3
3
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 \
6
6
&& yum update -y
7
7
8
8
RUN yum install -y \
9
9
devtoolset-6 \
10
10
gcc-c++ \
11
- python27 \
12
11
xz \
13
12
ccache \
14
13
git
15
14
16
15
RUN mkdir /root/node \
17
16
&& 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 -- \
19
18
&& ln -s /root/node/bin/node /usr/bin/node
20
19
21
20
ENV PATH "$PATH:/root/node/bin"
Original file line number Diff line number Diff line change @@ -32,16 +32,8 @@ function docker-build() {
32
32
docker-exec " cross-build-end"
33
33
;;
34
34
* 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.
45
37
;;
46
38
* )
47
39
docker-exec-build
You can’t perform that action at this time.
0 commit comments