subuser icon indicating copy to clipboard operation
subuser copied to clipboard

There should be a way to install binary images to make things faster

Open timthelion opened this issue 11 years ago • 9 comments

timthelion avatar Feb 12 '14 17:02 timthelion

What do you mean by that - have no idea?

peter1000 avatar Feb 17 '14 18:02 peter1000

Like with the docker pull command instead of building the images.

timthelion avatar Feb 17 '14 22:02 timthelion

In my opinion this is already included:

  • we need a permission file as this is central to subuser so just use a docker file with a single FROM and we are ready to go..... takes 3 minutes

e.g.

https://index.docker.io/u/realyze/vnc/

Dockerfile:

FROM realyze/vnc

subuser install

workerm@notebook:~$ subuser install realyze_vnc
Installing realyze_vnc
Uploading context  2.56 kB
Uploading context 
Step 0 : FROM realyze/vnc
Pulling repository realyze/vnc
651351500525: Pulling image (latest) from realyze/vnc, endpoint: https://cdn-reg651351500525: Pulling dependent layers 

the permission file needs a bit more work (maybe as one has to find the path to a executable or so but all in all I thing it is implemented in subuser ...except I missed something

BUT: in your contribution guidelines you do NOT allow such: only official images and subuser own once :)

peter1000 avatar Feb 18 '14 08:02 peter1000

I was thinking more along the lines of the ability to have a docker store which mirrored the programsThatCanBeInstalled list, so that one would have the choice of subuser install firefox(slower) or subuser install firefox --from-store(faster). That's all.

timthelion avatar Feb 18 '14 15:02 timthelion

Ah you mean a register subuser repo on docker https://index.docker.io/ with some official subuser controlled (by you) supported images?

peter1000 avatar Feb 18 '14 15:02 peter1000

do we still want to implement --from-store or does the upcoming: from saved image is enough.

I think an official subuser repo (controlled by yourself) might be for some users quite nice: personally I don't care because I like to install it from own base images and save it to disk

but for someone just testing subuser might be quite nice

peter1000 avatar Feb 19 '14 20:02 peter1000

In terms of speed, the difference in pulling from the store would seem quite negligible. The only real advantage I can see to implementing this is in the following scenario: While attempting to build an image, there are some urls or repos that are temporarily or permanently down.

Sepero avatar Jun 15 '14 03:06 Sepero

@Sepero it is also usefull when the image has to build things from source.

timthelion avatar Jun 15 '14 08:06 timthelion

Valid point

Sepero avatar Jun 15 '14 08:06 Sepero