Open limnh opened 5 years ago
I would like to learn more efficient practices of testing locally.
I think in the short term, we're fine filling that bucket up..but at some point, we're gonna find ourselves not changing that image for a while, so it wouldn't be a bad thing to no let old ones linger. That might be some value in a promotion process or something...e.g "I like this one" then rename it to something and have your script match on some string that isn't what it's renamed to. There are a few ways to solve this problem, just need to think about all the edge cases. Because this is all in source control (git), should we need to build a specific image, we could in the event that one got deleted...but should we find ourselves in a situation where we need to revert quickly, we're at the mercy of the amount of time it takes to build an image and the availability of that pipeline...So having the images (some at least) readily available is more advantageous than having to push a specific commit through the pipeline again
PACKER_LOG=1
in there? On one hand, it ensures that circle doesn’t timeout due to no output in 10 minutes. On the other, the output to the circleci console is so long that you have to download the full file to see the whole logs.
Where I left off on Friday:
Daily To-Dos:
aws s3 ls
to list files in the s3 bucket to confirm that the image was uploaded successfully. be kind and allow people to avoid the aws console.Issues/Questions:
git add
, which github did not like.aws ls s3
to the CircleCI console?Solutions:
tbw-kvm-guest-s3-access
policy and added thetbw-kvm-guest-images-s3
user to it."inline": "echo 'aws s3 ls s3://$S3_BUCKET --human-readable --recursive --summarize'"
to thepacker.json
file.~