loicjaouen / arches_issues

issues about arches
0 stars 0 forks source link

JS dependencies location error #2

Open loicjaouen opened 1 year ago

loicjaouen commented 1 year ago
docker compose up

complains about:

 => ERROR [stage-2  4/18] COPY ./arches/install/package.json /web_root/arches/arches/install/package.json                                                                                                                                                                            0.0s
 => ERROR [stage-2  5/18] COPY ./arches/install/.yarnrc /web_root/arches/arches/install/.yarnrc                                                                                                                                                                                      0.0s
 => ERROR [stage-2  6/18] COPY ./arches/install/yarn.lock /web_root/arches/arches/install/yarn.lock                                                                                                                                                                                  0.0s
loicjaouen commented 1 year ago

indeed, none of these files exist in the root of the repo:

./arches/install/package.json
./arches/install/.yarnrc
./arches/install/yarn

changing location in Dockerfile:

-COPY ./arches/install/package.json ${ARCHES_ROOT}/arches/install/package.json
-COPY ./arches/install/.yarnrc ${ARCHES_ROOT}/arches/install/.yarnrc
-COPY ./arches/install/yarn.lock ${ARCHES_ROOT}/arches/install/yarn.lock
+COPY ./arches/install/arches-templates/project_name/package.json ${ARCHES_ROOT}/arches/install/package.json
+COPY ./arches/install/arches-templates/project_name/.yarnrc  ${ARCHES_ROOT}/arches/install/.yarnrc
+COPY ./tests/fixtures/testing_prj/testing_prj/yarn.lock  ${ARCHES_ROOT}/arches/install/yarn.lock
loicjaouen commented 1 year ago

see commit: https://github.com/loicjaouen/arches/commit/47f8d00fcc127ff7540ca63f2eece797eeae2a82

loicjaouen commented 1 year ago

I didn't pick the right ones, here it is: https://github.com/loicjaouen/arches/commit/3575dfb66c1575dd0810ab9c13b2afadab7fbf84