docker

What is Docker? Advantages, Disadvantages, and its Role in AI Applications

What is Docker? Advantages, Disadvantages, and its Role in AI Applications

Docker has rapidly gained popularity as a powerful tool in the realm of software development, and its benefits extend deeply into the artificial intelligence (AI) domain. This article provides a comprehensive overview of Docker, exploring its advantages, disadvantages, and how it’s transforming AI applications. If you're an AI developer or tech enthusiast, read on to understand why Docker might be your next best tool! What is Docker? At its core, Docker is a platform that allows developers to package applications and their dependencies into lightweight, portable containers. These containers are standardized, ensuring that applications run consistently across different environments. Instead…
Read More
Basic GitHub Actions Checkout

Basic GitHub Actions Checkout

OverviewThis hands-on lab introduces the fundamentals of GitHub Actions by implementing a basic workflow that demonstrates repository checkout and command execution. You'll learn how to create a workflow file, understand its structure, and execute various commands. Prerequisites GitHub account A GitHub repository where you have write access Basic understanding of YAML syntax Basic knowledge of command line operationsLearning ObjectivesAfter completing this lab, you will be able to: Create a basic GitHub Actions workflow file Understand workflow trigger conditions Execute single and multi-line commands Use the checkout action View and interpret workflow results Lab Structure your-repository/ ├── .github/ │ └── workflows/…
Read More
Navigating a codebase with an API

Navigating a codebase with an API

Today, I'm going to show you how to navigate a code workspace with lsproxy, an open-source dev container for code exploration workflows like AI coding agents. Installation and setup Download the python sdk. pip install lsproxy-sdk Enter fullscreen mode Exit fullscreen mode Pull and run the docker container. WORKSPACE_PATH is the absolute path to your code workspace (likely the repository root). docker pull agenticlabs/lsproxy Enter fullscreen mode Exit fullscreen mode docker run -p 4444:4444 -v $WORKSPACE_PATH:/mnt/workspace agenticlabs/lsproxy Enter fullscreen mode Exit fullscreen mode Set up the client in python. # First create the API client from lsproxy import ( Lsproxy,…
Read More
Deploying a Spring Boot Banking Application with Docker

Deploying a Spring Boot Banking Application with Docker

Containerizing applications is becoming increasingly important. In this guide, I'll walk you through deploying a Spring Boot banking application using Docker, first manually and then with Docker Compose. We'll cover everything from setting up the environment to running the application in containers. Prerequisites Before we begin, make sure you have: An AWS Account An Ubuntu EC2 instance (t2.medium) Docker installed Docker Compose installed Basic understanding of Spring Boot and MySQL (I already used vagrant box my local environment) Project Overview Our banking application is built with: Spring Boot (Java) MySQL Database Maven for build management Docker for containerization Setup My…
Read More
[Laravel v11 x Docker] Efficiently Set Up a Laravel App Dev Environment with Laravel Sail

[Laravel v11 x Docker] Efficiently Set Up a Laravel App Dev Environment with Laravel Sail

About Laravel Sail Laravel Sail is the official development environment for the Laravel framework. Sail provides a lightweight command-line interface (CLI) to easily set up and manage a Laravel application development environment using Docker. Below, we explain the main features and usage of Laravel Sail. Benefits of Using Laravel Sail Build a development environment independent of the OS Sail uses Docker to containerize the development environment for Laravel applications. This allows you to build a development environment that is independent of the OS. Easy setup of the development environment With Sail, you can set up a Laravel development environment with…
Read More
Dockerizing a Next.js Application using a Standalone Build

Dockerizing a Next.js Application using a Standalone Build

Introduction Docker has gained popularity in recent years for enabling applications to be placed inside containers. These containers can be deployed to any environment and will work the same way in all of them, providing a uniform behavior regardless of the platform where the application runs. These containers use images, which are a copy or compressed snapshot of the application. By placing them within a container, they are displayed exactly as they are. This is one of those technologies that some were desperate for, while others don't realize they need it until they hear about it. For its part, Next.js…
Read More
Caching Dependencies on GitHub Actions

Caching Dependencies on GitHub Actions

Introduction GitHub Actions provide two ways of storing files: caching for things like dependencies and artifacts for the results of a job, such as logs or binaries. Although they sound similar, they are used for different purposes. So, we will use caching to speed up our workflow runs. Another thing to know is that cache access will be restricted to only a few branches: the current branch, the base branch for pull requests, and the default branch. Caches created in unrelated branches won't be available, but that's not something that will affect us in most cases, since we usually operate…
Read More
COMMON USEFUL DOCKER COMMANDS

COMMON USEFUL DOCKER COMMANDS

Here are some common Docker commands for managing containers, images, networks, and volumes: 1. Docker Container Commands: Run a container: docker run -d --name <container-name> <image-name> Runs a container in detached mode (-d) from the specified image. Example: docker run -d --name my-nginx nginx List running containers: docker ps Shows all currently running containers. Add -a to list all containers, including stopped ones. Stop a container: docker stop <container-id|container-name> Stops a running container. Remove a container: docker rm <container-id|container-name> Deletes a stopped container. Use -f to force-remove a running container. 2. Docker Image Commands: Build an image: docker build -t…
Read More
Basic Docker Terminologies

Basic Docker Terminologies

1. Container A container is like a box that holds your application and everything it needs to run, such as libraries and settings. Containers are lightweight and can run anywhere without issues. Points to remember:- containers are isolated (independent of other containers). Portable: You can move containers from one computer to another easily. 2. Image An image is a template used to create containers. It includes the app code and everything needed to run it. Think Image like an Operating System in which multiple container can run. Points to remember:- Read-Only: Once created, you can't change an image. Layered: Images…
Read More
How to Use Secrets in GitHub Actions Workflows

How to Use Secrets in GitHub Actions Workflows

Introduction I would like to go through some thoughts on how you can better maintain and make use of secrets with your GitHub Actions workflows. Once I had read through the GitHub documentation, I did a simple breakdown of the core activities before giving a number of recommendations: Overview of Secrets: In GitHub, these are called secrets, which are stored-sensitive data at the organization, repository, or environment level. Secrets might be used within workflows but would remain accessible only when they have explicitly been mentioned in a workflow file to protect API tokens, credentials, and other sensitive data. Examples of…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.