File tree Expand file tree Collapse file tree 4 files changed +83
-0
lines changed Expand file tree Collapse file tree 4 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM centos:7
2+
3+ ARG GID=1000
4+ ARG UID=1000
5+
6+ RUN groupadd --gid $GID node \
7+ && adduser --gid $GID --uid $UID node
8+
9+ COPY cloudlinux.repo /etc/yum.repos.d/cloudlinux.repo
10+
11+ RUN yum install -y epel-release \
12+ && yum upgrade -y \
13+ && yum install -y \
14+ git \
15+ curl \
16+ make \
17+ python2 \
18+ python3 \
19+ ccache \
20+ xz-utils \
21+ devtoolset-9 \
22+ glibc-devel
23+
24+ COPY --chown=node:node run.sh /home/node/run.sh
25+
26+ VOLUME /home/node/.ccache
27+ VOLUME /out
28+ VOLUME /home/node/node.tar.xz
29+
30+ USER node
31+
32+ ENTRYPOINT [ "/home/node/run.sh" ]
Original file line number Diff line number Diff line change 1+ [cloudlinux-sclo-devtoolset-9]
2+ name=Cloudlinux devtoolset-9
3+ baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/aarch64/
4+ gpgcheck=0
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+ set -x
5+
6+ release_urlbase=" $1 "
7+ disttype=" $2 "
8+ customtag=" $3 "
9+ datestring=" $4 "
10+ commit=" $5 "
11+ fullversion=" $6 "
12+ source_url=" $7 "
13+ config_flags=" "
14+
15+ cd /home/node
16+
17+ tar -xf node.tar.xz
18+ cd " node-${fullversion} "
19+
20+ export CC=" ccache gcc"
21+ export CXX=" ccache g++"
22+ export MAJOR_VERSION=$( echo ${fullversion} | cut -d . -f 1 | tr --delete v)
23+
24+ . /opt/rh/devtoolset-9/enable
25+
26+ make -j$( getconf _NPROCESSORS_ONLN) binary V= \
27+ DESTCPU=" arm64" \
28+ ARCH=" arm64" \
29+ VARIATION=" glibc-217" \
30+ DISTTYPE=" $disttype " \
31+ CUSTOMTAG=" $customtag " \
32+ DATESTRING=" $datestring " \
33+ COMMIT=" $commit " \
34+ RELEASE_URLBASE=" $release_urlbase " \
35+ CONFIG_FLAGS=" $config_flags "
36+
37+ mv node-* .tar.? z /out/
Original file line number Diff line number Diff line change 1+ #! /bin/bash -xe
2+
3+ __dirname=$1
4+ fullversion=$2
5+
6+ . ${__dirname} /_decode_version.sh
7+
8+ decode " $fullversion "
9+
10+ test " $major " -ge " 18"
You can’t perform that action at this time.
0 commit comments