[stack] Sharing binaries built by stack

69 views
Skip to first unread message

Arnaud Bailly

unread,
Nov 5, 2016, 5:59:50 AM11/5/16
to Commercial Haskell
Hello,

In order to speed up builds on our CI infrastructure when we spin up new machines, I would like to share binaries of all the libraries built by stack. What's the best/recommended way of doing that?

Thanks,
-- 
Arnaud Bailly

twitter: abailly
skype: arnaud-bailly

Michael Snoyman

unread,
Nov 7, 2016, 1:34:11 AM11/7/16
to Arnaud Bailly, Commercial Haskell
If you're using the same user and directory structure, you can simply copy your ~/.stack directory around. This is essentially what Travis's caching does.

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhaskell+unsubscribe@googlegroups.com.
To post to this group, send email to commercialhaskell@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/commercialhaskell/CAL4zPaqP-1VzzDP%2B5L59gMnmmy8gy%3DAsn0uDTJXNUAoPTB4-oA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Arnaud Bailly

unread,
Nov 7, 2016, 2:07:56 AM11/7/16
to Michael Snoyman, Commercial Haskell
Thanks Michael. Yes, that's mostly the case, or I could ensure this is the case. This needs to be same user because some components inside .stack are using absolut paths, right?

-- 
Arnaud Bailly

twitter: abailly
skype: arnaud-bailly

Michael Snoyman

unread,
Nov 7, 2016, 2:10:19 AM11/7/16
to Arnaud Bailly, Commercial Haskell

Yes. I think that simply setting STACK_ROOT would allow you to successfully do this with different users since it will ensure consistent filepaths.


On Mon, Nov 7, 2016, 9:07 AM Arnaud Bailly <arnaud...@gmail.com> wrote:
Thanks Michael. Yes, that's mostly the case, or I could ensure this is the case. This needs to be same user because some components inside .stack are using absolut paths, right?

-- 
Arnaud Bailly

twitter: abailly
skype: arnaud-bailly

On Mon, Nov 7, 2016 at 7:33 AM, Michael Snoyman <mic...@snoyman.com> wrote:
If you're using the same user and directory structure, you can simply copy your ~/.stack directory around. This is essentially what Travis's caching does.
On Sat, Nov 5, 2016 at 11:59 AM, Arnaud Bailly <arnaud...@gmail.com> wrote:
Hello,

In order to speed up builds on our CI infrastructure when we spin up new machines, I would like to share binaries of all the libraries built by stack. What's the best/recommended way of doing that?

Thanks,
-- 
Arnaud Bailly

twitter: abailly
skype: arnaud-bailly

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhask...@googlegroups.com.
To post to this group, send email to commerci...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhask...@googlegroups.com.
To post to this group, send email to commerci...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/commercialhaskell/CAL4zPapg3ZKjDs5a3ad1GNGxVdRBgnoamaAXQjVTtRdoT6reRA%40mail.gmail.com.

Arnaud Bailly

unread,
Nov 7, 2016, 2:11:56 AM11/7/16
to Michael Snoyman, Commercial Haskell
You mean, setting STACK_ROOT to some well-known location wherever we are using shared .stack? Like

$ STACK_ROOT=/stack stack build ...

?

-- 
Arnaud Bailly

twitter: abailly
skype: arnaud-bailly

On Mon, Nov 7, 2016 at 8:10 AM, Michael Snoyman <mic...@snoyman.com> wrote:

Yes. I think that simply setting STACK_ROOT would allow you to successfully do this with different users since it will ensure consistent filepaths.


On Mon, Nov 7, 2016, 9:07 AM Arnaud Bailly <arnaud...@gmail.com> wrote:
Thanks Michael. Yes, that's mostly the case, or I could ensure this is the case. This needs to be same user because some components inside .stack are using absolut paths, right?

-- 
Arnaud Bailly

twitter: abailly
skype: arnaud-bailly

On Mon, Nov 7, 2016 at 7:33 AM, Michael Snoyman <mic...@snoyman.com> wrote:
If you're using the same user and directory structure, you can simply copy your ~/.stack directory around. This is essentially what Travis's caching does.
On Sat, Nov 5, 2016 at 11:59 AM, Arnaud Bailly <arnaud...@gmail.com> wrote:
Hello,

In order to speed up builds on our CI infrastructure when we spin up new machines, I would like to share binaries of all the libraries built by stack. What's the best/recommended way of doing that?

Thanks,
-- 
Arnaud Bailly

twitter: abailly
skype: arnaud-bailly

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhaskell+unsubscribe@googlegroups.com.
To post to this group, send email to commercialhaskell@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhaskell+unsubscribe@googlegroups.com.
To post to this group, send email to commercialhaskell@googlegroups.com.

Michael Snoyman

unread,
Nov 7, 2016, 2:15:21 AM11/7/16
to Arnaud Bailly, Commercial Haskell

Exactly


To unsubscribe from this group and stop receiving emails from it, send an email to commercialhask...@googlegroups.com.
To post to this group, send email to commerci...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhask...@googlegroups.com.
To post to this group, send email to commerci...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhask...@googlegroups.com.
To post to this group, send email to commerci...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/commercialhaskell/CAL4zPaoQdqnbzxFiwwORF6dX0yjsa%2BuH%2BMvL3WbzZ3KiHtUyTA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages