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

Commit 42b249e

Browse files
committed
Go back to Centos Docker image
This is to get the GLIBCXX dependency back down.
1 parent 058b0d0 commit 42b249e

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.drone.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ steps:
1212
- ./scripts/cacher.sh
1313

1414
- name: build
15-
image: node:12
15+
image: codercom/nbin:centos
1616
commands:
17-
- apt update && apt install -y build-essential ccache
1817
- yarn
18+
- . /opt/rh/devtoolset-6/enable
1919
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
2020

2121
- name: cache:package

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coder/nbin",
3-
"version": "1.2.8",
3+
"version": "1.2.7",
44
"description": "Fast and robust node.js binary compiler.",
55
"main": "out/api/index.js",
66
"scripts": {

scripts/centos.dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM centos:7
2+
3+
RUN yum update -y \
4+
&& yum install -y epel-release centos-release-scl \
5+
&& yum-config-manager --enable rhel-server-rhscl-7-rpms \
6+
&& yum update -y
7+
8+
RUN yum install -y \
9+
devtoolset-6 \
10+
gcc-c++ \
11+
xz \
12+
ccache \
13+
git \
14+
wget
15+
16+
RUN mkdir /root/node \
17+
&& cd /root/node \
18+
&& curl https://nodejs.org/dist/v12.14.0/node-v12.14.0-linux-x64.tar.xz | tar xJ --strip-components=1 -- \
19+
&& ln -s /root/node/bin/node /usr/bin/node
20+
21+
ENV PATH "$PATH:/root/node/bin"
22+
23+
RUN npm install -g yarn

0 commit comments

Comments
 (0)