mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-27 19:16:44 +00:00
[Docker] Update node version (#9383)
* Update node version * Install nvm * Use n instead of nvm * Use same approach in devcontainer * nvm -> npm * Split commands * Fix typo * Workaround : install bash * Tweak playwright tests * Bump number of retries * Update deps * Only one worker * SEcurity fix * Adjust
This commit is contained in:
parent
c4cf9ecd94
commit
99ec486b79
@ -33,6 +33,9 @@ RUN apt update && apt install -y \
|
||||
RUN apt install -y \
|
||||
yarn nodejs npm
|
||||
|
||||
# Update to the latest stable node version
|
||||
RUN npm install -g n --ignore-scripts && n lts
|
||||
|
||||
RUN yarn config set network-timeout 600000 -g
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "./init.sh"]
|
||||
|
@ -107,7 +107,9 @@ RUN ./install_build_packages.sh --no-cache --virtual .build-deps && \
|
||||
# Frontend builder image:
|
||||
FROM prebuild AS frontend
|
||||
|
||||
RUN apk add --no-cache --update nodejs npm yarn
|
||||
RUN apk add --no-cache --update nodejs npm yarn bash
|
||||
RUN npm install -g --ignore-scripts n
|
||||
RUN bash -c "n lts"
|
||||
RUN yarn config set network-timeout 600000 -g
|
||||
COPY src ${INVENTREE_HOME}/src
|
||||
COPY tasks.py ${INVENTREE_HOME}/tasks.py
|
||||
@ -149,7 +151,9 @@ RUN pip install --require-hashes -r base_requirements.txt --no-cache
|
||||
|
||||
# Install nodejs / npm / yarn
|
||||
|
||||
RUN apk add --no-cache --update nodejs npm yarn
|
||||
RUN apk add --no-cache --update nodejs npm yarn bash
|
||||
RUN npm install -g --ignore-scripts n
|
||||
RUN bash -c "n lts"
|
||||
RUN yarn config set network-timeout 600000 -g
|
||||
|
||||
# The development image requires the source code to be mounted to /home/inventree/
|
||||
|
@ -77,6 +77,7 @@
|
||||
"@babel/core": "^7.26.10",
|
||||
"@babel/preset-react": "^7.26.3",
|
||||
"@babel/preset-typescript": "^7.27.0",
|
||||
"@babel/runtime": "^7.27.0",
|
||||
"@codecov/vite-plugin": "^1.9.0",
|
||||
"@lingui/babel-plugin-lingui-macro": "^5.3.0",
|
||||
"@lingui/cli": "^5.3.0",
|
||||
@ -93,6 +94,7 @@
|
||||
"@vitejs/plugin-react": "^4.3.4",
|
||||
"babel-plugin-macros": "^3.1.0",
|
||||
"nyc": "^17.1.0",
|
||||
"rollup": "^4.0.0",
|
||||
"rollup-plugin-license": "^3.5.3",
|
||||
"typescript": "^5.8.2",
|
||||
"vite": "^6.2.3",
|
||||
|
@ -5,8 +5,8 @@ export default defineConfig({
|
||||
fullyParallel: true,
|
||||
timeout: 90000,
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
workers: process.env.CI ? 3 : undefined,
|
||||
retries: process.env.CI ? 3 : 0,
|
||||
workers: 1, // process.env.CI ? 3 : undefined,
|
||||
reporter: process.env.CI ? [['html', { open: 'never' }], ['github']] : 'list',
|
||||
|
||||
/* Configure projects for major browsers */
|
||||
|
@ -22,6 +22,7 @@ test('Parts - Tabs', async ({ page }) => {
|
||||
// Select a particular part from the table
|
||||
await clearTableFilters(page);
|
||||
await page.getByPlaceholder('Search').fill('1551');
|
||||
await page.waitForLoadState('networkidle');
|
||||
await page.getByText('1551ABK').click();
|
||||
|
||||
await loadTab(page, 'Allocations');
|
||||
|
@ -64,6 +64,7 @@ test('Plugins - Functionality', async ({ page, request }) => {
|
||||
await navigate(page, 'settings/admin/plugin/');
|
||||
await clearTableFilters(page);
|
||||
await page.getByPlaceholder('Search').fill('sample');
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
// Activate the plugin
|
||||
const cell = await page.getByText('Sample API Caller', { exact: true });
|
||||
|
@ -510,6 +510,13 @@
|
||||
dependencies:
|
||||
regenerator-runtime "^0.14.0"
|
||||
|
||||
"@babel/runtime@^7.27.0":
|
||||
version "7.27.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.27.0.tgz#fbee7cf97c709518ecc1f590984481d5460d4762"
|
||||
integrity sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==
|
||||
dependencies:
|
||||
regenerator-runtime "^0.14.0"
|
||||
|
||||
"@babel/template@^7.25.0":
|
||||
version "7.25.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a"
|
||||
@ -4441,7 +4448,7 @@ rollup-plugin-license@^3.5.3:
|
||||
spdx-expression-validate "~2.0.0"
|
||||
spdx-satisfies "~5.0.1"
|
||||
|
||||
rollup@^4.30.1:
|
||||
rollup@^4.0.0, rollup@^4.30.1:
|
||||
version "4.37.0"
|
||||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.37.0.tgz#e4172f8bdb6ea7df08a1b0acf99abeccb2250378"
|
||||
integrity sha512-iAtQy/L4QFU+rTJ1YUjXqJOJzuwEghqWzCEYD2FEghT7Gsy1VdABntrO4CLopA5IkflTyqNiLNwPcOJ3S7UKLg==
|
||||
|
Loading…
x
Reference in New Issue
Block a user