-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Vscode devcontainers #3080
Vscode devcontainers #3080
Conversation
New Issues
|
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.
I'm so sorry for sitting on this to long, I still want to get this in and this will make things so much easier.
"vscode": { | ||
"settings": {}, | ||
"features": {}, | ||
"extensions": ["ms-dotnettools.csharp"] |
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.
Since I sat on this to long the C# Dev Kit has come out and we should probably use that instead.
"extensions": ["ms-dotnettools.csharp"] | |
"extensions": ["ms-dotnettools.csdevkit"] |
Co-authored-by: Justin Baur <[email protected]>
Co-authored-by: Justin Baur <[email protected]>
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.
Thank you so much, @MGibson1 you're up!
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.
I think I only have two comments, but this feature is totally new to me
- I might be old fashioned, but I like manually controlling when migrations are run in dev
⚠️ the correct sdk does not appear to be installed by the containers by default. Is it possible to add this to the post-install script?
|
|
||
echo "Running migrations..." | ||
sleep 5 # wait for DB container to start | ||
dotnet run --project ./util/MsSqlMigratorUtility "$SQL_CONNECTION_STRING" |
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.
🎉 -- this is how our cloud is now performing migrations.
I like where this is at but will let the other two guys give an approval. Warning: auto-merge is on. |
Type of change
Objective
This adds VSCode devcontainers, which should make the dev environment setup process easier for those that choose to utilize this workflow.
Code changes
.devcontainer/bitwarden_common/docker-compose.yml
: a baseline set of services that are used in both the internal and community dev configurations.devcontainer/(community_dev|internal_dev)/devcontainer.json
: the declaration files for the VSCode dev containers.devcontainer/internal_dev/docker-compose.override.yml
: adds Azurite container for internal dev config.devcontainer/(community_dev|internal_dev)/postCreateCommand.sh
: these optional one-time setup scripts configuresecrets.json
with the DB password, installation ID and key, and certificate thumbprints to enable runningsetup_secrets.ps1
automatically after the devcontainer initializesBefore you submit
dotnet format --verify-no-changes
) (required)