Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/typescript-model/generate.sh breaks with Podman #1677

Open
michael-valdron opened this issue Jan 27, 2025 · 0 comments
Open

build/typescript-model/generate.sh breaks with Podman #1677

michael-valdron opened this issue Jan 27, 2025 · 0 comments
Labels
area/api Enhancement or issue related to the api/devfile specification help wanted Extra attention is needed kind/bug Something isn't working

Comments

@michael-valdron
Copy link
Member

/kind bug

Which area is this bug related to?

/area api

What versions of software are you using?

Podman 5.3.1

Bug Summary

Describe the bug:

According to the CONTRIBUTING.md#prerequisites, I should be able to use podman to run both the build and typescript generation scripts, however build/typescript-model/generate.sh breaks unless I am using docker specifically.

To Reproduce:

Run the following with podman installed: bash build/typescript-model/generate.sh

Expected behavior

bash build/typescript-model/generate.sh should run with podman as with docker.

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

[INFO] Using the following folder to store all build files devfile/api/build/typescript-model/workdir
[INFO] Generating Swagger JSON...
[INFO] Generating Swagger JSON. It's in devfile/api/build/typescript-model/workdir/typescript-models/swagger.json.unprocessed
kubernetes-client/gen is already cloned into devfile/api/build/typescript-model/workdir/gen
[INFO] Checking out gen to b32dcd6dc9c1c0c4fcf227c9539ae9ff0530b936
devfile/api/build/typescript-model/workdir/gen devfile/api
M	openapi/custom_objects_spec.json
HEAD is now at b32dcd6 Set git safe directory to avoid dubious ownership error (#237)
devfile/api
[INFO] preparing config files for gen
[INFO] Lauching gen to generate typescript files based on swagger json
--- Building docker image kubernetes-typescript-client-gen-with-openapi-generator:v1...
devfile/api/build/typescript-model/workdir/gen/openapi/openapi-generator/client-generator.sh: line 75: docker: command not found

Additional context

Any workaround?

Install the podman-docker docker CLI emulation package.

Suggestion on how to fix the bug

Find a way to use podman with the kubernetes-client/gen scripts without using docker or docker emulation.

@openshift-ci openshift-ci bot added kind/bug Something isn't working area/api Enhancement or issue related to the api/devfile specification labels Jan 27, 2025
@michael-valdron michael-valdron moved this to Refinement in Devfile Project Jan 27, 2025
@michael-valdron michael-valdron added the help wanted Extra attention is needed label Jan 27, 2025
@yangcao77 yangcao77 moved this from Refinement to Backlog in Devfile Project Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Enhancement or issue related to the api/devfile specification help wanted Extra attention is needed kind/bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant