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

Version 2.8 does not build (DOCKER) #15

Open
RobertBozic opened this issue Feb 22, 2025 · 0 comments
Open

Version 2.8 does not build (DOCKER) #15

RobertBozic opened this issue Feb 22, 2025 · 0 comments

Comments

@RobertBozic
Copy link

Any hint?
Version 2.7, however, build goes withoout problems


$ git clone -b release/2.8 https://github.com/superdesk/superdesk-sp

Cloning into 'superdesk-sp'...
remote: Enumerating objects: 748, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (142/142), done.
remote: Total 748 (delta 93), reused 30 (delta 12), pack-reused 591 (from 2)
Receiving objects: 100% (748/748), 4.46 MiB | 9.86 MiB/s, done.
Resolving deltas: 100% (366/366), done.

$ cd superdesk-sp
$ docker compose build --no-cache
WARN[0000] networks.default: external.name is deprecated. Please set name and external: true
[+] Building 2050.3s (25/30) docker:default
=> [superdesk-server internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 904B 0.0s
=> [superdesk-server internal] load metadata for docker.io/library/ubuntu:20.04 1.1s
=> [superdesk-server internal] load .dockerignore 0.1s
=> => transferring context: 103B 0.0s
=> [superdesk-server internal] load build context 0.1s
=> => transferring context: 142.17kB 0.0s
=> CACHED [superdesk-server 1/8] FROM docker.io/library/ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b 0.0s
=> [superdesk-server 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 cur 97.9s
=> [superdesk-server 3/8] RUN python3 -m venv "/opt/venv" 2.8s
=> [superdesk-server 4/8] RUN python3 -m pip install -U pip wheel setuptools 8.4s
=> [superdesk-server 5/8] WORKDIR /opt/superdesk/ 0.4s
=> [superdesk-server 6/8] COPY requirements.txt . 0.4s
=> [superdesk-server 7/8] RUN python3 -m pip install -Ur requirements.txt 69.7s
=> [superdesk-server 8/8] COPY . . 0.7s
=> [superdesk-server] exporting to image 14.5s
=> => exporting layers 14.3s
=> => writing image sha256:32f72f0ee1f4a55e97c2f0e3f24a1cf4a35ab220ffb45b8704764e1f1d8a1b00 0.0s
=> => naming to docker.io/library/superdesk-sp-superdesk-server 0.0s
=> [superdesk-client internal] load build definition from Dockerfile 0.4s
=> => transferring dockerfile: 592B 0.0s
=> [superdesk-client internal] load metadata for docker.io/library/nginx:latest 1.1s
=> [superdesk-client internal] load metadata for docker.io/library/node:12 1.2s
=> [superdesk-client internal] load .dockerignore 0.1s
=> => transferring context: 90B 0.0s
=> [superdesk-client internal] load build context 0.1s
=> => transferring context: 15.17kB 0.0s
=> [superdesk-client build 1/5] FROM docker.io/library/node:12@sha256:01627afeb110b3054ba4a1405541ca095c8bfca1cb6f2be9479c767a2711879e 0.0s
=> [superdesk-client stage-1 1/7] FROM docker.io/library/nginx:latest@sha256:91734281c0ebfc6f1aea979cffeed5079cfe786228a71cc6f1f46a228cde6e34 0.0s
=> CACHED [superdesk-client stage-1 2/7] WORKDIR /opt/superdesk/client/dist 0.0s
=> CACHED [superdesk-client build 2/5] WORKDIR /tmp/client 0.0s
=> [superdesk-client build 3/5] COPY . . 0.5s
=> [superdesk-client build 4/5] RUN npm install --no-audit --unsafe-perm 1748.6s
=> ERROR [superdesk-client build 5/5] RUN npm run build 101.9s

[superdesk-client build 5/5] RUN npm run build:
0.955
0.955 > superdesk@ build /tmp/client
0.955 > npx @superdesk/build-tools build-root-repo ./
0.955
9.042 npm WARN annotationsLibrary requires a peer of react@16.8.6 but none is installed. You must install peer dependencies yourself.
9.043
9.044 added 180 packages from 192 contributors in 7.248s
9.130
9.130 31 packages are looking for funding
9.130 run npm fund for details
9.130
9.512
9.512 > @ compile /tmp/client/node_modules/superdesk-core/scripts/extensions/annotationsLibrary
9.512 > tsc -p src
9.512
23.70 npm WARN markForUser requires a peer of react@16.8.6 but none is installed. You must install peer dependencies yourself.
23.70
23.70 added 172 packages from 199 contributors in 10.344s
23.78
23.78 16 packages are looking for funding
23.78 run npm fund for details
23.78
24.10
24.10 > @ compile /tmp/client/node_modules/superdesk-core/scripts/extensions/markForUser
24.10 > tsc -p src
24.10
38.73 npm WARN datetimeField requires a peer of superdesk-ui-framework@3.0.16 but none is installed. You must install peer dependencies yourself.
38.73
38.73 added 178 packages from 171 contributors in 10.651s
38.82
38.82 31 packages are looking for funding
38.82 run npm fund for details
38.82
39.65
39.65 > @ compile /tmp/client/node_modules/superdesk-core/scripts/extensions/datetimeField
39.65 > tsc -p src
39.65
48.23 npm WARN prepublish-on-install As of npm@5, prepublish scripts are deprecated.
48.23 npm WARN prepublish-on-install Use prepare for build steps and prepublishOnly for upload-only.
48.23 npm WARN prepublish-on-install See the deprecation note in npm help scripts for more information.
48.23 npm WARN lifecycle superdesk-planning-extension@~prepublish: cannot run in wd superdesk-planning-extension@ rm -rf dist && npm run compile && cp src/index.css dist (wd=/tmp/client/node_modules/superdesk-planning/client/planning-extension)
48.38 added 204 packages from 175 contributors in 4.355s
48.48
48.48 53 packages are looking for funding
48.48 run npm fund for details
48.48
48.83
48.83 > superdesk-planning-extension@ compile /tmp/client/node_modules/superdesk-planning/client/planning-extension
48.83 > tsc -p src
48.83
54.78 npm WARN deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported
56.63 npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
56.65 npm WARN deprecated eslint@4.19.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
58.20 npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
69.32 npm WARN deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
69.32 npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
76.10 npm notice created a lockfile as package-lock.json. You should commit this file.
76.11 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents):
76.11 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
76.11 npm WARN ts-node@10.9.1 requires a peer of @types/node@* but none is installed. You must install peer dependencies yourself.
76.11
76.12 added 359 packages from 217 contributors in 22.779s
76.29
76.29 97 packages are looking for funding
76.29 run npm fund for details
76.29
76.59
76.59 > superdesk-publisher-extension@ compile /tmp/client/node_modules/superdesk-publisher/client/publisher-extension
76.59 > tsc -p src
76.59
91.69 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
91.69 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
91.69
91.69 added 295 packages from 220 contributors in 11.745s
91.82
91.82 56 packages are looking for funding
91.82 run npm fund for details
91.82
92.16
92.16 > @ compile /tmp/client/node_modules/superdesk-core/scripts/extensions/broadcasting
92.16 > tsc -p ./
92.16
98.32 ../../../../@types/node/http.d.ts(236,47): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(236,71): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(237,5): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(241,46): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(245,46): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(252,44): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(258,39): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(266,46): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(271,57): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(278,43): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(285,49): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(292,43): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(298,38): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(305,40): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(311,51): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(316,50): error TS1005: '(' expected.
98.32 ../../../../@types/node/http.d.ts(316,61): error TS1005: ')' expected.
98.32 ../../../../@types/node/http.d.ts(320,47): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(320,60): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(320,69): error TS1005: '(' expected.
98.32 ../../../../@types/node/http.d.ts(320,71): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(321,5): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(321,7): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(321,107): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(327,47): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(327,71): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(328,5): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(328,7): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(328,15): error TS1434: Unexpected keyword or identifier.
98.32 ../../../../@types/node/http.d.ts(329,37): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(329,73): error TS1005: '(' expected.
98.32 ../../../../@types/node/http.d.ts(329,74): error TS1005: ')' expected.
98.32 ../../../../@types/node/http.d.ts(330,28): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(330,62): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(330,80): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(330,116): error TS1005: '(' expected.
98.32 ../../../../@types/node/http.d.ts(330,117): error TS1005: ')' expected.
98.32 ../../../../@types/node/http.d.ts(345,26): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(345,45): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(345,57): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(345,58): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(346,28): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(346,40): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(346,41): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(421,30): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(421,36): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(427,31): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(427,37): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(428,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(428,44): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(428,70): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(428,71): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(429,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(429,45): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(429,57): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(429,58): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(430,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(430,50): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(430,76): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(430,77): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(431,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(431,45): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(431,67): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(431,68): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(432,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(432,49): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(432,61): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(432,62): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(433,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(433,53): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(433,89): error TS1005: '(' expected.
98.32 ../../../../@types/node/http.d.ts(433,90): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(433,96): error TS1005: ')' expected.
98.32 ../../../../@types/node/http.d.ts(434,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(434,56): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(434,92): error TS1005: '(' expected.
98.32 ../../../../@types/node/http.d.ts(434,93): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(434,99): error TS1005: ')' expected.
98.32 ../../../../@types/node/http.d.ts(435,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(435,51): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(435,96): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(435,97): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(437,18): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(438,21): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(438,96): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(439,10): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(440,26): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(440,51): error TS1005: ',' expected.
98.32 ../../../../@types/node/http.d.ts(440,112): error TS1109: Expression expected.
98.32 ../../../../@types/node/http.d.ts(440,113): error TS1005: ';' expected.
98.32 ../../../../@types/node/http.d.ts(441,26): error TS1005: ',' expected.

....

98.38 ../../../../@types/node/https.d.ts(255,69): error TS1109: Expression expected.
98.38 ../../../../@types/node/https.d.ts(255,70): error TS1005: ';' expected.
98.38 ../../../../@types/node/https.d.ts(256,34): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(256,61): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(256,102): error TS1005: '(' expected.
98.38 ../../../../@types/node/https.d.ts(256,103): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(256,109): error TS1005: ')' expected.
98.38 ../../../../@types/node/https.d.ts(257,34): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(257,64): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(257,105): error TS1005: '(' expected.
98.38 ../../../../@types/node/https.d.ts(257,106): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(257,112): error TS1005: ')' expected.
98.38 ../../../../@types/node/https.d.ts(258,34): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(258,59): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(258,97): error TS1109: Expression expected.
98.38 ../../../../@types/node/https.d.ts(258,98): error TS1005: ';' expected.
98.38 ../../../../@types/node/https.d.ts(260,18): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(261,21): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(261,89): error TS1109: Expression expected.
98.38 ../../../../@types/node/https.d.ts(262,10): error TS1005: ';' expected.
98.38 ../../../../@types/node/https.d.ts(263,34): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(263,55): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(263,96): error TS1005: '(' expected.
98.38 ../../../../@types/node/https.d.ts(263,97): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(263,103): error TS1005: ')' expected.
98.38 ../../../../@types/node/https.d.ts(265,18): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(266,21): error TS1005: ',' expected.
98.38 ../../../../@types/node/https.d.ts(266,89): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(267,10): error TS1005: ';' expected.
98.39 ../../../../@types/node/https.d.ts(308,52): error TS1005: ',' expected.
98.39 ../../../../@types/node/https.d.ts(308,76): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(309,5): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(309,23): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(309,64): error TS1005: '(' expected.
98.39 ../../../../@types/node/https.d.ts(309,65): error TS1005: ')' expected.
98.39 ../../../../@types/node/https.d.ts(309,92): error TS1005: '(' expected.
98.39 ../../../../@types/node/https.d.ts(312,52): error TS1005: ',' expected.
98.39 ../../../../@types/node/https.d.ts(312,76): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(313,5): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(314,16): error TS1005: ')' expected.
98.39 ../../../../@types/node/https.d.ts(314,50): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(315,25): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(315,66): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(316,5): error TS1109: Expression expected.
98.39 ../../../../@types/node/https.d.ts(316,6): error TS1128: Declaration or statement expected.
98.39 ../../../../@types/node/https.d.ts(316,33): error TS1005: '(' expected.
98.39 ../../../../@types/node/stream/web.d.ts(472,56): error TS1005: '?' expected.
98.42 npm ERR! code ELIFECYCLE
98.42 npm ERR! errno 2
98.42 npm ERR! @ compile: tsc -p ./
98.42 npm ERR! Exit status 2
98.42 npm ERR!
98.42 npm ERR! Failed at the @ compile script.
98.42 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
98.47
98.47 npm ERR! A complete log of this run can be found in:
98.47 npm ERR! /root/.npm/_logs/2025-02-22T07_33_29_382Z-debug.log
98.47 Command failed: cd /tmp/client/node_modules/superdesk-core/scripts/extensions/broadcasting && npm install --no-audit && npm run compile --if-present
98.50 npm ERR! code ELIFECYCLE
98.50 npm ERR! errno 1
98.51 npm ERR! superdesk@ build: npx @superdesk/build-tools build-root-repo ./
98.51 npm ERR! Exit status 1
98.51 npm ERR!
98.51 npm ERR! Failed at the superdesk@ build script.
98.51 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
98.54
98.54 npm ERR! A complete log of this run can be found in:
98.54 npm ERR! /root/.npm/_logs/2025-02-22T07_33_29_473Z-debug.log

failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@RobertBozic and others