How to restore an external database during the CI/CD run and connect the BC container to it? #1901
Unanswered
christianbraeunlich
asked this question in
Q&A
Replies: 1 comment
-
PipelineInitialize.ps1 and PipelineFinalize.ps1 seem like good overrides to use in this case. You could also restore the database as part of your NewBcContainer.ps1 override as long as it happens prior to calling New-BCContainer. Alternatively, if you have a .bak file you could also download it in the NewBcContainer.ps1 override and from there call New-BCContainer with the bakFile parameter. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
during the Continuous Integration process,
we want to connect the BC containers to an external database that is restored before the container is created,
in order to run our builds/tests for this database.
The section “Run-AlPipeline Script Override” in the file AL-Go/Scenarios/settings.md (https://github.com/microsoft/AL-Go/blob/main/Scenarios/settings.md# run-alpipeline-script-override),
mentions that “The Run-AlPipeline function supports override functions for creating containers, compiling apps, and many other things.”
I see that I could use the NewBcContainer.ps1 and provide the database information, but I first need to restore the external database on the database server, so a trigger event to add a custom script would be desirable, but I haven't found it yet,
or perhaps there is a better solution for this.
This leads to the question: "How to restore an external database during the CI/CD run and connect the BC container to it?"
I see the following steps to achieve the goal:
Thanks in advance,
/Christian
Beta Was this translation helpful? Give feedback.
All reactions