Closed m0un10 closed 8 months ago
Hi @m0un10 - thanks for reporting this issue. Backstage recently released v1.15.0 and it appears that there's a breaking change that now requires python in the image build process (see https://backstage.io/docs/releases/v1.15.0/#breaking-scaffolder-build-requirements).
I'm working on an update and expect to have something available shortly which will pin Backstage to a tested version.
In the meantime, if you want to test a workaround for Backstage 1.15.0, then you can try adding the following code to the config/Dockerfile
file. I haven't tested this yet, so I don't know if there will be other issues:
...
FROM --platform=linux/amd64 node:18-bullseye-slim
+ # Install required pre-reqs for node_module dependencies
+ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
+ apt-get update && \
+ apt-get install -y --no-install-recommends python3 build-essential && \
+ yarn config set python /usr/bin/python3
# From here on we use the least-privileged `node` user to run the backend.
USER node
...
fixed.
The
make deploy-prereq
step fails with the following...The prior
yarn tsc && yarn build:all
step worked fine.Perhaps the upstream Docker image or another dependency has changed, if this used to work? Or, maybe it don't work on Arm?
Versions
macOS Ventura 13.4
Docker
24.0.2
Node:
v18.14.0