Need ssl change still, yarnrc doesnt work for install

This commit is contained in:
Dustin Brett 2024-01-10 13:44:56 -08:00
parent a629ae7228
commit 07ea172cdb
4 changed files with 7 additions and 2 deletions

View File

@ -14,7 +14,7 @@ jobs:
with:
node-version: 18
- name: Install Dependencies
run: yarn
run: NODE_OPTIONS='--openssl-legacy-provider' yarn
- name: Run Jest Unit Tests
run: yarn test
- name: Build App

View File

@ -1 +0,0 @@
node-options=--openssl-legacy-provider

View File

@ -1,5 +1,7 @@
FROM node:18-alpine
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN apk add --no-cache git
WORKDIR daedalOS

View File

@ -253,3 +253,7 @@ yarn serve
docker build -t daedalos .
docker run -dp 3000:3000 --rm --name daedalos daedalos
```
##### Notes
- If during `yarn install` you receive the error `digital envelope routines::unsupported`, you need to set `NODE_OPTIONS` to `--openssl-legacy-provider` ([1](https://github.com/DustinBrett/daedalOS/blob/main/Dockerfile#L3), [2](https://github.com/DustinBrett/daedalOS/blob/main/.github/workflows/main.yml#L17), [3](https://stackoverflow.com/a/69699772/5895982))