NovuN
Novu2y ago
7 replies
adnanjpg

run locally using docker

I've added a local provider to novu that will be used for our project. I'm able to run the project locally using the 'Run Novu in local machine' guide, but I want to containarize the project and run it on my dev server, but I see there's no guide on how to do this, and no dockerfile that builds clean images of all projects

I've tried running this command:
pnpm i -f && pnpm run docker:build


but is is failing with this error:
apps/ws docker:build: 2.946  ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In libs/application-generic: "@novu/framework@workspace:*" is in the dependencies but no package named "@novu/framework" is present in the workspace
apps/ws docker:build: 2.946 This error happened while installing a direct dependency of /usr/src/app/libs/application-generic
apps/ws docker:build: 2.946 Packages found in the workspace: root, @novu/ws, @novu/application-generic, @novu/dal, @novu/shared, @novu/testing, @novu/client, @novu/node, @novu/providers, @novu/stateless
apps/ws docker:build: ------
apps/ws docker:build: Dockerfile:32
apps/ws docker:build: --------------------
apps/ws docker:build:   31 |     
apps/ws docker:build:   32 | >>> RUN --mount=type=secret,id=BULL_MQ_PRO_NPM_TOKEN,uid=1000 export BULL_MQ_PRO_NP1 | >>>     pnpm install --verbose && \
apps/ws docker:build:   34 | >>>     pnpm build:ws
apps/ws docker:build:   35 |     
apps/ws docker:build: --------------------
apps/ws docker:build: ERROR: failed to solve: process "/bin/sh -c export BULL_MQ_PRO_NPM_TOKEN=$(cat /run/secrets/BULL_MQ_PRO_NPM_TOKEN) &&     pnpm install --verbose &&     pnpm build:ws" did not complete successfully: exit code: 1
apps/ws docker:build: Failed
/home/username/novu/apps/ws:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @novu/[email protected] docker:build: `BULL_MQ_PRO_NPM_TOKEN=${BULL_MQ_PRO_NPM_TOKEN} docker buildx build --secret id=BULL_MQ_PRO_NPM_TOKEN -f ./Dockerfile -t novu-ws ./../.. --load $DOCKER_BUILD_ARGUMENTS`
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.
Was this page helpful?