Bug 1490311 - Container Review Request: tools - management commands you miss in Atomic Host
Summary: Container Review Request: tools - management commands you miss in Atomic Host
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora Container Images
Classification: Fedora
Component: Container Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-11 10:07 UTC by Tomas Tomecek
Modified: 2017-09-12 14:12 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-09-12 14:12:51 UTC
Type: Bug
Embargoed:
phracek: fedora-review+


Attachments (Terms of Use)

Description Tomas Tomecek 2017-09-11 10:07:46 UTC
Container Build Info URL: https://raw.githubusercontent.com/container-images/tools/81b0c920bbc1dc5feccd67f9c8e7b96d4e549327/Dockerfile
Description: container with all the management tools you miss in Atomic Host
Fedora Account System Username: ttomecek

Comment 1 Petr Hracek 2017-09-11 10:32:45 UTC
The container does not expose any port?

I missed help.1 or help.md page which describes the container.

The README does not contain the same information like is mentioned in LABEL.run.
This should be documented in READMEm how to run the container.

Any reason why io.k8s.{discription|display-name} and io.openshift{tags|expose-services} are not used?

If it is not system-container, why there are not used atomic install labels like is mentioned here https://fedoraproject.org/wiki/Container:Guidelines#LABELS.
Even the LABELs are optional.

I miss label help which is described here https://fedoraproject.org/wiki/Container:Guidelines#LABEL_SPECIFICATION.

Can you please update the container for using distgen?

I tried to run the container but fails.
~~~
atomic run modularitycontainers/tools
Need to pull modularitycontainers/tools
Unable to find modularitycontainers/tools
make: *** [Makefile:11: run] Error 1
~~~

Please fix issues.

Comment 2 Tomas Tomecek 2017-09-11 11:34:42 UTC
(In reply to Petr Hracek from comment #1)
> The container does not expose any port?

It does not, it's just a collection of binaries.

> I missed help.1 or help.md page which describes the container.

I did not know what would I write in there: so I'll just list all available executables.

> The README does not contain the same information like is mentioned in
> LABEL.run.
> This should be documented in READMEm how to run the container.

It is: `atomic run $the_image`

> Any reason why io.k8s.{discription|display-name} and
> io.openshift{tags|expose-services} are not used?

Because they are not required by Fedora: https://fedoraproject.org/wiki/Container:Guidelines#LABELS

> If it is not system-container, why there are not used atomic install labels
> like is mentioned here
> https://fedoraproject.org/wiki/Container:Guidelines#LABELS.
> Even the LABELs are optional.

Because there is nothing to install.

> I miss label help which is described here
> https://fedoraproject.org/wiki/Container:Guidelines#LABEL_SPECIFICATION.

I'll do help files instead.

> Can you please update the container for using distgen?

No I can't -- there is nothing to template.

> I tried to run the container but fails.
> ~~~
> atomic run modularitycontainers/tools
> Need to pull modularitycontainers/tools
> Unable to find modularitycontainers/tools
> make: *** [Makefile:11: run] Error 1
> ~~~

You need to build it first.

> Please fix issues.

Comment 3 Petr Hracek 2017-09-11 11:41:08 UTC
(In reply to Tomas Tomecek from comment #2)
> (In reply to Petr Hracek from comment #1)
> > The container does not expose any port?
> 
> It does not, it's just a collection of binaries.
> 
> > I missed help.1 or help.md page which describes the container.
> 
> I did not know what would I write in there: so I'll just list all available
> executables.
> 
> > The README does not contain the same information like is mentioned in
> > LABEL.run.
> > This should be documented in READMEm how to run the container.
> 
> It is: `atomic run $the_image`
Sorry I will rephrase it a bit. What about for case if user wants to run it via docker and atomic. I guess, in README would be something like

In case of using docker binary run container by command:
docker run -v /run:/run -v /var/log:/var/log -v /etc/machine-id:/etc/machine-id -v /etc/localtime:/etc/localtime -v /:/host IMAGE


> 
> > Any reason why io.k8s.{discription|display-name} and
> > io.openshift{tags|expose-services} are not used?
> 
> Because they are not required by Fedora:
> https://fedoraproject.org/wiki/Container:Guidelines#LABELS
> 
> > If it is not system-container, why there are not used atomic install labels
> > like is mentioned here
> > https://fedoraproject.org/wiki/Container:Guidelines#LABELS.
> > Even the LABELs are optional.
> 
> Because there is nothing to install.
> 
> > I miss label help which is described here
> > https://fedoraproject.org/wiki/Container:Guidelines#LABEL_SPECIFICATION.
> 
> I'll do help files instead.
> 
> > Can you please update the container for using distgen?
> 
> No I can't -- there is nothing to template.
> 
> > I tried to run the container but fails.
> > ~~~
> > atomic run modularitycontainers/tools
> > Need to pull modularitycontainers/tools
> > Unable to find modularitycontainers/tools
> > make: *** [Makefile:11: run] Error 1
> > ~~~
> 
> You need to build it first.
> 
What about to add dependency run into build in Makefile?

> > Please fix issues.

Comment 4 Tomas Tomecek 2017-09-11 13:14:04 UTC
(In reply to Petr Hracek from comment #3)
> Sorry I will rephrase it a bit. What about for case if user wants to run it
> via docker and atomic. I guess, in README would be something like
> 
> In case of using docker binary run container by command:
> docker run -v /run:/run -v /var/log:/var/log -v
> /etc/machine-id:/etc/machine-id -v /etc/localtime:/etc/localtime -v /:/host
> IMAGE

I don't want to personally support a use case, when users run it via docker binary -- a simple typo in the loooooong commandline may easily result into malfunction.


> > You need to build it first.
> > 
> What about to add dependency run into build in Makefile?

Would you be okay with rebuilding the image every time you want to run it? I would personally not. Will add a line for this into README.

Comment 5 Tomas Tomecek 2017-09-11 13:19:25 UTC
I think I addressed all the issues, updated build context: https://github.com/TomasTomecek/tools/archive/a65d093f6e4e74c5fdae87c94933b1b137f04731.zip

(or use master branch of my fork: https://github.com/TomasTomecek/tools)

Comment 6 Petr Hracek 2017-09-11 21:39:36 UTC
The container tools seems to be fine from my point of view.

Comment 7 Gwyn Ciesla 2017-09-12 12:22:26 UTC
(fedrepo-req-admin):  The Pagure repository was created at https://src.fedoraproject.org/container/tools

Comment 8 Tomas Tomecek 2017-09-12 14:12:51 UTC
Petr, thank for review!

The build is done:

  candidate-registry.fedoraproject.org/f26/tools:rawhide-container-candidate-68735-20170912140601
  candidate-registry.fedoraproject.org/f26/tools:0-1.f26container
  candidate-registry.fedoraproject.org/f26/tools:0
  candidate-registry.fedoraproject.org/f26/tools:latest


Note You need to log in before you can comment on or make changes to this bug.