Plan responsible for building Docker images for the 3.x demo and development sites

Build: #252 failed

Job: Build Frontend failed

Stages & jobs

  1. Build

  2. Deploy

Job result summary

Completed
Duration
38 seconds
Revision
91498d2a63dc9e9a5f0a09b1f855958b4d2ce37f 91498d2a63dc9e9a5f0a09b1f855958b4d2ce37f
Fixed in
#253 (Code changes detected)
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.


#7 [auth] library/node:pull token for registry-1.docker.io
#7 DONE 0.0s

#8 [linux/amd64 internal] load metadata for docker.io/library/node:16.17-alpine
#8 ...

#9 [linux/amd64 internal] load metadata for docker.io/library/nginx:1.23-alpine
#9 DONE 0.9s

#8 [linux/amd64 internal] load metadata for docker.io/library/node:16.17-alpine
#8 DONE 1.0s

#10 [linux/arm64 internal] load metadata for docker.io/library/nginx:1.23-alpine
#10 DONE 1.0s

#11 [internal] load build context
#11 DONE 0.0s

#12 [linux/arm64 stage-1 1/7] FROM docker.io/library/nginx:1.23-alpine@sha256:082f8c10bd47b6acc8ef15ae61ae45dd8fde0e9f389a8b5cb23c37408642bf5d
#12 resolve docker.io/library/nginx:1.23-alpine@sha256:082f8c10bd47b6acc8ef15ae61ae45dd8fde0e9f389a8b5cb23c37408642bf5d 0.1s done
#12 DONE 0.1s

#13 [linux/amd64 stage-1 1/7] FROM docker.io/library/nginx:1.23-alpine@sha256:082f8c10bd47b6acc8ef15ae61ae45dd8fde0e9f389a8b5cb23c37408642bf5d
#13 resolve docker.io/library/nginx:1.23-alpine@sha256:082f8c10bd47b6acc8ef15ae61ae45dd8fde0e9f389a8b5cb23c37408642bf5d 0.1s done
#13 DONE 0.1s

#11 [internal] load build context
#11 transferring context: 4.89kB done
#11 DONE 0.1s

#14 [linux/amd64 dev 1/6] FROM docker.io/library/node:16.17-alpine@sha256:88d9d8da697877a4a771a40e5cbc10a12c2ad959e82f3b0f36ef35635e17f693
#14 resolve docker.io/library/node:16.17-alpine@sha256:88d9d8da697877a4a771a40e5cbc10a12c2ad959e82f3b0f36ef35635e17f693 0.1s done
#14 sha256:db3b3dd80de9869465a7f463c57ed1898dd79f9e812279f435c58727ef5e3c80 452B / 452B 0.1s done
#14 sha256:dbe0afc499c9634db29103266fd269b52ac4c89a83c1768f7cc59e9e3adbe124 2.35MB / 2.35MB 0.1s done
#14 sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49 2.81MB / 2.81MB 0.1s done
#14 sha256:5f1f78129e95a84059fd15a09bcc989bda0ad967858512c76e34df70547ad5e9 13.63MB / 36.45MB 0.2s
#14 extracting sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49
#14 extracting sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49 0.1s done
#14 sha256:5f1f78129e95a84059fd15a09bcc989bda0ad967858512c76e34df70547ad5e9 36.45MB / 36.45MB 0.3s done
#14 extracting sha256:5f1f78129e95a84059fd15a09bcc989bda0ad967858512c76e34df70547ad5e9
#14 extracting sha256:5f1f78129e95a84059fd15a09bcc989bda0ad967858512c76e34df70547ad5e9 1.0s done
#14 extracting sha256:dbe0afc499c9634db29103266fd269b52ac4c89a83c1768f7cc59e9e3adbe124 0.1s done
#14 DONE 1.8s

#14 [linux/amd64 dev 1/6] FROM docker.io/library/node:16.17-alpine@sha256:88d9d8da697877a4a771a40e5cbc10a12c2ad959e82f3b0f36ef35635e17f693
#14 extracting sha256:db3b3dd80de9869465a7f463c57ed1898dd79f9e812279f435c58727ef5e3c80 0.0s done
#14 DONE 1.8s

#15 [linux/amd64 dev 2/6] RUN mkdir -p /app
#15 DONE 0.4s

#16 [linux/amd64 dev 3/6] WORKDIR /app
#16 DONE 0.1s

#17 [linux/amd64 dev 4/6] COPY spa-build-config.json .
#17 DONE 0.1s

#18 [linux/amd64 dev 5/6] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#18 0.963 npm WARN exec The following package was not found and will be installed: openmrs@4.0.2-pre.336
#18 31.73 npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
#18 32.21 npm notice
#18 32.21 npm notice New minor version of npm available! 8.15.0 -> 8.19.2
#18 32.21 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.19.2>
#18 32.21 npm notice Run `npm install -g npm@8.19.2` to update!
#18 32.21 npm notice
#18 32.21 npm ERR! code EEXIST
#18 32.21 npm ERR! syscall open
#18 32.21 npm ERR! path /root/.npm/_cacache/tmp/b478fcfa
#18 32.21 npm ERR! errno -17
#18 32.21 npm ERR! EEXIST: file already exists, open '/root/.npm/_cacache/tmp/b478fcfa'
#18 32.21 npm ERR! File exists: /root/.npm/_cacache/tmp/b478fcfa
#18 32.21 npm ERR! Remove the existing file and try again, or run npm
#18 32.21 npm ERR! with --force to overwrite files recklessly.
#18 32.22
#18 32.22 npm ERR! A complete log of this run can be found in:
#18 32.22 npm ERR!     /root/.npm/_logs/2022-09-30T15_05_52_882Z-debug-0.log
#18 ERROR: process "/bin/sh -c npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa" did not complete successfully: exit code: 239
------
> [linux/amd64 dev 5/6] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa:
#18 32.21 npm ERR! syscall open
#18 32.21 npm ERR! path /root/.npm/_cacache/tmp/b478fcfa
#18 32.21 npm ERR! errno -17
#18 32.21 npm ERR! EEXIST: file already exists, open '/root/.npm/_cacache/tmp/b478fcfa'
#18 32.21 npm ERR! File exists: /root/.npm/_cacache/tmp/b478fcfa
#18 32.21 npm ERR! Remove the existing file and try again, or run npm
#18 32.21 npm ERR! with --force to overwrite files recklessly.
#18 32.22
#18 32.22 npm ERR! A complete log of this run can be found in:
#18 32.22 npm ERR!     /root/.npm/_logs/2022-09-30T15_05_52_882Z-debug-0.log
------
Dockerfile:7
--------------------
   5 |     WORKDIR /app
   6 |     COPY spa-build-config.json .
   7 | >>> RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa
   8 |     RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --mode config --config spa-build-config.json --target ./spa
   9 |     
--------------------
error: failed to solve: process "/bin/sh -c npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa" did not complete successfully: exit code: 239