Yocto Project Discussions
 help / color / mirror / Atom feed
* SSTATE_MIRRORS with ssh/sftp fetchers #yocto
@ 2019-12-19 10:37 angeal1105
  2019-12-19 11:16 ` [yocto] " Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: angeal1105 @ 2019-12-19 10:37 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]

Hi everyone,

Recently, I tried to use the SSTATE_MIRRORS variable to get back sstate cache from a build machine shared amongst developers.
When I tried with the simple FILE fetcher, it worked great and resumed the work where the build machine stopped.
But when I tried to replace it with SSH and/or SFTP fetchers (setup to connect on my own machine), I had no errors or warnings, but the steps started from scratch, ignoring the sstate cache mirror.

The thing is that we can't use unauthenticated HTTP/FTP fetchers for corporate security reasons.
SSH and SFTP are convenients as we use crops and mount ssh keys inside to authenticate ourselves on corporate git servers.

Environment:

I'm using Yocto 2.6 (Thud) and CROPS.
I've set up my machine as SSH/SFTP server, and I tried it manually, it works: the connection is established (even in CROPS).

I defined the SSTATE_MIRRORS variable in the build/conf/local.conf file.
*Working* : SSTATE_MIRRORS = "file://.* file://{COMMON_PATH}/sstate-cache/PATH"
*Not working* : SSTATE_MIRRORS = "file://.* ssh://user@my-machine-ip/{COMMON_PATH}/sstate-cache/PATH"
*Not* *working* : SSTATE_MIRRORS = "file://.* sftp://user@my-machine-ip/{COMMON_PATH}/sstate-cache/PATH"

Do you have any idea on how to use these fetchers (or other SSH keys-based secure fetcher) to share sstate cache ?

Don't hesitate to ask for more information/tests from me.
Regards,
Anthony

[-- Attachment #2: Type: text/html, Size: 1667 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-20  9:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19 10:37 SSTATE_MIRRORS with ssh/sftp fetchers #yocto angeal1105
2019-12-19 11:16 ` [yocto] " Richard Purdie
2019-12-19 11:29   ` Ross Burton
2019-12-20  9:37     ` angeal1105

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox