Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix image not running in K8s (ROSA) (#24)
Fix image not running in K8s (ROSA) Trying to solve the container exiting with error code `243`. `npm` throws `243` for any command you try to run with it. Here is how to get into the container while the entrypoint normally errors. ``` $ oc run -i --tty --image=ghcr.io/matrix-org/matrix-public-archive/matrix-public-archive:sha-65edaea1a9713bb2cc93fa98638327fdeff765cd mpa-test2 --port=3050 --restart=Never --env="DOMAIN=cluster" --command /bin/bash $ npm start $ echo $? 243 ``` Why does the same image work in Docker? ``` $ docker run -it --entrypoint /bin/bash ghcr.io/matrix-org/matrix-public-archive/matrix-public-archive:sha-65edaea1a9713bb2cc93fa98638327fdeff765cd $ npm start # it starts ✅ ``` ## Root cause Seems like it could be either of these issues. Both are `8.6.0`+ problems as well which lines up with the `npm` version available in each base image. - npm/cli#4769 - npm/cli#4996 - Specific comment about breaking stuff in k8s for other people, npm/cli#4996 (comment)
- Loading branch information