Setting up a Docker Container and VS Code

This tutorial goes over setting up a Docker container in VSCode for tsdat.

Start by installing Docker and VSCode. It’s a good idea to familiarize yourself with the VScode interface, and feel free to go through Docker’s initial tutorial after installation. It goes through basics on setting up a Docker “engine” to make sure it’s working - you don’t need to know how to do this (or really anything in Docker) to use Tsdat.

[Note: if you want to uninstall Docker, there is a series of steps to completely `remove it <https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon>’_.

Once you have VS Code and Docker downloaded and installed:

  1. Open VSCode -> New Window -> Open Folder -> open cloned template folder (“ncei_global_marine_data_ingest”)



  1. VSCode will prompt you if you want to open in Docker -> Click yes and wait for docker to initiate, which takes a minute or two.



  1. VSCode will prompt if you want to install dependencies -> Hit install; you can close the new windows it opens


  1. VS Code will then prompt you to restart window after pylance is installed -> Hit yes again and VS Code will reboot


Congrats! Python environment handling done.