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 build does not receive --default-mounts-file option #9093

Closed
edsantiago opened this issue Jan 25, 2021 · 3 comments
Closed

podman build does not receive --default-mounts-file option #9093

edsantiago opened this issue Jan 25, 2021 · 3 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue

Comments

@edsantiago
Copy link
Member

edsantiago commented Jan 25, 2021

Podman has an undocumented --default-mounts-file option used in testing. This option is silently ignored by podman build:

# mkdir -p /tmp/podmantest/secrets
# echo /tmp/podmantest/secrets:/run/secrets >/tmp/podmantest/mounts.conf
# echo shhhh >/tmp/podmantest/secrets/file
# echo "hey! this is /usr/share/rhel/secrets" >/usr/share/rhel/secrets/original-mountdir

# printf "FROM quay.io/libpod/testimage:20200929\nRUN ls -l /run/secrets\n" | podman --default-mounts-file=/tmp/podmantest/mounts.conf build -t foo -
STEP 1: FROM quay.io/libpod/testimage:20200929
STEP 2: RUN ls -l /run/secrets
total 4
-rw-r--r--    1 root     root            37 Jan 25 21:02 original-mountdir
STEP 3: COMMIT foo
--> 7f4d4f62a68
7f4d4f62a68ae48d7a110829227c0c7b100b1097dac7d187cd93e98a4cce6dbe
# rm -f  /usr/share/rhel/secrets/original-mountdir    ! clean up

Without this, there is no practical way to address issue #8679. (See also: PR #9091 which is a rough start)

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@mheon
Copy link
Member

mheon commented Feb 25, 2021

@rhatdan Did you enable this one with your recent PRs to add missing podman build options?

@TomSweeneyRedHat
Copy link
Member

I only play the part of @rhatdan on TV, but he did include it in #9094.
Closing

@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 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. stale-issue
Projects
None yet
Development

No branches or pull requests

3 participants