diff --git a/.github/workflows/dapp-ci.yml b/.github/workflows/dapp-ci.yml index 9f6fbefe..cf15e723 100644 --- a/.github/workflows/dapp-ci.yml +++ b/.github/workflows/dapp-ci.yml @@ -47,7 +47,7 @@ jobs: MJ_APIKEY_PRIVATE: ${{ secrets.MAILJET_APIKEY_PRIVATE }} MJ_SENDER: ${{ secrets.MAILJET_SENDER }} MAILGUN_APIKEY: ${{ secrets.MAILGUN_APIKEY }} - WEB3MAIL_WHITELISTED_APPS: ${{ secrets.WEB3MAIL_WHITELISTED_APPS }} + WEB3MAIL_WHITELISTED_APPS: ${{ vars.WEB3MAIL_WHITELISTED_APPS }} steps: - uses: actions/checkout@v4 @@ -60,8 +60,5 @@ jobs: - name: Install Dependencies run: npm ci - - name: Test unit - run: npm run test - - name: Test with coverage run: npm run ctest diff --git a/.github/workflows/dapp-deploy.yml b/.github/workflows/dapp-deploy.yml index fefec8c2..4e0ab224 100644 --- a/.github/workflows/dapp-deploy.yml +++ b/.github/workflows/dapp-deploy.yml @@ -63,13 +63,13 @@ jobs: docker-registry: docker.io sconify-version: '5.9.0-v15' binary: /usr/local/bin/node - command: node /app/src/app.js + command: node host-path: | /etc/hosts /etc/resolv.conf binary-fs: true fs-dir: /app - heap: 1G + heap: 7G dlopen: 1 mprotect: 1 secrets: diff --git a/.github/workflows/dapp-release.yml b/.github/workflows/dapp-release.yml index 1e2b064b..959f704d 100644 --- a/.github/workflows/dapp-release.yml +++ b/.github/workflows/dapp-release.yml @@ -44,13 +44,13 @@ jobs: docker-registry: docker.io sconify-version: '5.9.0-v15' binary: /usr/local/bin/node - command: node /app/src/app.js + command: node host-path: | /etc/hosts /etc/resolv.conf binary-fs: true fs-dir: /app - heap: 1G + heap: 7G dlopen: 1 mprotect: 1 secrets: diff --git a/dapp/Dockerfile b/dapp/Dockerfile index 432de36c..be23f330 100644 --- a/dapp/Dockerfile +++ b/dapp/Dockerfile @@ -1,6 +1,6 @@ -FROM node:20-alpine3.22 +FROM node:20.19-alpine3.22 WORKDIR /app COPY package*.json ./ RUN npm ci --production COPY ./src . -ENTRYPOINT [ "node", "/app/app.js"] +ENTRYPOINT [ "node", "--disable-wasm-trap-handler", "/app/app.js" ] diff --git a/deployment-dapp/src/singleFunction/deployApp.ts b/deployment-dapp/src/singleFunction/deployApp.ts index 1a506cf2..44760f9a 100644 --- a/deployment-dapp/src/singleFunction/deployApp.ts +++ b/deployment-dapp/src/singleFunction/deployApp.ts @@ -27,8 +27,8 @@ export const deployApp = async ({ const mrenclave = { framework: 'SCONE' as any, // workaround framework not auto capitalized version: 'v5.9', - entrypoint: 'node /app/app.js', - heapSize: 1073741824, + entrypoint: 'node --disable-wasm-trap-handler /app/app.js', + heapSize: 7516192768, fingerprint, }; const app = {