Moving default-policy.json and default.yaml to containers/image#2173
Moving default-policy.json and default.yaml to containers/image#2173rahilarious wants to merge 3 commits into
Conversation
492ab56 to
441249f
Compare
| - dnf builddep -y skopeo | ||
| - make | ||
| - make install | ||
| - echo '{"default":[{"type":"insecureAcceptAnything"}],"transports":{"docker-daemon":{"":[{"type":"insecureAcceptAnything"}]}}}' > /etc/containers/policy.json |
There was a problem hiding this comment.
- I’m afraid this is failing
- I’m tempted to say that this should do the same thing we are asking other users to do. I.e. if users are expected to install the files from the c/image repo, this should also go through the troubler of installing the files from the c/image repo.
There was a problem hiding this comment.
* I’m tempted to say that this should do the same thing we are asking other users to do. I.e. if users are expected to install the files from the c/image repo, this should also go through the troubler of installing the files from the c/image repo.
I agree. I just don't know how to handle cirrus stuff. It's up to you to properly fix it.
There was a problem hiding this comment.
It is… just a shell script?
… Uh. The one thing we might need to provide some guidance on is to figure out which c/image version to use. ~Luckily the data is available in go.mod, but turning that into a git command is a bit cumbersome.
@lsm5 @jnovy @rhatdan What do we do for Podman users who build from source, and need containers.conf from c/common? It seems to be either “nothing and let them figure it out” or “install a previous packaged of containers-common and hope the files match”, is there something I’m missing?
There was a problem hiding this comment.
Nothing but let them figure it out. Luckily Podman runs fine with no containers.conf and we encourage distributions to comment out containers.conf to be used information purposes only, IE Document the default in the system file, and allow admin and users to customize individual fields.
There was a problem hiding this comment.
I’m afraid policy.json is mandatory. Oh well… I’m always happy to recommend using packaged versions :)
|
For the record, the files, and the Make rules to install them, were moved to containers/image#2215 . |
|
@mtrmac I guess we can revise this PR to handle any outstanding cleanup issues if @rahilarious is willing to continue this. |
92df14c to
6b73165
Compare
I'm unfamiliar with cirrus stuff, any help would be appreciated |
|
Ephemeral COPR build failed. @containers/packit-build please check. |
Ack, no worries. I'm working on enabling TMT tests in #1960 and if things work there we can probably get rid of cirrus tests that need changes here. |
|
A friendly reminder that this PR had no activity for 30 days. |
|
as per https://github.com/podman-container-tools/container-libs/blob/main/common/rpm/containers-common.spec , these files are being installed from PTAL @lsm5 |
a step towards addressing podman-container-tools#2170 all these files and a dir is already being installed by containers-common package which skopeo depends on. No need to install by skopeo Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
3a1181b to
d1a7878
Compare
generate completions along with docs when runnning `make all` & don't build binary while installing anything. Installation phase should only install and compile phase should only compile this makes `make` && `make install` sufficient Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
5d03d4e to
c104491
Compare
|
@rahilarious there's a bash completion installation issue that's causing most (all?) tests to fail. PTAL. |
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Being a Gentoo guy, I'd prefer not to fiddle with rpm spec files. But still, fixed. It's all green now |
Sorry, I should've been clear. I mainly meant the github actions jobs which will also need the completions target. Consider Packit / testing-farm as secondary CI, and thanks for the spec file change 🙂 . The testing-farm ELN job failures can be ignored here. I'll probably just remove them if they keep failing. |
All major distros (Fedora, debian, archlinux, gentoo, alpine, opensuse) are placing these 2 files in containers-common package. Why not fix it upstream?
1st step towards addressing #2170