-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: parameterise s3 build cache setup #465
Conversation
Are you planning to make the bucket publicly accessible? As Protocol Labs' was previously? |
@achingbrain complementing @AlejandroCabeza question, is there any cache that can be used at the moment, or from now on projects using this repo will need to set up their own individually? |
Co-authored-by: Alex Potsides <[email protected]>
I don't know, sorry - you may need to stand your own s3 bucket up. If that adds too much overhead, you could apply for a grant from the libp2p foundation to contribute to a shared infrastructure? |
Alright, thanks for the answer! |
572d20f
to
31176a4
Compare
31176a4
to
69f4fcc
Compare
const cachePath = fs.mkdtempSync(path.join(os.tmpdir(), 'cache')) | ||
const archivePath = path.join(cachePath, 'archive.tar.gz') | ||
const dockerLoadedMsg = child_process.execSync(`aws s3 cp s3://${AWS_BUCKET}/imageCache/${cacheKey}-${arch}.tar.gz ${archivePath} && docker image load -i ${archivePath}`).toString(); | ||
const loadedImageId = dockerLoadedMsg.match(/Loaded image( ID)?: (.*)/)[2]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const loadedImageId = dockerLoadedMsg.match(/Loaded image( ID)?: (.*)/)[2]; | |
const loadedImageId = dockerLoadedMsg.match(/Loaded image( ID)?: (.*)/)[2]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but CI is failing
* upstream/master: chore: update the link to the interop dashboard [skip ci] chore: parameterise s3 build cache setup (libp2p#465) chore: Create funding.json
As we're setting up a new cache bucket, we'd like to be able to control its' configuration via GitHub vars/secrets fully.