On Sun, 1 Dec 2019 at 20:37, Sam Ruby <ru...@intertwingly.net> wrote:

> On Sun, Dec 1, 2019 at 9:00 AM sebb <seb...@gmail.com> wrote:
> >
> > It takes a long time to install all the gems after setting up a new
> > workspace.
> >
> > Would it be possible to install these into the container image, so a new
> > workspace can be deployed more easily?
> >
> > I don't think there's any particular need for the gems to reside on the
> > host rather than the container.
>
> It's complicated.
>
> Yes, installing gems takes a while.  Moving the installation to the
> build step will make that step take longer.
>
> During development, it is not uncommon to want a new gem.  Redoing the
> image (and reinstalling all gems) would take a while.


Surely it would only be necessary to add the new version of the gem at the
end?
i.e. install the later one over the original.
This will eventually need to be tidied up, but meanwhile deployment should
be fairly quick.

Putting the new
> gem into the (ephemeral) container may mean that it goes away when the
> container is stopped.  Better options would be to put the gems into a
> volume or on the host.
>
>
They are currently on the host, but that is not currently shared between
installations.

One nice thing about either a volume or the host is that you can
> rebuild your image and you generally won't need to reinstall gems.
>
>
At the moment the gems do get re-installed if one creates a new workspace.


> > It should also fix the wunderbar bootstrap issue.
>
> Apparently that is already fixed?
>
>
Yes.


> > S.
>
> - Sam Ruby
>

Reply via email to