This used to exist in the form of https://hub.docker.com/r/fpco/stack-full/ , but it is no longer updated. Not sure why, but my guess is that the it wasn't worth the effort to maintain, and our workflows have shifted away from using it.
It may be interesting to write a script that gets all the package names in a snapshot, and passes them to `stack build`. Would be curious to see if that works. In theory, it should, I believe that the `stack-build` image should have all 3rd party libraries needed to build all of stackage. -Michael On Fri, Dec 8, 2017 at 5:07 AM, Alexander Bondarenko <[email protected]> wrote: > Hello, > > That's the question that bugs me a lot recently. > Mine has a twist though. I'd like to have multiple resolvers available > (with their resp. GHCs), but only a subset of the packages needed to build > my projects with. > You could make a complete mirror with haskell-stack-mirror-script[1], but > it'll take ~30GB and some time. > What I need is a stack-root-in-a-box you can drop to a new machine and get > building. > > I've started (yet again) to produce such a tool that, given a config with > projects and paths, would produce an immutable stack root with dependencies > preinstalled. > And then maybe wrap it up as a deb package / docker image / remote > upload... > > [1]: https://github.com/AleXoundOS/haskell-stack-mirror-script > > On Friday, December 8, 2017 at 9:37:57 AM UTC+3, Greg Steuck wrote: >> >> How hard is it to keep an offline stack environment? >> >> Imagine I have sufficient disk and occasional network connectivity. I >> want to download everything I may ever need for using a fixed version of >> stack (1.6.1) and a fixed version of resolver (lts-9.17). >> >> I want to be in a position where I can run any stack command while >> disconnected and have it not access the network even as my project grows >> more dependencies within lts boundaries. >> >> I tried to search Google for things similar to this with only 2 year old >> stack-offline <https://github.com/cblp/stack-offline> matching my >> search. Is it the best option out there? >> >> Thanks >> Greg >> > -- > You received this message because you are subscribed to the Google Groups > "haskell-stack" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/haskell-stack/c8fce138-e87b-4e40-9bb5-4d20a8ebff7b% > 40googlegroups.com > <https://groups.google.com/d/msgid/haskell-stack/c8fce138-e87b-4e40-9bb5-4d20a8ebff7b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "haskell-stack" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAEYHaY5MEkg9om4_TtBDcnYRCwOJh2Mq3tu%3D9JE-op0ku%3D4f%3Dw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
