Skip to content
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

Refactor app container file system and enable WEBSITES_ENABLE_APP_SERVICE_STORAGE #1774

Closed
3 tasks
thekaveman opened this issue Nov 2, 2023 · 2 comments
Closed
3 tasks
Labels
infrastructure Terraform, Azure, etc.

Comments

@thekaveman
Copy link
Member

This is a follow up to #1763

Now we can customize the location that Django creates and looks for its Sqlite database file 👍 But we can't write to a persistent storage location, because our app service container overwrites the Azure-provided persistent file system each restart. So it can't be used to maintain our database yet.

Further, due to the way our Docker image build structures the app's files, we can't take advantage of this local storage -- both would be competing to co-exist under /home. We need this directory to remain stable for the Azure filesystem, and we need the app to execute from a different directory.

Acceptance Criteria

  • the Docker image build sets a non-/home based directory as the root of the app container
  • WEBSITES_ENABLE_APP_SERVICE_STORAGE is true
  • App config django-db-dir is /home/site/wwwroot

Additional context

Azure docs: Use persistent shared storage

Potential alternative to #1773

@thekaveman thekaveman added the infrastructure Terraform, Azure, etc. label Nov 2, 2023
@thekaveman thekaveman added this to the Admin tool: v1 milestone Nov 2, 2023
@thekaveman thekaveman moved this from Todo to Paused in Digital Services Nov 2, 2023
@thekaveman
Copy link
Member Author

Trying #1773 first because that would be simpler / fewer changes to the app structure.

@thekaveman
Copy link
Member Author

Closing this as it looks like #1773 works!

We can re-open later if we want to try this approach.

@thekaveman thekaveman closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
@github-project-automation github-project-automation bot moved this from Paused to Done in Digital Services Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Terraform, Azure, etc.
Projects
Status: Done
Development

No branches or pull requests

1 participant