-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Migration bundles directly to a docker container #31999
Comments
We discussed this, but it is out-of-scope for the EF tool to handle all of this. |
Reopening to possibly re-discuss - the dotnet SDK now allows publishing directly to docker (blog post), so this may be quite easy. We've also had recent discussions about migration application best practices, and one thing that came up was deploying migrations to your production environment as containerized applications (/cc @davidfowl). |
Thank you guys! I've made the experience that most of the developers, I know are overstrained with building migration containers. Because of that I do have to consult many of my colleagues.Best regards,Bjego Sent from Android PhoneAm 31.10.2023 09:58 schrieb Shay Rojansky ***@***.***>:
Reopening to possibly re-discuss - the dotnet SDK now allows publishing directly to docker (blog post), so this may be quite easy.
We've also had recent discussions about migration application best practices, and one thing that came up was deploying migrations to your production environment as containerized applications (/cc @davidfowl).
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@roji do you need some more input, ideas or information which I may can contribute? |
@Bjego I think we're pretty clear on this; prioritizing and implementing it is another matter, of course (depending on competing priorities). |
I current build the container bundle migration with other Dockerfile in my repo. In kubernetes, we running bundle migration with job before container application with argocd presync hooks. |
I would like to set Env variable "ConnectionStrings__Conexao" in my terminal and running validation migration with command
I Current we use Task bash in the pipeline with "sed" and "replace_tokens" for replace connection string in the file "appsettings.json. |
Hi guys,
we are using initcontainers in kubernetes (on prem and on aks). Every team has to create pretty long dockerfiles to generate a migration bundle and let it end in a specific target.
This is not too easy for every developer
Problem
e.g.
Initscript:
Suggestion
As you see this is quite complex.
Because of that I'd love to have a command, which build a complete dockercontainer with just one command like:
This command should do all the efbundling and copying of appsettings.json into a docker container. That container should be configurable via environment variables like CONNECTIONSTRING.
Thanks in advance,
Bjego
The text was updated successfully, but these errors were encountered: