Developer Environment Configuration#
Purpose#
This document describes setting up development environment and toolset used for coding and infrastructure provisioning withing nn-databricks team.
VSCode Setup#
VSCode is a recommended text editor/IDE for source code related work.
Recommended plugins#
- Spell checker - a basic spell checker that works well with code and documents.
- GitLens - powerful Git functionality like in-editor blame annotations, hovers, CodeLens, and more.
- Markdown All in One - All you need for Markdown (keyboard shortcuts, table of contents, auto preview and more).
- PlantUML - rich PlantUML support for Visual Studio Code
- Python - rich support for Python language.
- Pylint - pylint support for VSCode.
- Black Formatter - support for the Black formatter.
- GitHub Copilot - AI pair programmer tool that helps you write code faster and smarter.
- HashiCorp Terraform - features for Terraform and Terraform Stacks files such as syntax highlighting, IntelliSense, code navigation, code formatting, module explorer and much more!
- Bicep - is capable of many of the features you would expect out of other language tooling for Bicep.
User Configuration#
Pres Ctrl + Shift + P and type
> Preferences: Open User Settings (JSON)
The settings recommended to be set:
{
"files.insertFinalNewline": true, # Sets empty new line in the end of each file
"files.trimFinalNewlines": true, # Trims new lines in the end of the file.
"editor.rulers": [
100, # Recommended limiter for Python code
120 # Recommended limiter for docs and other code
],
"files.trimTrailingWhitespace": true, # Avoid trailing whitespaces
}
Working with the containers#
Rancher Desktop is installed at your Cloud Desktop M environment. It can be used for single container spin up or
containers orchestration together.
nerdctl is a Docker-compatible CLI for containerd. The primary goal of nerdctl is to facilitate experimenting
with cutting-edge features of containerd that are not present in Docker. However it is fully compatible with Docker.
[!IMPORTANT] The containers run with interactive mode (-i) can be launched only from Powershell console, not from
git-bash
To spin-up a container you need first to run Rancher Desktop application from your Desktop.
Wait for the environment up and running. Sometimes it can throw an error, however it does not prevent you from running the container. After the environment is initialized you can run a container
nerdctl run -it --rm ubuntu:24.04