File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ARG IMAGE_TAG= latest
1+ FROM ubuntu: latest AS build
22
3- FROM node:${IMAGE_TAG}
4- ENV DEBIAN_FRONTEND=noninteractive
5- WORKDIR /home/
6-
7- ENTRYPOINT ["./scripts/setup-origin.sh" ]
8-
9- RUN scripts/install.sh
10- RUN scripts/mkdir.sh
11- RUN scripts/ccache.sh
12- RUN scripts/npm.sh
13- RUN scripts/fetch.sh
3+ RUN groupadd --gid 1000 developer \
4+ && useradd --uid 1000 --gid developer --shell /bin/bash --create-home developer
145
6+ ENV DEBIAN_FRONTEND=1
157ENV PATH /usr/lib/ccache:$PATH
168
17- RUN scripts/build.sh
9+ COPY ./scripts/ ./scripts/
10+ RUN ./scripts/install.sh
11+ RUN ./scripts/mkdir.sh && ./scripts/ccache.sh && ./scripts/clone.sh
12+ RUN ./scripts/build.sh
13+ RUN make install -C ~/nodejs/node
14+ RUN ./scripts/ncu.sh
Original file line number Diff line number Diff line change 1- python configure.py --ninja --node-builtin-modules-path /home/nodejs/node && ninja -C out/Release -j 2
1+ #! /usr/bin/env bash
2+
3+ set -e # Exit with nonzero exit code if anything fails
4+
5+ ~ /nodejs/node/configure --ninja --debug && make -C ~ /nodejs/node
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e # Exit with nonzero exit code if anything fails
4+
15# create symlinks
26/usr/sbin/update-ccache-symlinks
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e # Exit with nonzero exit code if anything fails
4+
5+ cd ~ /nodejs
6+ git clone https://github.com/nodejs/node.git
7+ cd ~ /nodejs/node
8+ git remote add upstream https://github.com/nodejs/node.git
9+ git fetch upstream
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e # Exit with nonzero exit code if anything fails
4+
5+ package_list="
6+ build-essential \
7+ ccache \
8+ curl \
9+ nano \
10+ python3 \
11+ python-setuptools \
12+ python3-pip \
13+ ninja-build \
14+ python3 \
15+ g++ \
16+ sudo \
17+ make \
18+ git \
19+ locales \
20+ gpg \
21+ wget"
22+
23+ # Install Packages
24+ apt-get update
25+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $package_list
26+
27+ # set up GitHub CLI resistry stuff to get gh CLI
128curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
229echo " deb [arch=$( dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
30+ gh_package_list=" gh"
331apt-get update
4- apt-get install -y gh build-essential ccache curl ninja-build python3 g++ make git
32+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $gh_package_list
33+
34+ # No Sudo Prompt - thanks Electron for this
35+ echo ' developer ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-developer
36+ echo ' Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
Original file line number Diff line number Diff line change 1- mkdir nodejs
1+ #! /usr/bin/env bash
2+
3+ set -e # Exit with nonzero exit code if anything fails
4+
5+ mkdir ~ /nodejs
6+ mkdir -p ~ /ninja/out/Release
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e # Exit with nonzero exit code if anything fails
4+
15npm install -g node-core-utils
26
37ncu-config set upstream upstream
4- ncu-config set branch master
8+ ncu-config set branch master
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e # Exit with nonzero exit code if anything fails
4+
15if [[ -z " ${ORIGIN_URL} " ]]
26then
37 echo " ORIGIN_URL is not set"
48else
59 git remote set-url origin ${ORIGIN_URL}
6- fi
10+ fi
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments