Re: [PATCH 1/2] * avoid downloading tomcat if it already exists

2018-01-17 Thread Geraldo Netto
Hello Waldek/Nadav/All,

Thanks! Let's start small and then we can think big :)

Sure, besides the list you already provided, would you mind to share all
the other ideas?
Also, if Nadav or any other guy has any suggestion, please, let me know
I would like to consolidate all ideas/todo/roadmap in a single page and of
course, also put a reference for the issues


Kind Regards,

Geraldo Netto
Sapere Aude => Non dvcor, dvco
http://exdev.sf.net/

On 17 January 2018 at 20:44, Waldek Kozaczuk  wrote:

> Geraldo,
>
> Hi and welcome to OSv!!!
>
> I have seen you started contributing which is great. As far as todo/wish
> list I am not sure there is official one besides list of open issues in
> github which Nadav mentioned.
>
> I have my own list. At the top of it is read-only filesystem and golang
> support which I have been working lately with Nadav and Benoit. Hopefully
> we will have it part of the master branch fairly soon.
>
> If you are interested there are many other things that I have in mind that
> may help newcomers to OSv especially application developers that do not
> have much C++/make/gcc tool chain experience. I feel that the entry barrier
> is pretty high unless you are OS system developer. Which is not surprising
> given OSv is a unikernel which aims to fuse application with kernel.
>
> Anyway here is a list and I can provide you with details:
>
>- Update and possibly reorganize documentation around building apps.
>There are many "Porting ... " WIKI page that may be outdated. Especially
>the Java one - https://github.com/cloudius-
>systems/osv/wiki/Porting-Java-applications-to-OSv
>
> 
>- needs to be updated. This days we have number of newer Java JDKs
>supported (ls apps/openjdk*) and one needs to know how to build java app
>image that uses specific JDK. I think we also do not have any Wiki page
>about Python.
>- Add some kind of "Getting Started" page for application developer
>that simply wan to try to use their favorite app on OSv.
>- Link OSv documentation with MikelAngelo capstan. If you are familiar
>with Docker file capstan is a build tool written in Golang that provides
>similar mechanism to build OSv images. There is old capstan (
>https://github.com/cloudius-systems/capstan
>) and new one from
>MikelAngelo (https://github.com/mikelangelo-project/capstan) that adds
>many new features - composing, runtimes. Here is pretty nice user guide -
>https://www.mikelangelo-project.eu/technology/unikernel-
>application-management-users-manual/
>
> .
>It would be nice to at least point people to it from OSv github.
>- Investigate what it would take to automate publishing of OSv kernel
>(using MikelAngelo capstan packages project -
>https://www.mikelangelo-project.eu/2017/08/the-art-of-prep
>aring-osv-packages/
>
> )
>so that application developers can use capstan and point to specific kernel
>version. This would probably require some public S3 bucket where the kernel
>would be published to. We could also publish some most popular runtime
>packages - Java, Node, Python, eventually go.
>
> Best regards,
> Waldek
>
> On Thursday, January 11, 2018 at 7:45:12 AM UTC-5, Nadav Har'El wrote:
>>
>>
>> On Thu, Jan 11, 2018 at 2:17 PM, Geraldo Netto 
>> wrote:
>>
>>> Hello Nadav/All,
>>>
>>> Thanks for your review, I think we can also check with md5/sha1
>>> Will get back to you as soon as I finish it :)
>>>
>>> Out of my curiosity, do we have any consolidated list of to do/fix
>>> me/wish list?
>>>
>>
>> We have https://github.com/cloudius-systems/osv/issues
>> It's a pretty big list.
>>
>>
>>
>>> I saw the todo file,
>>>
>>
>> This is probably out of date. I didn't even remember we had this ;-)
>>
>> Nadav.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "OSv Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osv-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [PATCH 1/2] * avoid downloading tomcat if it already exists

2018-01-17 Thread Waldek Kozaczuk
Geraldo,

Hi and welcome to OSv!!!

I have seen you started contributing which is great. As far as todo/wish 
list I am not sure there is official one besides list of open issues in 
github which Nadav mentioned.

I have my own list. At the top of it is read-only filesystem and golang 
support which I have been working lately with Nadav and Benoit. Hopefully 
we will have it part of the master branch fairly soon.

If you are interested there are many other things that I have in mind that 
may help newcomers to OSv especially application developers that do not 
have much C++/make/gcc tool chain experience. I feel that the entry barrier 
is pretty high unless you are OS system developer. Which is not surprising 
given OSv is a unikernel which aims to fuse application with kernel.

Anyway here is a list and I can provide you with details:

   - Update and possibly reorganize documentation around building apps. 
   There are many "Porting ... " WIKI page that may be outdated. Especially 
   the Java one 
   - 
https://github.com/cloudius-systems/osv/wiki/Porting-Java-applications-to-OSv 
   - needs to be updated. This days we have number of newer Java JDKs 
   supported (ls apps/openjdk*) and one needs to know how to build java app 
   image that uses specific JDK. I think we also do not have any Wiki page 
   about Python.
   - Add some kind of "Getting Started" page for application developer that 
   simply wan to try to use their favorite app on OSv.
   - Link OSv documentation with MikelAngelo capstan. If you are familiar 
   with Docker file capstan is a build tool written in Golang that provides 
   similar mechanism to build OSv images. There is old capstan 
   (https://github.com/cloudius-systems/capstan) and new one from MikelAngelo 
   (https://github.com/mikelangelo-project/capstan) that adds many new 
   features - composing, runtimes. Here is pretty nice user guide 
   - 
https://www.mikelangelo-project.eu/technology/unikernel-application-management-users-manual/.
 
   It would be nice to at least point people to it from OSv github.
   - Investigate what it would take to automate publishing of OSv kernel 
   (using MikelAngelo capstan packages project 
   - 
https://www.mikelangelo-project.eu/2017/08/the-art-of-preparing-osv-packages/) 
   so that application developers can use capstan and point to specific kernel 
   version. This would probably require some public S3 bucket where the kernel 
   would be published to. We could also publish some most popular runtime 
   packages - Java, Node, Python, eventually go.   

Best regards,
Waldek

On Thursday, January 11, 2018 at 7:45:12 AM UTC-5, Nadav Har'El wrote:
>
>
> On Thu, Jan 11, 2018 at 2:17 PM, Geraldo Netto  > wrote:
>
>> Hello Nadav/All,
>>
>> Thanks for your review, I think we can also check with md5/sha1
>> Will get back to you as soon as I finish it :)
>>
>> Out of my curiosity, do we have any consolidated list of to do/fix 
>> me/wish list?
>>
>
> We have https://github.com/cloudius-systems/osv/issues
> It's a pretty big list.
>
>  
>
>> I saw the todo file,
>>
>
> This is probably out of date. I didn't even remember we had this ;-)
>
> Nadav.
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [PATCH 1/2] * avoid downloading tomcat if it already exists

2018-01-11 Thread Nadav Har'El
On Thu, Jan 11, 2018 at 2:17 PM, Geraldo Netto 
wrote:

> Hello Nadav/All,
>
> Thanks for your review, I think we can also check with md5/sha1
> Will get back to you as soon as I finish it :)
>
> Out of my curiosity, do we have any consolidated list of to do/fix me/wish
> list?
>

We have https://github.com/cloudius-systems/osv/issues
It's a pretty big list.



> I saw the todo file,
>

This is probably out of date. I didn't even remember we had this ;-)

Nadav.

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [PATCH 1/2] * avoid downloading tomcat if it already exists

2018-01-11 Thread Geraldo Netto
Hello Nadav/All,

Thanks for your review, I think we can also check with md5/sha1
Will get back to you as soon as I finish it :)

Out of my curiosity, do we have any consolidated list of to do/fix me/wish
list?
I saw the todo file, the issues section and the 2 summer of code wiki pages
I think I can mainly contribute with shell script/python/java by now
But I'm also interested in updating musl libc/file system support
(I don't want to create any expectation because I don't really know
c/c++/asm)


Kind Regards,

Geraldo Netto
Sapere Aude => Non dvcor, dvco
http://exdev.sf.net/

On 11 January 2018 at 07:47, Nadav Har'El  wrote:

>
> On Wed, Jan 10, 2018 at 2:45 PM, geraldo netto 
> wrote:
>
>> Signed-off-by: geraldo netto 
>> ---
>>  tomcat/GET | 7 ++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/tomcat/GET b/tomcat/GET
>> index b96d963..35351d8 100755
>> --- a/tomcat/GET
>> +++ b/tomcat/GET
>> @@ -8,7 +8,12 @@ archive=$dir.tar.gz
>>
>>  mkdir -p upstream
>>  pushd upstream
>> -wget http://archive.apache.org/dist/tomcat/tomcat-${MAJOR}/v${
>> VERSION}/bin/${archive}
>> +
>> +if [ ! -f $archive ];
>> +then
>> +wget http://archive.apache.org/dist/tomcat/tomcat-${MAJOR}/v${
>> VERSION}/bin/${archive}
>> +fi
>> +
>>
>
> You can also use "wget -nc" to do the same with fewer lines of code.
>
> But what bothers me is that this only tests if the file exists. If someone
> or something previously interrupted a download in the middle, the file will
> exist, but will be incomplete.
> How about using "wget -c" to resume the download, or do nothing if it
> already finished (although this "nothing" will involve a connection to the
> server, so will take a bit of time)?
>
>
>>  tar zxvf $archive
>>
>>  pushd $dir
>> --
>> 2.7.4
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OSv Development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to osv-dev+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [PATCH 1/2] * avoid downloading tomcat if it already exists

2018-01-11 Thread Nadav Har'El
On Wed, Jan 10, 2018 at 2:45 PM, geraldo netto 
wrote:

> Signed-off-by: geraldo netto 
> ---
>  tomcat/GET | 7 ++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tomcat/GET b/tomcat/GET
> index b96d963..35351d8 100755
> --- a/tomcat/GET
> +++ b/tomcat/GET
> @@ -8,7 +8,12 @@ archive=$dir.tar.gz
>
>  mkdir -p upstream
>  pushd upstream
> -wget http://archive.apache.org/dist/tomcat/tomcat-${MAJOR}/v$
> {VERSION}/bin/${archive}
> +
> +if [ ! -f $archive ];
> +then
> +wget http://archive.apache.org/dist/tomcat/tomcat-${MAJOR}/v$
> {VERSION}/bin/${archive}
> +fi
> +
>

You can also use "wget -nc" to do the same with fewer lines of code.

But what bothers me is that this only tests if the file exists. If someone
or something previously interrupted a download in the middle, the file will
exist, but will be incomplete.
How about using "wget -c" to resume the download, or do nothing if it
already finished (although this "nothing" will involve a connection to the
server, so will take a bit of time)?


>  tar zxvf $archive
>
>  pushd $dir
> --
> 2.7.4
>
> --
> You received this message because you are subscribed to the Google Groups
> "OSv Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osv-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.