Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sam/build ami local #1547

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

Merged
merged 21 commits into from
May 2, 2025
Merged

Sam/build ami local #1547

merged 21 commits into from
May 2, 2025

Conversation

samrose
Copy link
Collaborator

@samrose samrose commented Apr 14, 2025

What kind of change does this PR introduce?

broke it down into 4 scripts or "apps"
trigger-nix-build: this one will run and monitor the initial nix build so that your current commit on your branch will get cached. Runs the workflow remotely monitors on your machine.
aws-vault exec supabase-dev -- nix run .#build-test-ami 15 will build the AMI for testing, and give you the AMI id if successful, based on your current branch commit. This will clean up the ec2 instances used to do the build when it's done.
A nix app that will run the testinfra tests against the AMI id you pass it from the previous build. This way you can build the AMI once, and test it many times, since AMI build is time consuming. You can rebuild AMI if needed with. This will also clean up it's ec2 instance
A nix app that will deregister the testing AMI when you are done testing.

@samrose samrose requested review from a team as code owners April 14, 2025 20:11
@samrose samrose marked this pull request as draft April 14, 2025 20:20
@samrose samrose force-pushed the sam/build-ami-local branch from d0258bf to d713475 Compare April 14, 2025 20:21
@samrose samrose force-pushed the sam/build-ami-local branch from 0db985e to 148af22 Compare April 30, 2025 17:42
@samrose samrose marked this pull request as ready for review May 1, 2025 18:49
@samrose samrose requested a review from soedirgo May 1, 2025 19:13
@samrose samrose merged commit 60f8fda into develop May 2, 2025
1 check passed
@samrose samrose deleted the sam/build-ami-local branch May 2, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants