Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,32 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: abbbi/github-actions-tune@v1
- name : Update sources
run: sudo apt-get update -y
- name: Install rdiff-backup
run: sudo apt-get install rdiff-backup -y
- run: cp test/custom.conf .
- run: npm install
- run: npm ci
- run: npm test
- uses: actions/checkout@v5
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- uses: abbbi/github-actions-tune@v1
- name: Update sources
run: sudo apt-get update -y
- name: Install rdiff-backup
run: sudo apt-get install rdiff-backup -y
- run: cp test/custom.conf .
- run: npm install
- run: npm ci
- run: npm test
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal
FROM ubuntu:26.04
LABEL MAINTAINER='William Dizon <wdchromium@gmail.com>'

#update and accept all prompts
Expand All @@ -12,13 +12,12 @@ RUN apt-get update && apt-get install -y \
curl \
rlwrap \
unzip \
openjdk-21-jre-headless \
openjdk-8-jre-headless \
openjdk-25-jre-headless \
ca-certificates-java \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

#install node from nodesource following instructions: https://github.com/nodesource/distributions#debinstall
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand All @@ -27,7 +26,13 @@ RUN mkdir /usr/games/minecraft \
&& cd /usr/games/minecraft \
&& git clone --depth=1 https://github.com/hexparrot/mineos-node.git . \
&& cp mineos.conf /etc/mineos.conf \
&& chmod +x webui.js mineos_console.js service.js
&& chmod +x webui.js mineos_console.js service.js \
&& npm pkg set dependencies.diskusage=1.2.0 \
&& npm pkg set dependencies.userid=1.2.5 \
&& npm pkg set dependencies.node-addon-api='^4.0.0' \
&& npm pkg set overrides.nan=2.26.2 \
&& npm pkg set overrides.node-addon-api='^4.0.0' \
&& rm -f package-lock.json

#build npm deps and clean up apt for image minimalization
RUN cd /usr/games/minecraft \
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal as build
FROM ubuntu:noble as build
LABEL MAINTAINER='William Dizon <wdchromium@gmail.com>'

#set build directory
Expand All @@ -9,7 +9,7 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
curl \
build-essential \
&& curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs

# copy package.json and npm install
Expand All @@ -21,7 +21,7 @@ RUN npm install
COPY . /build

#final image
FROM ubuntu:focal
FROM ubuntu:noble

WORKDIR /usr/games/minecraft

Expand All @@ -34,10 +34,10 @@ RUN apt-get update && apt-get install -y \
git \
curl \
rlwrap \
openjdk-17-jre-headless \
openjdk-25-jre-headless \
openjdk-8-jre-headless \
ca-certificates-java \
&& curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& apt-get autoremove -y \
&& apt-get clean \
Expand Down
Loading
Loading