Skip to content

Setting Up the Environment

Setup everything in a few minutes

Thanks to the magic of Docker and VSCode we can launch a running environment really quick! ๐ŸŽ‰

You can choose how to do it:

Local Environment

Thanks to the magic of the DevContainers we can simply, clone the repo, open VSCode and launch a full ready environment clicking a single button. ๐Ÿ˜„

You need Docker Installed

In order to use DevContainers you need to have Docker installed in your computer. If you don't have it, you can download it from here.

Install the VSCode pluggin "Dev-Containers"

In order to use DevContainers you need to have the VSCode pluggin Dev Containers.

You can do it manually:

setup_10

Or by pressing:

  1. Press Ctrl+P
  2. Paste ext install ms-vscode-remote.remote-containers
  3. Press Enter

1. Clone the repository

Run this command

git clone `https://github.com/<your_user>/mlops-course.git`

2. Open VSCode

Launch VSCode and open the folder of the repo.

On linux or Mac: Run this command

cd mlops-course/
code .

3. Launch the Devcontainer

Click on the bottom-right blue button Reopen in Container (wait, first time takes some time to run).

devcontainer_gif

4. Open MLFlow

A MLFlow server should start automatically (thanks to the magic of Docker Compose) at http://localhost:5000/. If it did not started automatically (or if you launched VSCode on the web), then follow this instructions:

  • ๐Ÿ‘‰ Click on: Ports
  • ๐Ÿ‘‰ Check there is a port 5000 open (if not add a port 5000)
  • ๐Ÿ‘‰ Click on: ๐ŸŒ

setup_05

Congrats!

๐ŸŽ‰ You are ready to go! ๐ŸŽ‰

Github Codespaces

GitHub Codespaces is like having a ready-to-use computer for writing and testing code, but it's all online. Imagine if your coding tools, like your text editor and programming languages, were available on the internet. With GitHub Codespaces, you can write and run your code in a web browser without needing to install everything on your personal computer. It's handy for collaborating with others and quickly starting coding projects, kind of like having your coding workspace in the cloud.

setup_01

You need a Github Account

In order to access to GitHub Codespaces you need to log in into your account or register if you have no account. Github provides 60 hours of computing at CodeSpaces for free! ๐Ÿค‘

1. Create a copy of the repository (fork)

setup_02

2. Launch a CodeSpace in VSCode

  • ๐Ÿ‘‰ Go to your fork at https://github.com/<your_user>/mlops-course
  • ๐Ÿ‘‰ Click on: <> Code > Open in > Open in Visual Studio Code

setup_07

Accept all the pop-ups that appear

setup_08 setup_09

Alternative: you can also launch VSCode in the web

๐Ÿ’ก If you have not installed VSCode at your computer this is a (even more) straightforward way to go.

  • ๐Ÿ‘‰ Go to your fork at https://github.com/<your_user>/mlops-course
  • ๐Ÿ‘‰ Click on Code > Create codespace on main

setup_03

  • ๐Ÿ‘‰ Wait for the CodeSpace to launch

setup_04

Don't forget to stop your CodeSpace once you've finished!

Remember that you "only" have 60 hours / month of free CodeSpaces. But no worries if you forget to do it, after a time of inactivity (if you closed the tab), the CodeSpace will automatically turn off. ๐Ÿ‘

setup_06

3. Open MLFlow

A MLFlow server should start automatically (thanks to the magic of Docker Compose) at http://localhost:5000/. If it did not started automatically (or if you launched VSCode on the web), then follow this instructions:

  • ๐Ÿ‘‰ Click on: Ports
  • ๐Ÿ‘‰ Check there is a port 5000 open (if not add a port 5000)
  • ๐Ÿ‘‰ Click on: ๐ŸŒ

setup_05

Congrats!

๐ŸŽ‰ You are ready to go! ๐ŸŽ‰