![]() For the web app image, this is as simple as: Pre-building dev containers is done via the devcontainer CLI, and also requires a devcontainer.json. I loved the sound of this so I created a new repository called GigLocal/devcontainer where all Dev Containers images related to the project are now stored. This can be achieved with a simple CI/CD pipeline to automatically build and deploy the images. To reduce the need to build images locally, it’s possible to pre-build your dev container images and store them in a docker registry. devcontainer folder which I then edited to suit my project’s needs. Selecting this template creates a bunch of files in a. I got going with this project by choosing the C# (.NET) and MS SQL template: There’s lots to know about Dev Container, but the easiest way to get up and running is to open an existing folder in a container and choose one of the pre-defined templates. Once the container is built, you can open VS Code inside the container, just as if you were developing locally! This saves a tonne of time as the installation is automated and everything the app needs is in the container! Within this file, you define the required services, as well as configuration for your specific application. devcontainer folder in the root of your VS Code workspace. This significantly reduces the time for a new developer to get started, whilst also reducing the chance of incorrect installations or getting stuck during installation.Ī Dev Container is defined by a devcontainer.json file that must be inside a. In this post, I’ll walk through how to configure a Dev Container to develop an ASP.NET Core web app with an MS SQL Server database on macOS, Linux or Windows! Dev ContainerĪ Dev Container allows a project’s dependencies and dev tooling to be abstracted away via Docker the Remote Development VS Code extension pack. ![]() My current project Gig Local had this very problem, so I decided enough was enough, and went all in with Dev Containers to make local development easier. There’s lots of custom scripts needed and it’s complicated for a new developer to get started in a project like this. ![]() Developing ASP.NET Core web apps with MS SQL Server databases on macOS is not very straightforward, as I’ve blogged about before.
0 Comments
Leave a Reply. |