Skip to content

Commit

Permalink
build: ⬆️ update all dockerfiles using node 14 to node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerbenw committed Jun 5, 2024
1 parent 861f841 commit 3a09fbb
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
8 changes: 4 additions & 4 deletions dockerfiles/Dockerfile.browser
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# CI test image for unit/lint/type tests
FROM node:14-alpine as browser-feature-builder
FROM node:18-alpine as browser-feature-builder

RUN apk add --update bash python3 make gcc g++ musl-dev xvfb-run

WORKDIR /app

COPY package*.json ./
RUN npm install
RUN npm ci

COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconfig.json ./
COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconfig.json .npmrc ./
ADD min_packages.tar .
COPY bin ./bin
COPY packages ./packages
RUN npx lerna bootstrap
RUN npm run bootstrap
RUN npm run build

RUN npm pack --verbose packages/js/
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN apk add --update bash python3 make gcc g++ musl-dev xvfb-run

WORKDIR /app

COPY package*.json ./
RUN npm install --unsafe-perm --legacy-peer-deps
COPY package*.json .npmrc ./
RUN npm install --unsafe-perm

COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconfig.json ./
ADD min_packages.tar .
Expand Down
8 changes: 4 additions & 4 deletions dockerfiles/Dockerfile.node
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# CI test image for unit/lint/type tests
FROM node:14-alpine as node-feature-builder
FROM node:18-alpine as node-feature-builder

RUN apk add --update bash python3 make gcc g++ musl-dev xvfb-run

WORKDIR /app

COPY package*.json ./
RUN npm install
COPY package*.json .npmrc ./
RUN npm ci

COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconfig.json ./
ADD min_packages.tar .
COPY bin ./bin
COPY packages ./packages
RUN npx lerna bootstrap
RUN npm run bootstrap
RUN npm run build

RUN npm pack --verbose packages/node/
Expand Down
8 changes: 4 additions & 4 deletions dockerfiles/Dockerfile.react-native-cli-tool
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# CI test image for building the CLI
FROM node:14-alpine as react-native-cli-feature-builder
FROM node:18-alpine as react-native-cli-feature-builder

WORKDIR /app

COPY package*.json ./
RUN npm install
COPY package*.json .npmrc ./
RUN npm ci

COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconfig.json ./
COPY bin ./bin
COPY packages ./packages

RUN npm run bootstrap

RUN npx lerna run build --scope @bugsnag/react-native-cli
RUN npm run build:react-native-cli
RUN npm pack --verbose packages/react-native-cli/

# The maze-runner test image
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine
FROM node:18-alpine
RUN apk add --update git bash python3 make gcc g++ openssh-client curl

RUN addgroup -S admins
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@
"xvfb-maybe": "^0.2.1"
},
"scripts": {
"bootstrap": "lerna bootstrap -- --legacy-peer-deps",
"bootstrap": "lerna bootstrap",
"build": "lerna run build --scope '@bugsnag/node' --scope '@bugsnag/browser' && lerna run build --ignore '@bugsnag/node' --ignore '@bugsnag/browser'",
"build:electron": "lerna run build --scope '@bugsnag/plugin-electron-ipc' --scope '@bugsnag/plugin-electron-app' --scope '@bugsnag/plugin-electron-client-state-persistence'",
"build:react-native-cli": "lerna run build --scope @bugsnag/react-native-cli",
"test:lint": "eslint --ext .ts,.js --report-unused-disable-directives --max-warnings=0 .",
"test:lint-native": "bash scripts/cppcheck.sh",
"test:unit:electron-runner": "xvfb-maybe --auto-servernum -- jest -c config/electron-jest.config.js --rootDir .",
Expand Down
2 changes: 1 addition & 1 deletion test/react-native-cli/features/fixtures/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine
FROM node:18-alpine

RUN apk add git

Expand Down

0 comments on commit 3a09fbb

Please sign in to comment.