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

Build: #2051 failed

Job: Build Frontend failed

Job result summary

Completed
Duration
2 minutes
Agent
xindi.openmrs.org
Revision
910d062880938ed0291eb98a5e80610b09f3ad0e 910d062880938ed0291eb98a5e80610b09f3ad0e
Fixed in
#2063 (Manual run by Github Actions)
Number of retries
1
No failed test found. A possible compilation error occurred.

Error summary

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

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.13kB done
#1 DONE 0.0s

#2 [auth] docker/dockerfile:pull token for registry-1.docker.io
#2 DONE 0.0s

#3 resolve image config for docker.io/docker/dockerfile:1.3
#3 DONE 0.3s

#4 docker-image://docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
#4 resolve docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2 0.0s done
#4 CACHED

#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s

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

#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:18-alpine
#8 DONE 0.3s

#9 [linux/arm64 internal] load metadata for docker.io/library/nginx:1.25-alpine
#9 DONE 0.2s

#10 [linux/amd64 internal] load metadata for docker.io/library/nginx:1.25-alpine
#10 DONE 0.2s

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

#12 [linux/amd64 dev 1/7] FROM docker.io/library/node:18-alpine@sha256:4bdb3f3105718f0742bc8d64bb4e36e8f955ebbee295325e40ae80bc8ef78833
#12 resolve docker.io/library/node:18-alpine@sha256:4bdb3f3105718f0742bc8d64bb4e36e8f955ebbee295325e40ae80bc8ef78833 0.1s done
#12 DONE 0.1s

#13 [linux/arm64 stage-1 1/7] FROM docker.io/library/nginx:1.25-alpine@sha256:3923f8de8d2214b9490e68fd6ae63ea604deddd166df2755b788bef04848b9bc
#13 resolve docker.io/library/nginx:1.25-alpine@sha256:3923f8de8d2214b9490e68fd6ae63ea604deddd166df2755b788bef04848b9bc 0.1s done
#13 DONE 0.1s

#11 [internal] load build context
#11 transferring context: 5.38kB done
#11 DONE 0.0s

#12 [linux/amd64 dev 1/7] FROM docker.io/library/node:18-alpine@sha256:4bdb3f3105718f0742bc8d64bb4e36e8f955ebbee295325e40ae80bc8ef78833
#12 DONE 0.1s

#14 [linux/amd64 stage-1 1/7] FROM docker.io/library/nginx:1.25-alpine@sha256:3923f8de8d2214b9490e68fd6ae63ea604deddd166df2755b788bef04848b9bc
#14 resolve docker.io/library/nginx:1.25-alpine@sha256:3923f8de8d2214b9490e68fd6ae63ea604deddd166df2755b788bef04848b9bc 0.1s done
#14 DONE 0.1s

#15 [linux/amd64 dev 2/7] RUN mkdir -p /app
#15 CACHED

#16 [linux/amd64 dev 3/7] WORKDIR /app
#16 CACHED

#17 [linux/amd64 dev 4/7] COPY spa-build-config.json .
#17 CACHED

#18 [linux/amd64 dev 5/7] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-build-config.json --target ./spa
#18 1.350 npm WARN exec The following package was not found and will be installed: openmrs@5.3.1-pre.1206
#18 41.37 npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
#18 41.91 npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
#18 42.97 npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
#18 43.74 npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
#18 46.11 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 75.88 [openmrs] Reading configuration ...
#18 75.89 [openmrs] Assembling the importmap ...
#18 81.27 npm notice
#18 81.27 npm notice New patch version of npm available! 10.2.3 -> 10.2.4
#18 81.27 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.4>
#18 81.27 npm notice Run `npm install -g npm@10.2.4` to update!
#18 81.28 npm notice
#18 DONE 81.7s

#19 [linux/amd64 dev 6/7] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#19 3.276 npm WARN exec The following package was not found and will be installed: openmrs@5.3.1-pre.1206
#19 6.939 [openmrs] Running build process ...
#19 42.19 [openmrs] undefined
#19 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: 1
------
> [linux/amd64 dev 6/7] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa:
#19 3.276 npm WARN exec The following package was not found and will be installed: openmrs@5.3.1-pre.1206
#19 6.939 [openmrs] Running build process ...
#19 42.19 [openmrs] undefined
------
Dockerfile:13
--------------------
  11 |     ARG CACHE_BUST
  12 |     RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-build-config.json --target ./spa
  13 | >>> RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa
  14 |     RUN if [ ! -f ./spa/index.html ]; then echo 'Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on.'; exit 1; fi
  15 |     
--------------------
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: 1