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

Podman user gets gcl-cmd: applet not found error #1405

Open
elafontaine opened this issue Oct 30, 2024 · 4 comments
Open

Podman user gets gcl-cmd: applet not found error #1405

elafontaine opened this issue Oct 30, 2024 · 4 comments

Comments

@elafontaine
Copy link

Minimal .gitlab-ci.yml illustrating the issue

---
myjob:
  stage: check
  image:
    name: mysteriouscode/cfn-lint:latest
    entrypoint: [""]
  script:
    - cfn-lint CloudFormation.yml

Expected behavior
Same behaviour as docker users, but I'm unsure why it's different on podman yet...

Host information
MacOS podman
gitlab-ci-local 4.55.0

Containerd binary
podman

Additional context
We run the jobs with docker most of the team, but the license cost is starting to be a concern. Some people were already using podman, but were unable to get the same jobs as us to run. You have a snippet of the code that fails. The error message seems to be caused by this line ; https://github.com/firecow/gitlab-ci-local/blob/4.55.0/src/job.ts#L872C143-L872C151
This is the only place where I found "gcl-cmd".

I will try to dig out more details.

@elafontaine
Copy link
Author

I think it's because the base image is a busybox and that the "cmd" doesn't have a #! for busybox to interpret the script correctly. Still have to figure out how come it works on docker though...
https://github.com/firecow/gitlab-ci-local/blob/4.55.0/src/job.ts#L847C1-L847C40

@elafontaine
Copy link
Author

Is there a way to leave the container in place on failure ? I would like to explore the filesystem to figure it out...

@firecow
Copy link
Owner

firecow commented Oct 31, 2024

@elafontaine Does this work on gitlab.com?

@firecow firecow added the elaborate Further elaboration is needed label Oct 31, 2024
@ANGkeith
Copy link
Collaborator

ANGkeith commented Oct 31, 2024

cat > foo <<EOF
echo 1
EOF
chmod +x foo

cat > Dockerfile <<EOF
FROM alpine        #  or mysteriouscode/cfn-lint:latest
COPY foo foo
RUN /foo
EOF

docker build . --platform linux/amd64 works but podman build . --platform linux/amd64

seemed to be some issue with podman but not sure exactly why tho


replicable on apple silicon mac.

have not tested on linux/ intelnmac

@ANGkeith ANGkeith removed the elaborate Further elaboration is needed label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants