chrisschneider / backstage-openshift-example Goto Github PK
View Code? Open in Web Editor NEWExample of deploying backstage to OpenShift
Example of deploying backstage to OpenShift
I cannot build the image using this command docker build -t backstage-openshift-example --platform linux/amd64 .
as some files are missing
310.4 /usr/bin/ld: cannot find -lz
310.4 /usr/bin/ld: cannot find -lbrotlidec
310.4 /usr/bin/ld: cannot find -lbrotlienc
310.4 /usr/bin/ld: cannot find -lcrypto
310.4 /usr/bin/ld: cannot find -lssl
Full stacktrace
[+] Building 400.1s (13/22) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.49kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 148B 0.0s
=> [internal] load metadata for registry.access.redhat.com/ubi8/nodejs-18-minimal:latest 1.8s
=> [stage-2 1/7] FROM registry.access.redhat.com/ubi8/nodejs-18-minimal@sha256:4ba86d719b785b518ea53e196e3db09e7ed7cb949d01beb6ae09279cbfc6418f 8.8s
=> => resolve registry.access.redhat.com/ubi8/nodejs-18-minimal@sha256:4ba86d719b785b518ea53e196e3db09e7ed7cb949d01beb6ae09279cbfc6418f 0.0s
=> => sha256:a32b49dda4e1289b71edd12dae482665bfa4988c22edc50dd820413e8724eb11 14.02kB / 14.02kB 0.0s
=> => sha256:b08c51af1a038ce2a6ca7097b2fbc332c78d5e0e85f2049859341da594558f63 39.34MB / 39.34MB 5.3s
=> => sha256:ec69ec90a962e5b8eaf20c92bc70f49f025e327bc049533e8c87f7cc9f6c1b29 38.22MB / 38.22MB 7.8s
=> => sha256:4ba86d719b785b518ea53e196e3db09e7ed7cb949d01beb6ae09279cbfc6418f 1.47kB / 1.47kB 0.0s
=> => sha256:5912cf991fe188dec855ad284b13d26811a731bea0162de4757830a2ebd27dfd 595B / 595B 0.0s
=> => extracting sha256:b08c51af1a038ce2a6ca7097b2fbc332c78d5e0e85f2049859341da594558f63 0.7s
=> => extracting sha256:ec69ec90a962e5b8eaf20c92bc70f49f025e327bc049533e8c87f7cc9f6c1b29 0.9s
=> [internal] load build context 0.0s
=> => transferring context: 5.82kB 0.0s
=> CACHED [internal] settings cache mount permissions 0.0s
=> [packages 2/4] COPY --chown=1001:0 package.json yarn.lock ./ 0.2s
=> [stage-2 2/7] RUN npm install -g yarn 7.0s
=> [packages 3/4] COPY --chown=1001:0 packages/ packages/ 0.0s
=> [packages 4/4] RUN find packages ! -name "package.json" -mindepth 2 -maxdepth 2 -exec rm -rf {} + 0.2s
=> [build 3/8] RUN microdnf install -y python3 make gcc-c++ gzip && microdnf clean all 54.4s
=> [build 4/8] COPY --from=packages /opt/app-root/src/ ./ 0.0s
=> ERROR [build 5/8] RUN --mount=type=cache,target=/opt/app-root/src/.cache/yarn,uid=1001,gid=0 yarn install --frozen-lockfile --network-timeout 600000 328.0s
------
> [build 5/8] RUN --mount=type=cache,target=/opt/app-root/src/.cache/yarn,uid=1001,gid=0 yarn install --frozen-lockfile --network-timeout 600000:
1.624 yarn install v1.22.21
2.486 [1/5] Validating package.json...
2.518 [2/5] Resolving packages...
8.270 [3/5] Fetching packages...
14.20 warning [email protected]: The engine "pnpm" appears to be invalid.
14.24 [4/5] Linking dependencies...
14.36 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=7.21.4".
14.36 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > [email protected]" has unmet peer dependency "eslint@>= 3.2.1".
14.37 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/core-components > @material-table/[email protected]" has unmet peer dependency "@date-io/core@^1.3.13".
14.38 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/[email protected]" has unmet peer dependency "@babel/runtime@>=7.11.0".
14.38 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/[email protected]" has unmet peer dependency "@codemirror/state@>=6.0.0".
14.38 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/[email protected]" has unmet peer dependency "@codemirror/theme-one-dark@>=6.0.0".
14.38 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/[email protected]" has unmet peer dependency "codemirror@>=6.0.0".
14.40 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/core-components > @material-table/core > @material-ui/[email protected]" has unmet peer dependency "@date-io/core@^1.3.6".
14.41 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/react-codemirror > @uiw/[email protected]" has unmet peer dependency "@codemirror/autocomplete@>=6.0.0".
14.41 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/react-codemirror > @uiw/[email protected]" has unmet peer dependency "@codemirror/lint@>=6.0.0".
14.41 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/react-codemirror > @uiw/[email protected]" has unmet peer dependency "@codemirror/search@>=6.0.0".
14.42 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-api-docs > graphiql > @graphiql/react > [email protected]" has unmet peer dependency "@codemirror/language@^0.20.0".
14.42 warning "workspace-aggregator-7e528255-2297-4741-936b-796bd1021cb8 > app > @backstage/plugin-scaffolder > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup > @codemirror/[email protected]" has unmet peer dependency "@lezer/common@^1.0.0".
213.2 [5/5] Building fresh packages...
310.4 error /opt/app-root/src/node_modules/isolated-vm: Command failed.
310.4 Exit code: 1
310.4 Command: prebuild-install || (node-gyp rebuild --release -j max && node-gyp clean)
310.4 Arguments:
310.4 Directory: /opt/app-root/src/node_modules/isolated-vm
310.4 Output:
310.4 prebuild-install warn install EACCES: permission denied, access '/opt/app-root/src/.npm'
310.4 gyp info it worked if it ends with ok
310.4 gyp info using [email protected]
310.4 gyp info using [email protected] | linux | x64
310.4 gyp info find Python using Python version 3.6.8 found at "/usr/bin/python3"
310.4 gyp WARN EACCES current user does not have permission to access the dev dir "/opt/app-root/src/.cache/node-gyp/18.18.2"
310.4 gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
310.4 gyp info spawn /usr/bin/python3
310.4 gyp info spawn args [
310.4 gyp info spawn args '/opt/app-root/src/node_modules/node-gyp/gyp/gyp_main.py',
310.4 gyp info spawn args 'binding.gyp',
310.4 gyp info spawn args '-f',
310.4 gyp info spawn args 'make',
310.4 gyp info spawn args '-I',
310.4 gyp info spawn args '/opt/app-root/src/node_modules/isolated-vm/build/config.gypi',
310.4 gyp info spawn args '-I',
310.4 gyp info spawn args '/opt/app-root/src/node_modules/node-gyp/addon.gypi',
310.4 gyp info spawn args '-I',
310.4 gyp info spawn args '/tmp/.node-gyp/18.18.2/include/node/common.gypi',
310.4 gyp info spawn args '-Dlibrary=shared_library',
310.4 gyp info spawn args '-Dvisibility=default',
310.4 gyp info spawn args '-Dnode_root_dir=/tmp/.node-gyp/18.18.2',
310.4 gyp info spawn args '-Dnode_gyp_dir=/opt/app-root/src/node_modules/node-gyp',
310.4 gyp info spawn args '-Dnode_lib_file=/tmp/.node-gyp/18.18.2/<(target_arch)/node.lib',
310.4 gyp info spawn args '-Dmodule_root_dir=/opt/app-root/src/node_modules/isolated-vm',
310.4 gyp info spawn args '-Dnode_engine=v8',
310.4 gyp info spawn args '--depth=.',
310.4 gyp info spawn args '--no-parallel',
310.4 gyp info spawn args '--generator-output',
310.4 gyp info spawn args 'build',
310.4 gyp info spawn args '-Goutput_dir=.'
310.4 gyp info spawn args ]
310.4 gyp info spawn make
310.4 gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 12 ]
310.4 make: Entering directory '/opt/app-root/src/node_modules/isolated-vm/build'
310.4 CXX(target) Release/obj.target/nortti/src/external_copy/serializer_nortti.o
310.4 CXX(target) Release/obj.target/nortti/src/isolate/allocator_nortti.o
310.4 rm -f Release/obj.target/nortti.a Release/obj.target/nortti.a.ar-file-list; mkdir -p `dirname Release/obj.target/nortti.a`
310.4 ar crs Release/obj.target/nortti.a @Release/obj.target/nortti.a.ar-file-list
310.4 COPY Release/nortti.a
310.4 CXX(target) Release/obj.target/isolated_vm/src/external_copy/external_copy.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/external_copy/serializer.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/external_copy/string.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/cpu_profile_manager.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/environment.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/executor.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/holder.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/platform_delegate.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/inspector.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/stack_trace.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/three_phase_task.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/isolate/scheduler.o
310.4 ../src/isolate/environment.cc:58: warning: "_GNU_SOURCE" redefined
310.4 #define _GNU_SOURCE
310.4
310.4 <command-line>: note: this is the location of the previous definition
310.4 CXX(target) Release/obj.target/isolated_vm/src/lib/thread_pool.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/lib/timer.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/callback.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/context_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/evaluation.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/external_copy_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/isolate.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/isolate_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/lib_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/module_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/native_module_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/reference_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/script_handle.o
310.4 ../src/module/lib_handle.cc: In member function 'v8::Local<v8::Value> ivm::LibHandle::PrivateSymbol(v8::MaybeLocal<v8::String>)':
310.4 ../src/module/lib_handle.cc:58:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
310.4 return *reinterpret_cast<Local<Value>*>(&symbol);
310.4 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
310.4 ../src/module/lib_handle.cc:58:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/session_handle.o
310.4 CXX(target) Release/obj.target/isolated_vm/src/module/transferable.o
310.4 SOLINK_MODULE(target) Release/obj.target/isolated_vm.node
310.4 /usr/bin/ld: cannot find -lz
310.4 /usr/bin/ld: cannot find -lbrotlidec
310.4 /usr/bin/ld: cannot find -lbrotlienc
310.4 /usr/bin/ld: cannot find -lcrypto
310.4 /usr/bin/ld: cannot find -lssl
310.4 collect2: error: ld returned 1 exit status
310.4 make: *** [isolated_vm.target.mk:224: Release/obj.target/isolated_vm.node] Error 1
310.4 make: Leaving directory '/opt/app-root/src/node_modules/isolated-vm/build'
310.4 gyp ERR! build error
310.4 gyp ERR! stack Error: `make` failed with exit code: 2
310.4 gyp ERR! stack at ChildProcess.onExit (/opt/app-root/src/node_modules/node-gyp/lib/build.js:203:23)
310.4 gyp ERR! stack at ChildProcess.emit (node:events:517:28)
310.4 gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
310.4 gyp ERR! System Linux 6.4.16-linuxkit
310.4 gyp ERR! command "/usr/bin/node" "/opt/app-root/src/node_modules/.bin/node-gyp" "rebuild" "--release" "-j" "max"
310.4 gyp ERR! cwd /opt/app-root/src/node_modules/isolated-vm
310.4 gyp ERR! node -v v18.18.2
310.4 gyp ERR! node-gyp -v v9.4.1
310.4 gyp ERR! not ok
310.4 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
Dockerfile:24
--------------------
23 | COPY --from=packages /opt/app-root/src/ ./
24 | >>> RUN --mount=type=cache,target=/opt/app-root/src/.cache/yarn,uid=1001,gid=0 \
25 | >>> yarn install --frozen-lockfile --network-timeout 600000
26 |
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn install --frozen-lockfile --network-timeout 600000" did not complete successfully: exit code: 1
OS: MacOS
Docker
docker info
Client:
Version: 24.0.6
Context: desktop-linux
Debug Mode: false
Node: v18.18.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.