-
-
Notifications
You must be signed in to change notification settings - Fork 28
[#699] Added support for downloading DB from S3. #2256
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
.vortex/installer/tests/Fixtures/handler_process/db_download_source_s3/.env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| @@ -142,13 +142,16 @@ | ||
| VORTEX_DB_FILE=db.sql | ||
|
|
||
| # Database download source. | ||
| -VORTEX_DB_DOWNLOAD_SOURCE=url | ||
| +VORTEX_DB_DOWNLOAD_SOURCE=s3 | ||
|
|
||
| -# Database dump file sourced from a URL. | ||
| -# | ||
| -# HTTP Basic Authentication credentials should be embedded into the value. | ||
| -VORTEX_DB_DOWNLOAD_URL= | ||
| +# Database dump file sourced from S3. | ||
|
|
||
| +# AWS S3 bucket name for database download. | ||
| +VORTEX_DB_DOWNLOAD_S3_BUCKET= | ||
| + | ||
| +# AWS S3 region. | ||
| +VORTEX_DB_DOWNLOAD_S3_REGION=ap-southeast-2 | ||
| + | ||
| # Environment to download the database from. | ||
| # | ||
| # Applies to hosting environments. | ||
| @@ -199,17 +202,3 @@ | ||
| # with optional names in the format "email|name". | ||
| # Example: "to1@example.com|Jane Doe, to2@example.com|John Doe" | ||
| VORTEX_NOTIFY_EMAIL_RECIPIENTS="webmaster@star-wars.com|Webmaster" | ||
| - | ||
| -################################################################################ | ||
| -# DEMO # | ||
| -################################################################################ | ||
| -# # | ||
| -# Override project-specific values for demonstration purposes. # | ||
| -# Used to showcase Vortex without asking users to perform additional steps. # | ||
| -# # | ||
| -# Remove this section after completing database download integration. # | ||
| -# # | ||
| -################################################################################ | ||
| - | ||
| -# URL of the database used for demonstration with URL database download type. | ||
| -VORTEX_DB_DOWNLOAD_URL=https://github.com/drevops/vortex/releases/download/__VERSION__/db_d11.demo.sql |
11 changes: 11 additions & 0 deletions
11
.vortex/installer/tests/Fixtures/handler_process/db_download_source_s3/.env.local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| @@ -32,3 +32,10 @@ | ||
|
|
||
| # Always override existing downloaded DB dump. | ||
| VORTEX_DB_DOWNLOAD_FORCE=1 | ||
| + | ||
| +# Database dump file sourced from S3. | ||
| + | ||
| +# AWS access key for S3 database download. | ||
| +VORTEX_DB_DOWNLOAD_S3_ACCESS_KEY= | ||
| +# AWS secret key for S3 database download. | ||
| +VORTEX_DB_DOWNLOAD_S3_SECRET_KEY= |
11 changes: 11 additions & 0 deletions
11
.vortex/installer/tests/Fixtures/handler_process/db_download_source_s3/.env.local.example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| @@ -32,3 +32,10 @@ | ||
|
|
||
| # Always override existing downloaded DB dump. | ||
| VORTEX_DB_DOWNLOAD_FORCE=1 | ||
| + | ||
| +# Database dump file sourced from S3. | ||
| + | ||
| +# AWS access key for S3 database download. | ||
| +VORTEX_DB_DOWNLOAD_S3_ACCESS_KEY= | ||
| +# AWS secret key for S3 database download. | ||
| +VORTEX_DB_DOWNLOAD_S3_SECRET_KEY= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Fix dotenv-linter key order to avoid CI warnings.
Reorder the container registry variables to satisfy the UnorderedKey rule.
♻️ Suggested reorder
📝 Committable suggestion
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 78-78: [UnorderedKey] The VORTEX_CONTAINER_REGISTRY_PASS key should go before the VORTEX_CONTAINER_REGISTRY_USER key
(UnorderedKey)
🤖 Prompt for AI Agents