threefoldtech / 0-hub

Threefold Images Hub
https://hub.grid.tf
Apache License 2.0
1 stars 1 forks source link

entry point for an flist missing in hub #38

Closed gmachtel closed 4 years ago

gmachtel commented 4 years ago

When an flist creator generates an flist and publishes it on the hub, there might be usage parameters needed such as an entry point. No possibility for the moment to add this entry point as a parameter or in an instruction manual in hub.grid.tf

Add a simple free text field to add this info ?

maxux commented 4 years ago

Thanks, here are multiple things regarding this issue.

First, I agree about the info/readme on the hub, we need to add something quickly. People probably use the hub uploader for most of their build, they don't do home made flist. I'm thinking about a text/markdown readme present on the root directory of the archive uploaded and this file would be used as readme on the hub to describe contents.

This is IMO doable quickly to get something to show. Would that be good for now ?

Second, flist itself support few metadata (entrypoing, environment variable, port mapping, mount volumes, readme, storage-url, ...). All of theses settings should be used to setup container settings. Right now, when a container start on Zero-OS, only the /.startup.toml file is used, which describe some of theses parameters.

@zaibon suggested to get a working workflow working like Dockerfile which would build, set parameters and upload flist automatically. This would come later.

gmachtel commented 4 years ago

Had feedback from users, they agree a readme box is a nice solution.

zaibon commented 4 years ago

@maxux Let's add a section about flist in the sdk manual where we document all feature and how to use the new readme feature.

maxux commented 4 years ago

https://github.com/threefoldfoundation/info_tfgridsdk/pull/115

maxux commented 4 years ago

In verification: moved to production hub.