[stack] Sharing binaries built by stack

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[stack] Sharing binaries built by stack

Arnaud Bailly-2
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

--
Reply | Threaded
Open this post in threaded view
|

Re: [stack] Sharing binaries built by stack

Michael Snoyman
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 <[hidden email]> 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

--

--
Reply | Threaded
Open this post in threaded view
|

Re: [stack] Sharing binaries built by stack

Arnaud Bailly-2
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 <[hidden email]> 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 <[hidden email]> 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

--


--
Reply | Threaded
Open this post in threaded view
|

Re: [stack] Sharing binaries built by stack

Michael Snoyman

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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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

--


--

--
Reply | Threaded
Open this post in threaded view
|

Re: [stack] Sharing binaries built by stack

Arnaud Bailly-2
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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

--


--

--
Reply | Threaded
Open this post in threaded view
|

Re: [stack] Sharing binaries built by stack

Michael Snoyman

Exactly


On Mon, Nov 7, 2016, 9:11 AM Arnaud Bailly <[hidden email]> wrote:
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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

--


--

--

--