Lädt...


🔧 Daytona Integration: A Step-by-Step Guide to Deploying ML Models


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Introduction

This is an article cum tutorial where I am going to describe my experience in adopting Daytona in my project building and also demonstrate the step-by-step process of how I adopted Daytona.

Let us divide the entire article into sections.

  • About Daytona
  • My experience
  • Step-by-step tutorial

About Daytona

Daytona is an open-source development environment manager software. It works based on the containerization of the entire development environment. With Daytona, we, as developers, can set up and run entire development environments, including all dependencies, using a single devcontainer.json file. We can run the environment with just two commands once the environment is set up. Daytona company also owns and maintains other great projects like ai-enablement-stack, backstage, and devcontainer.ai. It also owns and maintains other projects that work as extensions to Daytona.

My experience

Installing Daytona and setting up the environment for the first time has been very hectic. Thanks to devcontainer.ai, I could generate a devcontainer.json file. By AI or skill, creating the correct devcontainer.json file is the key to the smooth setup of your project. I couldn't get the correct JSON file from the AI, so I had to delete a few files, like Jupyter Notebook, to get the appropriate image for containerization.

After many failed and successful iterations of building and running the development, I have found the perfect flow of setting up and running a project in a git repo with a devcontainer.json file. Using the devcontainer.json, I have also learnt to create development containers independent of Daytona using "Dev Containers" under "Remote Development" in JetBrains' Pycharm Professional. I have learned the actual value of containerization and docker with all the processes I have completed.

Daytona Daemon

list of Daytona workspaces

Step-by-step tutorial

Note: This tutorial demonstrates the process of creating development containers with the development environment using Daytona for Windows machines.

  1. Download the daytona.exe file from

    https://download.daytona.io/daytona/latest/daytona-windows-amd64.exe
    

    or

    https://download.daytona.io/daytona/latest/daytona-windows-arm64.exe
    
  2. Add to Path and create a new environment variable with "daytona" as
    the variable name and "path/to/daytona.exe" as the variable value.

  3. Create the file ".devcontainer/devcontainer.json" in the home
    directory of your git repo. To create the file, you can either depend
    upon AI or your skill. You can also refer
    the below sample file.
    Note: Daytona currently accepts only online repos (GitHub/gitlab/bitbucket/etc).

    {
      "name": "Python Flask Application",
      "image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",
      "forwardPorts": [
        5000
      ],
      "customizations": {
        "vscode": {
          "settings": {
            "python.defaultInterpreterPath": "/usr/local/bin/python",
            "python.linting.enabled": true,
            "python.linting.pylintEnabled": true,
            "python.formatting.autopep8Path": "/usr/local/bin/autopep8",
            "python.formatting.blackPath": "/usr/local/bin/black",
            "python.linting.banditPath": "/usr/local/bin/bandit",
            "python.linting.flake8Path": "/usr/local/bin/flake8",
            "python.linting.mypyPath": "/usr/local/bin/mypy",
            "python.linting.pycodestylePath": "/usr/local/bin/pycodestyle",
            "python.linting.pydocstylePath": "/usr/local/bin/pydocstyle"
          },
          "extensions": [
            "ms-python.python",
            "ms-python.vscode-pylance"
          ]
        }
      },
      "postCreateCommand": "pip install -r requirements.txt"
    }
    
  4. Start the daytona server using the command:

    daytona serve
    

    Starting Daytona Server

  5. In a new terminal, create a workspace using the command: (replace with your repo link)

    daytona create <repo>
    
  6. run your workspace with the command:

    daytona run
    
  7. Select Linux

    VS Code starting workspace

  8. Check the checkbox and Click on "Yes, I trust the authors".

    Trusted Authors

  9. Run your app with command applicable for your tech stack. For example:

    flask run
    

    or

    python -m flask run
    

    or

    python app.py
    
...

🔧 First look into Daytona + TypeScript Integration


📈 28.49 Punkte
🔧 Programmierung

🔧 Getting Started with Daytona: A Beginner’s Guide to Development Environment Management (DEM)


📈 25.53 Punkte
🔧 Programmierung

🔧 🚀A Developer’s Guide to Integrating Daytona with Android Projects ✨


📈 25.53 Punkte
🔧 Programmierung

🔧 Comprehensive Guide: Creating and Running the "Sample Video Generator" with Daytona


📈 25.53 Punkte
🔧 Programmierung

🔧 AWS SageMaker: A Comprehensive Guide to Building, Training, and Deploying ML Models


📈 21.62 Punkte
🔧 Programmierung

🔧 AWS SageMaker: A Comprehensive Guide to Building, Training, and Deploying ML Models


📈 21.62 Punkte
🔧 Programmierung

🔧 End-to-End Guide: Building, Containerizing, and Deploying ML Models with Docker(Desktop)


📈 21.62 Punkte
🔧 Programmierung

🔧 Deploying AI Models with Amazon Web Services: A Practical Guide


📈 21.62 Punkte
🔧 Programmierung

🔧 Fine-Tuning and Deploying Custom AI Models on Amazon Bedrock: A Practical Guide


📈 21.62 Punkte
🔧 Programmierung

📰 A Practical Guide to Deploying Machine Learning Models


📈 21.62 Punkte
🔧 AI Nachrichten

📰 A Practical Guide to Deploying Machine Learning Models


📈 21.62 Punkte
🔧 AI Nachrichten

🪟 Forza Motorsport Update 4 adds the legendary Daytona to its roster just in time for the Rolex 24


📈 21.16 Punkte
🪟 Windows Tipps

🔧 Conquering the Setup Loop with Daytona


📈 21.16 Punkte
🔧 Programmierung

📰 Dodge Charger Daytona SRT: Das Muscle Car wird elektrisch


📈 21.16 Punkte
📰 IT Nachrichten

🔧 My Journey Building Apps with Coinbase SDK and Daytona


📈 21.16 Punkte
🔧 Programmierung

📰 Daytona 500 im Live-Stream und TV verfolgen: Hier seht ihr das NASCAR-Rennen


📈 21.16 Punkte
📰 IT Nachrichten

🔧 Daytona-Sample-React: Text AI


📈 21.16 Punkte
🔧 Programmierung

📰 Daytona 500 im Live-Stream und TV verfolgen: Hier seht ihr das NASCAR-Rennen


📈 21.16 Punkte
📰 IT Nachrichten

🔧 Daytona-Sample-React: Text AI


📈 21.16 Punkte
🔧 Programmierung

🔧 Effortless Development with Daytona: Setting Up Django-React Full Stack Application in a Single Command


📈 21.16 Punkte
🔧 Programmierung

🔧 PathGen with Daytona: Revolutionizing Personalized Learning Paths


📈 21.16 Punkte
🔧 Programmierung

🔧 From Legacy to Lightning: Modernizing an Astro App with Daytona


📈 21.16 Punkte
🔧 Programmierung

🔧 How Daytona Helped Me Streamline My Development Workflow


📈 21.16 Punkte
🔧 Programmierung

🔧 Make your Day with Daytona


📈 21.16 Punkte
🔧 Programmierung

🔧 My Journey with Daytona and How I Plan to Use It Going Forward


📈 21.16 Punkte
🔧 Programmierung

🔧 Integrate Daytona into a Machine Learning Project with React, Node, and Python


📈 21.16 Punkte
🔧 Programmierung

🔧 Daytona: Your Project’s New Best Friend


📈 21.16 Punkte
🔧 Programmierung

🔧 🚀 Simplify Your Dev Workflow with Daytona: Building a Pydantic AI-Powered Flask App


📈 21.16 Punkte
🔧 Programmierung

🔧 Stremlining Development with Daytona


📈 21.16 Punkte
🔧 Programmierung

🔧 Building the Daytona Authorizer: Navigating Features and Overcoming Challenges


📈 21.16 Punkte
🔧 Programmierung

🔧 Using Daytona to maintain a Development Environment


📈 21.16 Punkte
🔧 Programmierung

🔧 The Pulse of Innovation: Daytona Developers Club Tour '24 Inspires Manila's Gen Z Tech Scene


📈 21.16 Punkte
🔧 Programmierung

🔧 Creating and Managing a nextJS Event Planning Website with Daytona! 🐦‍🔥


📈 21.16 Punkte
🔧 Programmierung

🔧 Integrate DAYTONA and let the magic begin....


📈 21.16 Punkte
🔧 Programmierung

🔧 Integrating Daytona into Your Spring Boot Bank Application


📈 21.16 Punkte
🔧 Programmierung

matomo