cerc-io / stack-orchestrator

Read-only mirror of https://git.vdb.to/cerc-io/stack-orchestrator
https://git.vdb.to/cerc-io/stack-orchestrator
GNU Affero General Public License v3.0
29 stars 19 forks source link

build-webapp succeeds even though it should fail #632

Closed zramsay closed 9 months ago

zramsay commented 11 months ago
# laconic-so build-webapp --source-repo ~/cerc/osmosis-frontend/
Dev Root is: /root/cerc
Building: cerc/nextjs-base
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

Sending build context to Docker daemon  13.82kB
Step 1/11 : ARG VARIANT=18-bullseye
Step 2/11 : FROM node:${VARIANT}
 ---> 9aa53f577504
Step 3/11 : ARG USERNAME=node
 ---> Using cache
 ---> 94dcf1f8f233
Step 4/11 : ARG NPM_GLOBAL=/usr/local/share/npm-global
 ---> Using cache
 ---> 5556d3a43af0
Step 5/11 : ENV PATH=${NPM_GLOBAL}/bin:${PATH}
 ---> Using cache
 ---> 5bdbc304e00f
Step 6/11 : ENV NPM_CONFIG_UPDATE_NOTIFIER=false
 ---> Using cache
 ---> 080ea6e6df14
Step 7/11 : RUN     if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi     && usermod -a -G npm ${USERNAME}     && umask 0002     && mkdir -p ${NPM_GLOBAL}     && touch /usr/local/etc/npmrc     && chown ${USERNAME}:npm ${NPM_GLOBAL} /usr/local/etc/npmrc     && chmod g+s ${NPM_GLOBAL}     && npm config -g set prefix ${NPM_GLOBAL}     && su ${USERNAME} -c "npm config -g set prefix ${NPM_GLOBAL}"     && su ${USERNAME} -c "umask 0002 && npm install -g eslint"     && npm cache clean --force > /dev/null 2>&1
 ---> Using cache
 ---> 176d24ed79d9
Step 8/11 : RUN apt-get update && export DEBIAN_FRONTEND=noninteractive     && apt-get -y install --no-install-recommends jq gettext-base
 ---> Using cache
 ---> 05b2d948080a
Step 9/11 : COPY /scripts /scripts
 ---> Using cache
 ---> 88b2324130e2
Step 10/11 : EXPOSE 3000
 ---> Using cache
 ---> 9ff5b16f53eb
Step 11/11 : CMD ["/scripts/start-serving-app.sh"]
 ---> Using cache
 ---> ef5e2778bc1d
Successfully built ef5e2778bc1d
Successfully tagged cerc/nextjs-base:local
Building: cerc/nextjs-base
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

Sending build context to Docker daemon  1.483GB
Sending build context to Docker daemon  2.234GB
Step 1/5 : FROM cerc/nextjs-base:local
 ---> ef5e2778bc1d
Step 2/5 : WORKDIR /app
 ---> Using cache
 ---> 8e652ed42be6
Step 3/5 : COPY . .
 ---> 8056bbe078a7
Step 4/5 : RUN rm -rf node_modules build .next*
 ---> Running in 930fd7eec1fd
Removing intermediate container 930fd7eec1fd
 ---> f97621d838bb
Step 5/5 : RUN /scripts/build-app.sh /app
 ---> Running in 3331c70b1cbf
cp: cannot stat 'next.config.js': No such file or directory

added 52 packages in 3s

13 packages are looking for funding
  run `npm fund` for details
Unable to open path "next.config.dist"
Run `js-beautify -h` for help.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @osmosis-labs/web@5.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from @osmosis-labs/web@5.1.0
npm ERR!   packages/web
npm ERR!     @osmosis-labs/web@5.1.0
npm ERR!     node_modules/@osmosis-labs/web
npm ERR!       workspace packages/web from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17" from mobx-react-lite@3.2.3
npm ERR! node_modules/mobx-react-lite
npm ERR!   mobx-react-lite@"^3.2.2" from @osmosis-labs/web@5.1.0
npm ERR!   packages/web
npm ERR!     @osmosis-labs/web@5.1.0
npm ERR!     node_modules/@osmosis-labs/web
npm ERR!       workspace packages/web from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /root/.npm/_logs/2023-11-08T21_00_22_182Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-11-08T21_00_22_182Z-debug-0.log
head: unrecognized option '--1'
Try 'head --help' for more information.
tail: unrecognized option '--1'
Try 'tail --help' for more information.

> osmosis-frontend@0.0.1 build
> turbo build

sh: 1: turbo: not found
Removing intermediate container 3331c70b1cbf
 ---> a722edbf6aaf
Successfully built a722edbf6aaf
Successfully tagged cerc/osmosis-frontend:local
telackey commented 9 months ago

Does this still happen?

telackey commented 9 months ago

Looks like it should not:

[3/5] Fetching packages...
error @axelar-network/axelar-cgp-solidity@4.5.0: The engine "node" is incompatible with this module. Expected version "^16.0.0 || ^18.0.0". Got "20.10.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c /scripts/build-app.sh /app' returned a non-zero code: 1