Skip to content

Commit eb45e38

Browse files
chore: yarn v4 migration (#318)
* migrate to yarn v4 Signed-off-by: Michael Valdron <mvaldron@redhat.com> * change node:22-alpine to quay.io/devfile/universal-developer-image under devfile Signed-off-by: Michael Valdron <mvaldron@redhat.com> * update yarn doc link Signed-off-by: Michael Valdron <mvaldron@redhat.com> * pin corepack@0.34.6 under Dockerfile Signed-off-by: Michael Valdron <mvaldron@redhat.com> * fix: init .yarnrc.yml in Docker build for setting nodeLinker only Signed-off-by: Michael Valdron <mvaldron@redhat.com> * further pin specific npm package versions Signed-off-by: Michael Valdron <mvaldron@redhat.com> --------- Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent b8beee2 commit eb45e38

File tree

12 files changed

+20133
-161632
lines changed

12 files changed

+20133
-161632
lines changed

.devfile.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
schemaVersion: 2.2.0
16+
schemaVersion: 2.2.2
1717
metadata:
1818
name: devfile-web
1919
displayName: Devfile Web Services
@@ -28,7 +28,7 @@ metadata:
2828
- Registry
2929
- Documentation
3030
- devfile.io
31-
version: 1.1.0
31+
version: 1.2.0
3232
components:
3333
- name: image-builder
3434
image:
@@ -41,16 +41,14 @@ components:
4141
attributes:
4242
container-overrides:
4343
securityContext:
44-
runAsUser: 1001
4544
allowPrivilegeEscalation: false
4645
runAsNonRoot: true
4746
capabilities:
4847
drop: ["ALL"]
4948
seccompProfile:
5049
type: "RuntimeDefault"
5150
container:
52-
image: node:22-alpine
53-
command: ['tail', '-f', '/dev/null']
51+
image: quay.io/devfile/universal-developer-image@sha256:99d87fc6f1c9114db7456c419fa4556f63c1c057b6bffde57a1f7429652c7b56
5452
mountSources: true
5553
memoryLimit: "{{memoryLimit}}"
5654
volumeMounts:
@@ -81,7 +79,10 @@ commands:
8179
# Install dependency packages
8280
- id: build
8381
exec:
84-
commandLine: yarn install --frozen-lockfile --global-folder /.yarn
82+
commandLine: yarn install --immutable
83+
env:
84+
- name: PREFIX
85+
value: /.yarn
8586
component: runner
8687
workingDir: ${PROJECT_SOURCE}
8788
hotReloadCapable: true
@@ -121,6 +122,6 @@ variables:
121122
# Profile of the image on quay.io
122123
profile: devfile
123124
# Memory limit on runner, default: 1Gi
124-
memoryLimit: 1Gi
125+
memoryLimit: 2Gi
125126
# Deployment configuration to use
126127
deployConfig: development

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Install
5050
run: |
51-
yarn install --frozen-lockfile
51+
yarn install --immutable
5252
5353
- name: Lint
5454
run: |
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: Install
8383
run: |
84-
yarn install --frozen-lockfile
84+
yarn install --immutable
8585
8686
- name: Build
8787
run: |
@@ -126,7 +126,7 @@ jobs:
126126

127127
- name: Install
128128
run: |
129-
yarn install --frozen-lockfile
129+
yarn install --immutable
130130
131131
- name: Docker Build for linux/amd64
132132
run: |
@@ -159,7 +159,7 @@ jobs:
159159

160160
- name: Install
161161
run: |
162-
yarn install --frozen-lockfile
162+
yarn install --immutable
163163
164164
- name: E2E
165165
run: |

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@ Thumbs.db
4848

4949
.odo/env
5050
.odo/odo-file-index.json
51-
.odo
51+
.odo
52+
53+
# .yarn files
54+
.yarn/install-state.gz
55+
.yarn/cache

0 commit comments

Comments
 (0)