java
java copied to clipboard
"mvn-entrypoint.sh": executable file not found in $PATH: unknown [Generate Model from CRD]
trafficstars
I'm trying to generate models for Cert-Manager CRD.
I followed the documentation here
I'm generating on local environment.
These are some last few lines of logs before the process exits.
rendering settings file to /tmp/settings
reading input openapi specs
--- Building docker image kubernetes-java-client-gen-with-openapi-generator:v1...
[+] Building 0.1s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 485B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for ghcr.io/yue9944882/crd-model-gen-base:v1.0.0 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 90.63kB 0.0s
=> [1/5] FROM ghcr.io/yue9944882/crd-model-gen-base:v1.0.0 0.0s
=> CACHED [2/5] COPY openapi-generator/generate_client_in_container.sh /generate_client.sh 0.0s
=> CACHED [3/5] COPY preprocess_spec.py / 0.0s
=> CACHED [4/5] COPY custom_objects_spec.json / 0.0s
=> CACHED [5/5] COPY java.xml /generation_params.xml 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:f444de1ef919427030ed23a532514763fe7b84b5fb0e28dd6f85f34436bf2b28 0.0s
=> => naming to docker.io/library/kubernetes-java-client-gen-with-openapi-generator:v1 0.0s
--- Running generator inside container...
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "mvn-entrypoint.sh": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled
I tried to debug on my own and found that this container doesn't seem to have maven installed. I also tried this locally and got the same error.
Not sure if I'm doing something wrong or the container is broken.