Skip to content

Commit c5ecaae

Browse files
authored
install nodejs (#16)
1 parent da02f90 commit c5ecaae

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ RUN apt-get update && bash -xe ./01*.sh && rm -rf * && rm -rf /var/lib/apt/lists
1616
COPY scripts/02*.sh .
1717
RUN apt-get update && bash -xe ./02*.sh && rm -rf * && rm -rf /var/lib/apt/lists/*
1818

19+
COPY scripts/03*.sh .
20+
RUN apt-get update && bash -xe ./03*.sh && rm -rf * && rm -rf /var/lib/apt/lists/*
21+
1922
USER root
2023
ENV HOME=/root
2124
WORKDIR /github/workspace

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# join-ci
2+
[![Status](https://github.com/joinframework/join-ci/actions/workflows/cd.yml/badge.svg?branch=main)](https://github.com/joinframework/join-ci/actions?query=workflow%3Acd+branch%3Amain)
3+
[![GitHub Releases](https://img.shields.io/github/release/joinframework/join-ci.svg)](https://github.com/joinframework/join-ci/releases/latest)
24
[![GitHub License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/joinframework/join-ci/blob/main/LICENSE)
35

46
Docker image for join framework continuous integration.

scripts/03_install_nodejs.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
NODE_MAJOR=24
4+
5+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
6+
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
7+
8+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] \
9+
https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" \
10+
> /etc/apt/sources.list.d/nodesource.list
11+
12+
apt-get update && apt-get -qq install nodejs

0 commit comments

Comments
 (0)