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

Sandbox Docker Compose Does Not Build #1969

Open
jamescrowley321 opened this issue Feb 10, 2024 · 0 comments
Open

Sandbox Docker Compose Does Not Build #1969

jamescrowley321 opened this issue Feb 10, 2024 · 0 comments
Assignees

Comments

@jamescrowley321
Copy link
Contributor

Describe the bug
docker-compose.yml is out of date and services do not build.

To Reproduce
cd sandbox && docker compose build
I removed services that were failing, but then the entire

Expected behavior
Services in the sandbox successfully build.

Screenshots

james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog$ cd sandbox/
james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog/sandbox$ docker-compose build
ERROR: build path /home/james/repos/sourcefuse/loopback4-microservice-catalog/sandbox/search-client-example either does not exist, is not accessible, or is not a valid URL.
james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog/sandbox$ docker-compose build
ERROR: build path /home/james/repos/sourcefuse/loopback4-microservice-catalog/sandbox/search-client-example either does not exist, is not accessible, or is not a valid URL.
james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog/sandbox$ docker-compose build
ERROR: Service 'search-ms-example' depends on service 'search-ms-migration' which is undefined.
james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog/sandbox$ docker-compose build
ERROR: build path /home/james/repos/sourcefuse/loopback4-microservice-catalog/sandbox/user-onboarding-example either does not exist, is not accessible, or is not a valid URL.
james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog/sandbox$ docker-compose build
ERROR: build path /home/james/repos/sourcefuse/loopback4-microservice-catalog/sandbox/payment-example/backend either does not exist, is not accessible, or is not a valid URL.
james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog/sandbox$ docker-compose build
ERROR: build path /home/james/repos/sourcefuse/loopback4-microservice-catalog/sandbox/user-tenant-example either does not exist, is not accessible, or is not a valid URL.
james@James-SFUS007:~/repos/sourcefuse/loopback4-microservice-catalog/sandbox$ docker-compose build
redis uses an image, skipping
camunda uses an image, skipping
postgres uses an image, skipping
postgres_orchestrator uses an image, skipping
pgadmin uses an image, skipping
Building notification-socket-example
[+] Building 119.6s (13/13) FINISHED                                                                                                                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                  0.1s
 => => transferring dockerfile: 668B                                                                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                                                                                     0.9s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                                                                                                     0.0s
 => => transferring context: 134B                                                                                                                                                                                     0.0s
 => [internal] load build context                                                                                                                                                                                     0.1s
 => => transferring context: 107.18kB                                                                                                                                                                                 0.0s
 => [1/7] FROM docker.io/library/node:18-alpine@sha256:0085670310d2879621f96a4216c893f92e2ded827e9e6ef8437672e1bd72f437                                                                                               4.7s
 => => resolve docker.io/library/node:18-alpine@sha256:0085670310d2879621f96a4216c893f92e2ded827e9e6ef8437672e1bd72f437                                                                                               0.0s
 => => sha256:3d4a65156edf0208c8421995310d9e662e7ee63e2bcae660efb02f6c4ddef6a9 2.34MB / 2.34MB                                                                                                                        0.3s
 => => sha256:0085670310d2879621f96a4216c893f92e2ded827e9e6ef8437672e1bd72f437 1.43kB / 1.43kB                                                                                                                        0.0s
 => => sha256:aacbcec05180c1dd8c33dba8a9c42b75dbfdd659aa57617497f1ce2c5d83d889 1.16kB / 1.16kB                                                                                                                        0.0s
 => => sha256:c8eb770fbfacf54104162cc9035c478ddb7d8dc15dca5298af028257f1dbdb3f 7.14kB / 7.14kB                                                                                                                        0.0s
 => => sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8 3.41MB / 3.41MB                                                                                                                        0.5s
 => => sha256:eb6c7c29ba4d368f2428cacd291f7821b750fac3b1fb65b937ef855c573cdf97 40.24MB / 40.24MB                                                                                                                      0.7s
 => => sha256:5bdb6c27eb32087b71a9dde411c1f1eeb87563c0445f89db4eb7639d2cf50f45 450B / 450B                                                                                                                            0.5s
 => => extracting sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8                                                                                                                             0.2s
 => => extracting sha256:eb6c7c29ba4d368f2428cacd291f7821b750fac3b1fb65b937ef855c573cdf97                                                                                                                             3.4s
 => => extracting sha256:3d4a65156edf0208c8421995310d9e662e7ee63e2bcae660efb02f6c4ddef6a9                                                                                                                             0.2s
 => => extracting sha256:5bdb6c27eb32087b71a9dde411c1f1eeb87563c0445f89db4eb7639d2cf50f45                                                                                                                             0.0s
 => [2/7] RUN mkdir -p /home/node/app                                                                                                                                                                                 0.7s
 => [3/7] WORKDIR /home/node/app                                                                                                                                                                                      0.1s
 => [4/7] COPY --chown=node package*.json ./                                                                                                                                                                          0.1s
 => [5/7] RUN npm install                                                                                                                                                                                            86.6s
 => [6/7] COPY --chown=node . .                                                                                                                                                                                       0.1s
 => [7/7] RUN npm run build                                                                                                                                                                                          11.1s
 => exporting to image                                                                                                                                                                                               14.7s
 => => exporting layers                                                                                                                                                                                              14.7s
 => => writing image sha256:805520b125d62f09bc5274658b821b3f6e3d1988e664c3fcb8630bc0b685f3a0                                                                                                                          0.0s
 => => naming to localhost:32000/notification-socket-example                                                                                                                                                          0.0s
Building cache-migration
[+] Building 112.9s (12/12) FINISHED                                                                                                                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                  0.0s
 => => transferring dockerfile: 666B                                                                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/node:16-slim                                                                                                                                                       0.5s
 => [internal] load .dockerignore                                                                                                                                                                                     0.0s
 => => transferring context: 134B                                                                                                                                                                                     0.0s
 => [1/7] FROM docker.io/library/node:16-slim@sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f                                                                                                 7.5s
 => => resolve docker.io/library/node:16-slim@sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f                                                                                                 0.0s
 => => sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f 776B / 776B                                                                                                                            0.0s
 => => sha256:549225012a87d35a483af278699980776fc0bca0990a60ad3fd9a303904de32f 1.37kB / 1.37kB                                                                                                                        0.0s
 => => sha256:eb8b8b8a361056a1107428997a0c13a18c013ad612f24e54cb6990e60bfed3ec 7.02kB / 7.02kB                                                                                                                        0.0s
 => => sha256:91f01557fe0da558070d4f24631c94e91a80877a24621b52b8b13009b62d8d96 27.19MB / 27.19MB                                                                                                                      0.7s
 => => sha256:ecdd21ad91a4e69294555b3e56a71a7382a58a9c54b02d9038bcd3821ba3d072 4.18kB / 4.18kB                                                                                                                        0.1s
 => => sha256:72f5a0bbd6d5f85fce35070bd624cf69c2ceb91424afe8a5ed2a02442cdd711c 35.25MB / 35.25MB                                                                                                                      0.8s
 => => sha256:6d65359ecb29ff24f2322d5ad308f0a8a95980706ae2e76315a267474402aa3a 2.73MB / 2.73MB                                                                                                                        0.4s
 => => sha256:a9db6797916ed95aa70dba9828c955247db171807e704ae7b1fb37b7c7e4b0e6 450B / 450B                                                                                                                            0.4s
 => => extracting sha256:91f01557fe0da558070d4f24631c94e91a80877a24621b52b8b13009b62d8d96                                                                                                                             2.9s
 => => extracting sha256:ecdd21ad91a4e69294555b3e56a71a7382a58a9c54b02d9038bcd3821ba3d072                                                                                                                             0.0s
 => => extracting sha256:72f5a0bbd6d5f85fce35070bd624cf69c2ceb91424afe8a5ed2a02442cdd711c                                                                                                                             3.2s
 => => extracting sha256:6d65359ecb29ff24f2322d5ad308f0a8a95980706ae2e76315a267474402aa3a                                                                                                                             0.2s
 => => extracting sha256:a9db6797916ed95aa70dba9828c955247db171807e704ae7b1fb37b7c7e4b0e6                                                                                                                             0.0s
 => [internal] load build context                                                                                                                                                                                     0.1s
 => => transferring context: 44.31kB                                                                                                                                                                                  0.0s
 => [2/7] RUN mkdir -p /home/node/app                                                                                                                                                                                 0.9s
 => [3/7] WORKDIR /home/node/app                                                                                                                                                                                      0.1s
 => [4/7] COPY --chown=node package*.json ./                                                                                                                                                                          0.1s
 => [5/7] RUN npm install                                                                                                                                                                                            80.7s
 => [6/7] COPY --chown=node . .                                                                                                                                                                                       0.1s
 => [7/7] RUN npm run build                                                                                                                                                                                          10.6s
 => exporting to image                                                                                                                                                                                               12.3s
 => => exporting layers                                                                                                                                                                                              12.3s
 => => writing image sha256:63d76b7a1cde8f64ac23dac335510d33a48556fab2aaf4bca6c7484398d7aae8                                                                                                                          0.0s
 => => naming to localhost:32000/cache-example                                                                                                                                                                        0.0s
Building cache-example
[+] Building 0.7s (12/12) FINISHED                                                                                                                                                                          docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                  0.0s
 => => transferring dockerfile: 666B                                                                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/node:16-slim                                                                                                                                                       0.3s
 => [internal] load .dockerignore                                                                                                                                                                                     0.0s
 => => transferring context: 134B                                                                                                                                                                                     0.0s
 => [1/7] FROM docker.io/library/node:16-slim@sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f                                                                                                 0.0s
 => [internal] load build context                                                                                                                                                                                     0.1s
 => => transferring context: 2.36kB                                                                                                                                                                                   0.0s
 => CACHED [2/7] RUN mkdir -p /home/node/app                                                                                                                                                                          0.0s
 => CACHED [3/7] WORKDIR /home/node/app                                                                                                                                                                               0.0s
 => CACHED [4/7] COPY --chown=node package*.json ./                                                                                                                                                                   0.0s
 => CACHED [5/7] RUN npm install                                                                                                                                                                                      0.0s
 => CACHED [6/7] COPY --chown=node . .                                                                                                                                                                                0.0s
 => CACHED [7/7] RUN npm run build                                                                                                                                                                                    0.0s
 => exporting to image                                                                                                                                                                                                0.0s
 => => exporting layers                                                                                                                                                                                               0.0s
 => => writing image sha256:63d76b7a1cde8f64ac23dac335510d33a48556fab2aaf4bca6c7484398d7aae8                                                                                                                          0.0s
 => => naming to localhost:32000/cache-example                                                                                                                                                                        0.0s
Building payment-backend-migration
[+] Building 8.8s (9/11)                                                                                                                                                                                    docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                  0.0s
 => => transferring dockerfile: 663B                                                                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/node:16-alpine                                                                                                                                                     0.3s
 => [internal] load .dockerignore                                                                                                                                                                                     0.0s
 => => transferring context: 134B                                                                                                                                                                                     0.0s
 => [1/7] FROM docker.io/library/node:16-alpine@sha256:a1f9d027912b58a7c75be7716c97cfbc6d3099f3a97ed84aa490be9dee20e787                                                                                               4.9s
 => => resolve docker.io/library/node:16-alpine@sha256:a1f9d027912b58a7c75be7716c97cfbc6d3099f3a97ed84aa490be9dee20e787                                                                                               0.0s
 => => sha256:72e89a86be58c922ed7b1475e5e6f151537676470695dd106521738b060e139d 1.16kB / 1.16kB                                                                                                                        0.0s
 => => sha256:2573171e0124bb95d14d128728a52a97bb917ef45d7c4fa8cfe76bc44aa78b73 6.73kB / 6.73kB                                                                                                                        0.0s
 => => sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de 3.40MB / 3.40MB                                                                                                                        0.1s
 => => sha256:eee371b9ce3ffdbb8aa703b9a14d318801ddc3468f096bb6cfeabbeb715147f9 36.63MB / 36.63MB                                                                                                                      0.8s
 => => sha256:93b3025fe10392717d06ec0d012a9ffa2039d766a322aac899c6831dd93382c2 2.34MB / 2.34MB                                                                                                                        0.2s
 => => sha256:a1f9d027912b58a7c75be7716c97cfbc6d3099f3a97ed84aa490be9dee20e787 1.43kB / 1.43kB                                                                                                                        0.0s
 => => extracting sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de                                                                                                                             0.2s
 => => sha256:d9059661ce70092af66d2773666584fc8addcb78a2be63f720022f4875577ea9 452B / 452B                                                                                                                            0.2s
 => => extracting sha256:eee371b9ce3ffdbb8aa703b9a14d318801ddc3468f096bb6cfeabbeb715147f9                                                                                                                             3.4s
 => => extracting sha256:93b3025fe10392717d06ec0d012a9ffa2039d766a322aac899c6831dd93382c2                                                                                                                             0.2s
 => => extracting sha256:d9059661ce70092af66d2773666584fc8addcb78a2be63f720022f4875577ea9                                                                                                                             0.0s
 => [internal] load build context                                                                                                                                                                                     0.1s
 => => transferring context: 43.01kB                                                                                                                                                                                  0.0s
 => [2/7] RUN mkdir -p /home/node/app                                                                                                                                                                                 0.8s
 => [3/7] WORKDIR /home/node/app                                                                                                                                                                                      0.1s
 => [4/7] COPY --chown=node package*.json ./                                                                                                                                                                          0.1s
 => ERROR [5/7] RUN npm ci                                                                                                                                                                                            2.4s
------
 > [5/7] RUN npm ci:
2.266 npm ERR! code EUSAGE
2.284 npm ERR! 
2.285 npm ERR! The `npm ci` command can only install with an existing package-lock.json or
2.285 npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
2.285 npm ERR! later to generate a package-lock.json file, then try again.
2.285 npm ERR! 
2.285 npm ERR! Clean install a project
2.286 npm ERR! 
2.286 npm ERR! Usage:
2.286 npm ERR! npm ci
2.286 npm ERR! 
2.286 npm ERR! Options:
2.286 npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
2.286 npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
2.286 npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2.286 npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
2.287 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
2.287 npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2.287 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
2.287 npm ERR! 
2.287 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
2.287 npm ERR! 
2.287 npm ERR! Run "npm help ci" for more info
2.297 
2.298 npm ERR! A complete log of this run can be found in:
2.298 npm ERR!     /home/node/.npm/_logs/2024-02-10T20_24_57_311Z-debug-0.log
------
Dockerfile:17
--------------------
  15 |     COPY --chown=node package*.json ./
  16 |     
  17 | >>> RUN npm ci
  18 |     
  19 |     # Bundle app source code
--------------------
ERROR: failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1
ERROR: Service 'payment-backend-migration' failed to build : Build failed

arpit1503khanna added a commit that referenced this issue Apr 1, 2024
arpit1503khanna added a commit that referenced this issue Apr 1, 2024
arpit1503khanna added a commit that referenced this issue Apr 1, 2024
arpit1503khanna added a commit that referenced this issue Apr 1, 2024
arpit1503khanna added a commit that referenced this issue Apr 1, 2024
arpit1503khanna added a commit that referenced this issue Apr 1, 2024
arpit1503khanna added a commit that referenced this issue Apr 1, 2024
arpit1503khanna added a commit that referenced this issue Apr 2, 2024
arpit1503khanna added a commit that referenced this issue Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment