You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error, when using docker to install Superdesk.
When i use docker-compose docker-compose up -d i het this error. Tried on a Ubuntu 22.10, 22.04, with Node12 and with Node 14 - i get same error.
Please, help me solve this.
root@superdesk-v2:/opt/superdesk# docker-compose build --no-cache
redis uses an image, skipping
elastic uses an image, skipping
mongodb uses an image, skipping
Building superdesk-server
[+] Building 180.5s (13/13) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 869B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 103B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:20.04 1.2s
=> [internal] load build context 0.1s
=> => transferring context: 3.86MB 0.1s
=> [1/8] FROM docker.io/library/ubuntu:20.04@sha256:c9820a44b950956a790c354700c1166a7ec648bc0d215fa438d3a339812f1d01 2.2s
=> => resolve docker.io/library/ubuntu:20.04@sha256:c9820a44b950956a790c354700c1166a7ec648bc0d215fa438d3a339812f1d01 0.0s
=> => sha256:c9820a44b950956a790c354700c1166a7ec648bc0d215fa438d3a339812f1d01 1.13kB / 1.13kB 0.0s
=> => sha256:8c38f4ea0b178a98e4f9f831b29b7966d6654414c1dc008591c6ec77de3bf2c9 424B / 424B 0.0s
=> => sha256:14be0685b7682b182af5b862c9638cb1cb4ca1a70bd5aa90deed96e9cca881e7 2.30kB / 2.30kB 0.0s
=> => sha256:01085d60b3a624c06a7132ff0749efc6e6565d9f2531d7685ff559fb5d0f669f 27.51MB / 27.51MB 0.5s
=> => extracting sha256:01085d60b3a624c06a7132ff0749efc6e6565d9f2531d7685ff559fb5d0f669f 1.5s
=> [2/8] RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-dev python3-pip python3-venv git gcc mongo-tools mongodb-clients curl libxml2-dev libxslt-dev libjpeg-dev zlib1g-dev libmagic-dev && rm -rf 90.9s
=> [3/8] RUN python3 -m venv "/opt/venv" 3.1s
=> [4/8] RUN python3 -m pip install -U pip wheel setuptools 7.5s
=> [5/8] WORKDIR /opt/superdesk/ 0.0s
=> [6/8] COPY requirements.txt . 0.1s
=> [7/8] RUN python3 -m pip install -Ur requirements.txt 69.8s
=> [8/8] COPY . . 0.2s
=> exporting to image 5.3s
=> => exporting layers 5.3s
=> => writing image sha256:96b8c1c791797283c5b16667448a6a75f139712e213f85ef54836d93b8837314 0.0s
=> => naming to docker.io/sourcefabricoss/superdesk-server:latest 0.0s
Building superdesk-client
[+] Building 1724.5s (12/17)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 90B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 592B 0.0s
=> [internal] load metadata for docker.io/library/nginx:latest 0.7s
=> [internal] load metadata for docker.io/library/node:12 0.7s
=> [build 1/5] FROM docker.io/library/node:12@sha256:01627afeb110b3054ba4a1405541ca095c8bfca1cb6f2be9479c767a2711879e 0.0s
=> [stage-1 1/7] FROM docker.io/library/nginx@sha256:67b0768bd38e3fb2fdfc42550f55e7c8fef59e198cd03ca68f8590b3ef336320 0.0s
=> => resolve docker.io/library/nginx@sha256:67b0768bd38e3fb2fdfc42550f55e7c8fef59e198cd03ca68f8590b3ef336320 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 364B 0.0s
=> CACHED [build 2/5] WORKDIR /tmp/client 0.0s
=> [build 3/5] COPY . . 0.1s
=> CACHED [stage-1 2/7] WORKDIR /opt/superdesk/client/dist 0.0s
=> [build 4/5] RUN npm install --no-audit --unsafe-perm 1709.6s
=> ERROR [build 5/5] RUN npm run build 14.0s
------
> [build 5/5] RUN npm run build:
#0 0.723
#0 0.723 > superdesk@ build /tmp/client
#0 0.723 > npx @superdesk/build-tools build-root-repo ./
#0 0.723
#0 8.457 npm WARN annotationsLibrary requires a peer of react@16.8.6 but none is installed. You must install peer dependencies yourself.
#0 8.472
#0 8.474 added 180 packages from 192 contributors in 6.513s
#0 8.585
#0 8.585 31 packages are looking for funding
#0 8.585 run `npm fund` for details
#0 8.585
#0 8.981
#0 8.981 > @ compile /tmp/client/node_modules/superdesk-core/scripts/extensions/annotationsLibrary
#0 8.981 > tsc -p src
#0 8.981
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(830,34): error TS1005: '?' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(831,17): error TS1005: ':' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(832,17): error TS1005: ',' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(835,34): error TS1005: '?' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(836,17): error TS1005: ':' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(837,17): error TS1005: ',' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(837,26): error TS1005: ',' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(838,5): error TS1109: Expression expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(842,24): error TS1005: ',' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(846,35): error TS1005: ',' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(852,39): error TS1005: ',' expected.
#0 13.58 ../../../../@types/node/ts4.8/test.d.ts(856,21): error TS1005: ',' expected.
#0 13.59 ../../../../@types/node/ts4.8/test.d.ts(861,19): error TS1005: ',' expected.
#0 13.59 ../../../../@types/node/ts4.8/test.d.ts(861,27): error TS1005: ':' expected.
#0 13.59 ../../../../@types/node/ts4.8/test.d.ts(861,36): error TS1005: ',' expected.
#0 13.59 ../../../../@types/node/ts4.8/test.d.ts(861,55): error TS1005: '{' expected.
#0 13.59 ../../../../@types/node/ts4.8/test.d.ts(861,64): error TS1005: ',' expected.
#0 13.59 ../../../../@types/node/ts4.8/test.d.ts(861,77): error TS1005: ',' expected.
#0 13.59 ../../../../@types/node/ts4.8/test.d.ts(865,22): error TS1005: ',' expected.
#0 13.62 npm ERR! code ELIFECYCLE
#0 13.62 npm ERR! errno 2
#0 13.62 npm ERR! @ compile: `tsc -p src`
#0 13.62 npm ERR! Exit status 2
#0 13.62 npm ERR!
#0 13.62 npm ERR! Failed at the @ compile script.
#0 13.62 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#0 13.63
#0 13.63 npm ERR! A complete log of this run can be found in:
#0 13.63 npm ERR! /root/.npm/_logs/2023-07-04T07_54_37_075Z-debug.log
#0 13.64 Command failed: cd /tmp/client/node_modules/superdesk-core/scripts/extensions/annotationsLibrary && npm install --no-audit && npm run compile --if-present
#0 13.68 npm ERR! code ELIFECYCLE
#0 13.68 npm ERR! errno 1
#0 13.68 npm ERR! superdesk@ build: `npx @superdesk/build-tools build-root-repo ./`
#0 13.68 npm ERR! Exit status 1
#0 13.69 npm ERR!
#0 13.69 npm ERR! Failed at the superdesk@ build script.
#0 13.69 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#0 13.69
#0 13.70 npm ERR! A complete log of this run can be found in:
#0 13.70 npm ERR! /root/.npm/_logs/2023-07-04T07_54_37_137Z-debug.log
------
Dockerfile:8
--------------------
6 | COPY . .
7 | RUN npm install --no-audit --unsafe-perm
8 | >>> RUN npm run build
9 |
10 | # DEPLOY
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
ERROR: Service 'superdesk-client' failed to build : Build failed
root@superdesk-v2:/opt/superdesk# ls -la client/
The text was updated successfully, but these errors were encountered:
I get an error, when using docker to install Superdesk.
When i use docker-compose
docker-compose up -d
i het this error. Tried on a Ubuntu 22.10, 22.04, with Node12 and with Node 14 - i get same error.Please, help me solve this.
The text was updated successfully, but these errors were encountered: