fix: adapt Makefile to work on pro platform #8529
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried to make "make build_lang" build the pro platform lang file when we have run source set-env.pro.sh, by loading an extra env.pro environment file (otherwise the env variables set by set-env.pro.sh are overloaded by .env when running the make script I believe).
But it fails later on.
Anyone can help?
stephane@stephane-jaguar-NS50-70MU:~/openfoodfacts-server$ (pro) (pro) (pro) (pro) (pro) make build_lang 🥫 Rebuild language docker-compose --env-file=.env --env-file=env.pro run --rm -e GITHUB_TOKEN= backend perl -I/opt/product-opener/lib -I/opt/perl/local/lib/perl5 /opt/product-opener/scripts/build_lang.pl WARN[0000] volume "po_podata" already exists but was not created for project "po". Use
external: trueto use an existing volume WARN[0000] volume "po_orgs" already exists but was not created for project "po". Use
external: trueto use an existing volume WARN[0000] volume "po_users" already exists but was not created for project "po". Use
external: trueto use an existing volume [+] Running 1/0 ⠿ Container po_pro-memcached-1 Running 0.0s [+] Running 1/2 ⠦ Container po_pro-dynamicfront-1 Starting 0.7s ⠿ Container po_pro-minion-1 Started 0.7s Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/stephane/openfoodfacts-server/gulpfile.js" to rootfs at "/opt/product-opener/gulpfile.js": mount /home/stephane/openfoodfacts-server/gulpfile.js:/opt/product-opener/gulpfile.js (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type make: *** [Makefile:171 : build_lang] Erreur 1