<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 8:55 AM, Daniel J Walsh <span dir="ltr"><<a href="mailto:dwalsh@redhat.com" target="_blank">dwalsh@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
<br>
On 11/05/2015 06:45 PM, Carl Trieloff wrote:<br>
> On 11/05/2015 01:53 AM, Daniel J Walsh wrote:<br>
>> On 11/04/2015 01:38 PM, Dusty Mabe wrote:<br>
>>> On 11/04/2015 06:25 AM, Lalatendu Mohanty wrote:<br>
>>>> On 11/04/2015 07:15 AM, Dusty Mabe wrote:<br>
>>>>> Hi all,<br>
>>>>><br>
>>>>> I've had conversations over the past few weeks with many of you<br>
>>>>> about atomicapp and running it through Atomic CLI. Basically the<br>
>>>>> problem is that the INSTALL/RUN/STOP labels are a bit fragile and we<br>
>>>>> have seen breakage a few times as a result. In the discussions we<br>
>>>>> have talked about better alternatives and I think this is what we'd<br>
>>>>> like to go with in the future:<br>
>>>>><br>
>>>>> 1 - the only case where atomic cli needs to work is for running<br>
>>>>> `atomic run <appname>` any other piece of the puzzle WILL be handled<br>
>>>>> by the atomicapp cli (excludes openshift use case)<br>
>>>>> 2 - people can use the atomicapp cli to do<br>
>>>>> unpack/install/run/uninstall/etc... whatever the tool supports they<br>
>>>>> can do it<br>
>>>>> 3 - people can use atomicapp cli from an installed rpm OR from an<br>
>>>>> alias that runs a docker container to run the cli<br>
>>>>><br>
>>>>> An example of the alias would be:<br>
>>>>> alias atomicapp='docker run -it --rm  --privileged -v<br>
>>>>> $(pwd):/atomicapp -v /run:/run -v /:/host --net=host --name<br>
>>>>> atomicapp projectatomic/atomicapp:latest'<br>
>>>>> OR in the future may be:<br>
>>>>> alias atomicapp='atomic run projectatomic/atomicapp'<br>
>>>>><br>
>>>>> The idea is that you would use the alias just like if atomicapp were<br>
>>>>> installed on the system:<br>
>>>>> atomicapp install dusty/helloapache<br>
>>>>> cd /var/lib/atomicapp/dusty-helloapache-9cb2a3704f1d<br>
>>>>> atomicapp run --provider docker ./<br>
>>>>> curl localhost<br>
>>>>> atomicapp stop ./<br>
>>>>><br>
>>>> From a user point of view, just using atomic command wold be<br>
>>>> relatively easy thing. As it is part of atomic hosts.  What is the<br>
>>>> possibility of improvement in atomic  command line labels in future?<br>
>>>> So if it improves in future, should we again consider using it for<br>
>>>> other labels.<br>
>>>><br>
>>> Well the thing is that Atomic CLI assumes some things about the<br>
>>> arguments you are passing it. For example 'atomic stop' assumes you<br>
>>> are passing it the name of a running container and tries to detect if<br>
>>> the container is running and gives an error if not. This doesn't<br>
>>> really work for us and I anticipate stuff like this will crop up in<br>
>>> the future as Atomic CLI gets more features.<br>
>>><br>
>>> _______________________________________________<br>
>>> Container-tools mailing list<br>
>>> <a href="mailto:Container-tools@redhat.com">Container-tools@redhat.com</a><br>
>>> <a href="https://www.redhat.com/mailman/listinfo/container-tools" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/container-tools</a><br>
>> What does atomicapp expect to happen when  you do an atomic stop?  You<br>
>> want the STOP label to run even if there is no container?  You don't<br>
>> want to specify a container?<br></div></div></blockquote><div><br></div><div>Interesting..we already had this discussion here <a href="https://github.com/projectatomic/atomic/pull/54">https://github.com/projectatomic/atomic/pull/54</a></div><div><br></div><div>and it got solved here <a href="https://github.com/projectatomic/atomic/pull/56">https://github.com/projectatomic/atomic/pull/56</a></div><div><br></div><div>Did it break again? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">
>><br>
>> My fear now is that we are breaking this up to where atomic and<br>
>> atomicapp will compete against each other.  And users will need to know<br>
>> for this type of container I run atomicapp and for this other type of<br>
>> container I run atomic.<br>
>><br>
>> We are loosing the original goal where the developer could embed all of<br>
>> the knowledge of how to run an application into the container image.<br>
>><br>
>> I think we should be talking more to product management about this as<br>
>> well as Daniel Riek.<br>
>><br>
> Maybe a chat would be good.<br>
><br>
> As you state our goal is still the same with all the meta-data in the<br>
> 'root' container nulecule or chained micro-service. however with Atomic<br>
> Cli doing stop on an instance we don't have that meta data, so there are<br>
> some issues/opportunities here that we need to think about.<br>
><br>
> Carl.<br>
><br>
><br>
> _______________________________________________<br>
> Container-tools mailing list<br>
> <a href="mailto:Container-tools@redhat.com">Container-tools@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/container-tools" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/container-tools</a><br>
</div></div>I am fine with that.  I will be back in the office next Wednesday on...<br>
<div class=""><div class="h5"><br>
_______________________________________________<br>
Container-tools mailing list<br>
<a href="mailto:Container-tools@redhat.com">Container-tools@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/container-tools" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/container-tools</a><br>
</div></div></blockquote></div><br><br clear="all"><div>My perception is that users are fine using new tools if they ease their life. From my POV we always struggled to with atomic'S restrictions for labels, missing ability to pass arguments etc. They got all fixed somehow over the time, but it's still hard to get our workflow in a such narrow frame.</div><div><br></div><div>That's why I like Dusty's proposal - lets make atomic run some-app work seamlessly so that users that don't really care about the rest of the workflow can use it, but let's leave the rest of workflow on the atomicapp itself.</div><div><br></div><div>That will let us add more features easily and make the workflow simple and digestible for users.</div><div><br></div><div><br></div><div>Cheers,</div><div>Vašek</div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Architect - Senior Software Engineer<br>Developer Experience<br>Brno, Czech Republic<br>Phone: +420 739 666 824<br></div></div></div></div>
</div></div>