env.sh not found - docker

When running commands to deploy @Novu/web on the dev tag and the prod tag, getting the following error:
@novu/web@0.10.0 envsetup:docker /usr/src/app/apps/web
chmod +x ./env.sh && ./env.sh && mv ./env-config.js ./build/env-config.js

sh: ./env.sh: not found
 ELIFECYCLE  Command failed.
 ELIFECYCLE  Command failed with exit code 1.
@novu/web@0.10.0 envsetup:docker /usr/src/app/apps/web
chmod +x ./env.sh && ./env.sh && mv ./env-config.js ./build/env-config.js

sh: ./env.sh: not found
 ELIFECYCLE  Command failed.
 ELIFECYCLE  Command failed with exit code 1.
when looking, it appears that there are no env.sh files located in the Dockerfile
10 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
dr.really
dr.really2y ago
Full stack:
> nx run @novu/web:"start:static:build"


> @novu/web@0.10.0 start:static:build /usr/src/app/apps/web
> pnpm envsetup:docker && http-server build -p 4200 --proxy http://localhost:4200?


> @novu/web@0.10.0 envsetup:docker /usr/src/app/apps/web
> chmod +x ./env.sh && ./env.sh && mv ./env-config.js ./build/env-config.js

sh: ./env.sh: not found
 ELIFECYCLE  Command failed.
 ELIFECYCLE  Command failed with exit code 1.



> NX Running target "start:static:build" failed

Failed tasks:

- @novu/web:start:static:build

/bin/sh: git: not found
See Nx Cloud run details at https://cloud.nx.app/runs/P9FOiIfJPH

 ELIFECYCLE  Command failed with exit code 1.
> nx run @novu/web:"start:static:build"


> @novu/web@0.10.0 start:static:build /usr/src/app/apps/web
> pnpm envsetup:docker && http-server build -p 4200 --proxy http://localhost:4200?


> @novu/web@0.10.0 envsetup:docker /usr/src/app/apps/web
> chmod +x ./env.sh && ./env.sh && mv ./env-config.js ./build/env-config.js

sh: ./env.sh: not found
 ELIFECYCLE  Command failed.
 ELIFECYCLE  Command failed with exit code 1.



> NX Running target "start:static:build" failed

Failed tasks:

- @novu/web:start:static:build

/bin/sh: git: not found
See Nx Cloud run details at https://cloud.nx.app/runs/P9FOiIfJPH

 ELIFECYCLE  Command failed with exit code 1.
Dima Grossman
Dima Grossman2y ago
Taking a look at it right now Seems like it's caused by moving to the alpine docker images for web I'm creating a fix right now
dr.really
dr.really2y ago
Sounds good, thanks Dima!
Dima Grossman
Dima Grossman2y ago
Should be available on dev and prod tags now 🎉
dr.really
dr.really2y ago
i'll give it a try after the live event today! 🙂
Pawan Jain
Pawan Jain2y ago
@dimagrossman which branch user should use for this fix? I see someone is facing above error in windows docker
Dima Grossman
Dima Grossman2y ago
dev or prod or 0.10.0 tags on ghcr should solve this
rolkool
rolkool2y ago
@dimagrossman i'm having the same issue when running web docker image ghcr.io/novuhq/novu/web:0.10.0 It is reproducible both on my local M1 macbook and on EKS
Dima Grossman
Dima Grossman2y ago
I'm releasing a patch fix today that should handle this 🙏