fix: fixed dev container, start.sh and refactored post deployment scripts #413
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.
Purpose
This pull request introduces several updates to improve the development environment, streamline deployment processes, and enhance script robustness. Key changes include updates to the dev container configuration, adjustments to deployment scripts, and documentation improvements.
Development Environment Updates:
.devcontainer/devcontainer.jsonto replacepostStartCommandwithpostCreateCommand, which now runs a newsetup_env.shscript for environment setup. Added Node.js, Azure CLI, and Azure Dev CLI features for enhanced tooling. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-24ad71c8613ddcf6fd23818cb3bb477a1fb6d83af4550b0bad43099813088686L6-R20),[[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-24ad71c8613ddcf6fd23818cb3bb477a1fb6d83af4550b0bad43099813088686L19-R33))setup_env.shscript to fetch the latest code and set up necessary script permissions. ([.devcontainer/setup_env.shR1-R7](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-884be0103962fdae0355a22edc0c050cf6051ef4952a1df7d2a9bff7a0d73ed6R1-R7))Deployment and Script Enhancements:
infra/scripts/copy_kb_files.shto include retries for Azure role assignment verification and reintroduced logic to handle zip file extraction and uploads. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-62df67e895a2f88a1ba5b89ba176066fd9b5cfb6eee33b274b1f61bac30ba603R41-R57),[[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-62df67e895a2f88a1ba5b89ba176066fd9b5cfb6eee33b274b1f61bac30ba603R66-R86))infra/scripts/process_sample_data.shto fetch missing parameters from the Azure Developer CLI environment, reducing manual input requirements. ([infra/scripts/process_sample_data.shR11-R35](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-5f42277e379c1334fbdc9a52828c031d1620d82b99cded3dc825000a68e0ae0cR11-R35))infra/scripts/run_create_index_scripts.shto dynamically detect the Python version, improve virtual environment activation, and handle script errors more gracefully. ([infra/scripts/run_create_index_scripts.shR75-R141](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-21e11cc6b3117a93e991ffaf6e0fb1169e58a590feb0085a11099801b0edb601R75-R141))Documentation Improvements:
README_LOCAL.mdto clarify instructions for local setup, including references to thesrcfolder for.envand deployment commands. Added support for bothstart.cmdandstart.shscripts. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-bcf42577702c01e3f56c2b67075763796a7b2142e8c9ab87ae47d1819cfd8211L4-R4),[[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-bcf42577702c01e3f56c2b67075763796a7b2142e8c9ab87ae47d1819cfd8211L20-R20),[[3]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-bcf42577702c01e3f56c2b67075763796a7b2142e8c9ab87ae47d1819cfd8211L78-R81))Other Changes:
.vscode/launch.jsonto set the working directory tosrcfor Python debugging. ([.vscode/launch.jsonL9-R9](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-bd5430ee7c51dc892a67b3f2829d1f5b6d223f0fd48b82322cfd45baf9f5e945L9-R9))src/start.shto restore Python packages before starting the backend and simplified backend startup commands. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-408951acb4e1dd1f37de3d4508358574cde6c06106566f250e75ab2af0cb231dR5-R14),[[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/413/files#diff-408951acb4e1dd1f37de3d4508358574cde6c06106566f250e75ab2af0cb231dL25-R38))Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information