Giter Site home page Giter Site logo

Comments (14)

mlcooper avatar mlcooper commented on June 30, 2024

Also, just so I am clear, which branch/tag should I be using to build from to use on a RHEL 7.3 box running docker-engine 1.13.1?

from container-selinux.

lsm5 avatar lsm5 commented on June 30, 2024

@mlcooper can you please check if your RHEL-1.12 branch is on commit 7a17443 (the latest on that branch). That builds just fine for me on RHEL 7.3.

from container-selinux.

mlcooper avatar mlcooper commented on June 30, 2024

The latest commit 7a17443 now does build on my RHEL7.3 box. I am sure I did a git pull late yesterday to ensure I had the latest on this branch, but today when I did the git pull I did receive a newer commit.

I am now checking to see if I can build an RPM and deploy it on a rhel7.3 box

from container-selinux.

rhatdan avatar rhatdan commented on June 30, 2024

Yes I fixed the issues you were seeing yesterday. Sorry about breaking your build.

from container-selinux.

lsm5 avatar lsm5 commented on June 30, 2024

@mlcooper just a headsup, make sure to update the commit id in container-selinux.spec on line 8 to the latest on RHEL-1.12 before you build it. Else it will probably complain. I think I can mirror the RHEL dist-git for container-selinux on github if people feel the need.

I'm not a fan of the rpm specfile living in the upstream repo itself, but whatever makes @rhatdan happy.

from container-selinux.

mlcooper avatar mlcooper commented on June 30, 2024

@lsm5 I'm not sure I follow where to put the commit id on line 8:
https://github.com/projectatomic/container-selinux/blob/RHEL-1.12/container-selinux.spec#L8

It is a comment line at the moment.

from container-selinux.

lsm5 avatar lsm5 commented on June 30, 2024

That file is way too old. Much preferable to fetch and use https://src.fedoraproject.org/cgit/rpms/container-selinux.git/tree/container-selinux.spec . Change line 9 to the latest commit id on RHEL-1.12 branch.

Then spectool -g container-selinux.spec followed by rpmbuild.

specfiles in the upstream repo often end up being stale, coz all updates usually go to the dist-git repos. Hence me not being a fan of it.

from container-selinux.

lsm5 avatar lsm5 commented on June 30, 2024

That's actually fedora's specfile, but does include conditions for RHEL. If it doesn't work like expected, let me know

from container-selinux.

mlcooper avatar mlcooper commented on June 30, 2024

Thanks for the further instructions/clarification there, @lsm5

I built the rpm, and it installed successfully:

[root@n7-z01-0a2a0576 yum.repos.d]# yum list installed|grep container
container-selinux.noarch           2.10-1.el7                      @eat-rhel7

Is this the actual module it installs?

[root@n7-z01-0a2a0576 yum.repos.d]# semodule -l|grep container
container       1.0.0

from container-selinux.

rhatdan avatar rhatdan commented on June 30, 2024

@lsm5 I agree, I also think the spec file should just be an example. The real spec file should live in the rhel/fedora dist-gits.

from container-selinux.

rhatdan avatar rhatdan commented on June 30, 2024

BTW We have been asked to move this project to OCI/selinux repo. So all things SELinux for containers would be under one repo.

Go bindings and selinux policy.

from container-selinux.

lsm5 avatar lsm5 commented on June 30, 2024

@mlcooper yes, that's the installed module.

@rhatdan is the spec file better under something like an example dir or similar? Just that I feel having the spec file listed the way like it is now, gives the impression that it's current, specially to new users. Or maybe just a comment in this file that it's most likely out of date and the user should proceed with caution / fetch from dist-gits.

from container-selinux.

rhatdan avatar rhatdan commented on June 30, 2024

Sure I will move it to a sample directory.

from container-selinux.

rhatdan avatar rhatdan commented on June 30, 2024

Moved it to a contrib directory in master branch.

from container-selinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.