Skip to content

Commit 9778f4f

Browse files
Merge pull request #6 from wking/yarn-update-and-hermetic-builds
NO-JIRA: Yarn update and hermetic builds
2 parents 99327dd + 18fe5e9 commit 9778f4f

5 files changed

Lines changed: 316 additions & 294 deletions

File tree

Lines changed: 288 additions & 288 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
enableInlineBuilds: true
2+
3+
enableScripts: false
4+
5+
enableTelemetry: false
6+
7+
httpTimeout: 600000
8+
19
nodeLinker: node-modules
210

3-
yarnPath: .yarn/releases/yarn-4.13.0.cjs
11+
supportedArchitectures:
12+
os: ["linux", "darwin"]
13+
cpu: ["x64", "arm64", "s390x", "ppc64"]
14+
15+
yarnPath: .yarn/releases/yarn-4.14.1.cjs

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM registry.access.redhat.com/ubi9/nodejs-22:latest AS build
22
USER root
3-
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
4-
RUN npm i -g corepack && corepack enable
3+
4+
ENV CYPRESS_INSTALL_BINARY=0
55

66
ADD . /usr/src/app
77
WORKDIR /usr/src/app
8-
RUN yarn install --immutable && yarn build
8+
9+
RUN LOCAL_YARN="node $(awk '/yarnPath:/{print $2}' .yarnrc.yml)" && \
10+
$LOCAL_YARN install --immutable && $LOCAL_YARN build
911

1012
FROM registry.access.redhat.com/ubi9/nginx-120:latest
1113

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
"webpack-cli": "^6.0.1",
7878
"webpack-dev-server": "^5.2.3"
7979
},
80+
"dependenciesMeta": {
81+
"cypress": {
82+
"built": true
83+
}
84+
},
8085
"consolePlugin": {
8186
"name": "cluster-update-console-plugin",
8287
"version": "0.0.1",
@@ -89,5 +94,5 @@
8994
"@console/pluginAPI": "^4.21.0"
9095
}
9196
},
92-
"packageManager": "yarn@4.13.0"
97+
"packageManager": "yarn@4.14.1"
9398
}

yarn.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Manual changes might be lost - proceed with caution!
33

44
__metadata:
5-
version: 8
5+
version: 9
66
cacheKey: 10c0
77

88
"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.27.1, @babel/code-frame@npm:^7.28.6, @babel/code-frame@npm:^7.29.0":
@@ -5443,6 +5443,9 @@ __metadata:
54435443
webpack: "npm:^5.100.0"
54445444
webpack-cli: "npm:^6.0.1"
54455445
webpack-dev-server: "npm:^5.2.3"
5446+
dependenciesMeta:
5447+
cypress:
5448+
built: true
54465449
languageName: unknown
54475450
linkType: soft
54485451

0 commit comments

Comments
 (0)