Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Web build failed #243

Open
Marc-9 opened this issue Nov 19, 2022 · 0 comments
Open

Docker Web build failed #243

Marc-9 opened this issue Nov 19, 2022 · 0 comments

Comments

@Marc-9
Copy link

Marc-9 commented Nov 19, 2022

By following the steps in https://github.com/aantron/dream/tree/master/example/z-docker-esy#files
Running bash deploy.sh fails on step 7

https://github.com/aantron/dream/tree/master/example/z-docker-esy#files

Step 7/16 : RUN [ -f esy.lock ] || node_modules/.bin/esy solve
 ---> Running in 7f69619a797f
info solve 0.6.12-dev (using esy.json)
info checking https://github.com/ocaml/opam-repository for updates...
info checking https://github.com/esy-ocaml/esy-opam-override for updates...
info resolving esy packages: done
error: error running command: '/build/node_modules/esy/3/i/esy-71a059e4/lib/esy/esySolveCudfCommand' '--strategy=-count[staleness,solution]' '--timeout=60.' '/tmp/esy-14ddec/in.cudf' '/tmp/esy-14ddec/out.cudf'
  
esy: exiting due to errors above
The command '/bin/sh -c [ -f esy.lock ] || node_modules/.bin/esy solve' returned a non-zero code: 1
ERROR: Service 'web' failed to build : Build failed

Possible reasons

I could not understand what was trying to be conveyed in the first command of the Deploy section
$ rsync -rlv . build@my-droplet:app --exclude _esy --exclude node_modules
So I just moved over all the files found in
https://github.com/aantron/dream/tree/master/example/z-docker-esy#files
Then ran bash deploy.sh

Commenting out the line from the Dockerfile just leads to an error in the next line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants