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

Honor ENTRYPOINT in image #322

Closed
wants to merge 1 commit into from
Closed

Conversation

baude
Copy link
Member

@baude baude commented Feb 10, 2018

When an image has an ENTRYPOINT defined, we should be honoring it. The
problem is described in issue #321.

Also, added buildah binary to test runtimes for testing entrypoint and
will also allow us to test podman build as well.

Signed-off-by: baude bbaude@redhat.com

}
if len(inputCommand) > 0 {
// User command overrides data CMD
command = append(command, inputCommand...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? I thought user command overrode ENTRYPOINT as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's correct.

 2018-02-10 13:22:22 ⌚  localhost in ~/tmp/entrypoint
○ → cat Dockerfile 
FROM alpine
ENTRYPOINT ["ls"]

 2018-02-10 13:22:31 ⌚  localhost in ~/tmp/entrypoint
○ → docker run -it --rm entrycmd:latest top
ls: top: No such file or directory

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, never knew that. Cool.

@mheon
Copy link
Member

mheon commented Feb 10, 2018

One question, otherwise LGTM


// BuildImage uses podman build and buildah to build an image
// called imageName based on a string dockerfile
func (p *PodmanTest) BuildImage(dockerfile, imageName string) {
Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat Feb 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fingers crossed that this will work, but ipbabble's been having some fun getting Buildah to run in a Docker container.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works just fine

@TomSweeneyRedHat
Copy link
Member

Looks like Travis is failing due to not being able to find go-md2man. Do you need to install that in the container too? Do you have the other Buildah pre-reqs covered?

   make
    golang (Requires version 1.8.1 or higher.)
    bats
    btrfs-progs-devel
    bzip2
    device-mapper-devel
    git
    go-md2man
    gpgme-devel
    glib2-devel
    libassuan-devel
    ostree-devel
    runc (Requires version 1.0 RC4 or higher.)
    skopeo-containers

When an image has an ENTRYPOINT defined, we should be honoring it. The
problem is described in issue containers#321.

Also, added buildah binary to test runtimes for testing entrypoint and
will also allow us to test podman build as well.

Signed-off-by: baude <bbaude@redhat.com>
@mheon
Copy link
Member

mheon commented Feb 10, 2018

bot, retest this please

@mheon
Copy link
Member

mheon commented Feb 10, 2018

Papr tests don't seem to be triggering, manually triggering to see if they run

@TomSweeneyRedHat
Copy link
Member

Nice work @baude, I really didn't expect green buttons due to the tests.

LGTM

@mheon
Copy link
Member

mheon commented Feb 11, 2018

bot, retest this please

@mheon
Copy link
Member

mheon commented Feb 11, 2018

Papr still appears broken

@rhatdan
Copy link
Member

rhatdan commented Feb 11, 2018

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Collaborator

📌 Commit 8582466 has been approved by rhatdan

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit 8582466 with merge d262666...

@rhatdan
Copy link
Member

rhatdan commented Feb 11, 2018

@ipbabble Please try your buildah tests with this new entrypoint code.

@rh-atomic-bot
Copy link
Collaborator

☀️ Test successful - status-papr
Approved by: rhatdan
Pushing d262666 to master...

baude pushed a commit to baude/podman that referenced this pull request Aug 31, 2019
Update github.com/safchain/ethtool to fix the compilation
error on 386. Also added 386 to the tarvis yaml.

Fixes containers#322

Signed-off-by: Moshe Levi <moshele@mellanox.com>
@baude baude deleted the entrypoint branch December 22, 2019 18:49
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants