Posts

Showing posts with the label docker

Deploying an Angular App with Docker: A Step-by-Step Guide

Image
 ðŸš€ Introduction Docker has revolutionized the way developers build, ship, and run applications. It provides a containerized environment that ensures consistency across different machines, making it a great choice for deploying Angular applications . In this guide, we’ll walk through the process of setting up, containerizing, and running an Angular project with Docker. Whether you’re a beginner or an experienced developer, this tutorial will help you streamline your Angular development workflow with Docker. Why Use Docker for Angular? 🔹 Eliminates “It works on my machine” issues 🔹 Simplifies setup with pre-configured environments 🔹 Ensures consistency across different operating systems 🔹 Eases deployment to cloud services 🔹 Makes CI/CD integration smoother Step 1: Install Docker Desktop To begin, you need Docker Desktop installed on your system. 🔹 Download Docker Desktop : Docker Hub 🔹 Choose the platform (Windows, macOS, or Linux) 🔹 Install and restart your system 🔹...

Create emulator in Linux Virtual machine through terminal using docker for android

 Set Java: 1. Use Java 11 or 17 Instead of Java 18 SDK Manager works best with Java 11 or Java 17 . Java 18 is not officially supported for Android SDK tools. Run the following command to check your Java version: java -version sudo apt update sudo apt install openjdk-17-jdk export JAVA_HOME=$(/usr/libexec/java_home -v 17) export PATH= $JAVA_HOME /bin: $PATH Now, try running the sdkmanager command again. 2. Install android image using sdkmanager sdkmanager "system-images;android-34;google_apis;arm64-v8a" --sdk_root=/opt/android-sdk if sdkmanger is not found in emulator root@dee16e24c043:/# ${ANDROID_SDK_ROOT}/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} --licenses 3. Create emulator using avdmanager avdmanager create avd -n MyEmulator -k "system-images;android-34;google_apis_playstore;x86_64" --device "pixel_5" 4. Launch the Emulator root@dee16e24c043:/# emulator -avd MyEmulator -no-snapshot -noaudio -no-boot-anim 5. Install kvm if emulat...

Dockerizing an Ionic Capacitor App: A Step-by-Step Multi-Arch Dockerfile Guide

  Execute the image through podman or docker podman buildx build --platform linux/amd64,linux/arm64 -t my-ionic-app:latest . docker buildx build --platform linux/amd64,linux/arm64 -t my-ionic-app:latest . Run the image podman run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb my-ionic-app:latest bash docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb my-ionic-app:latest bash

beginner-friendly tutorial for podman

 Hi, Are you want learn  Podman?  here’s a step-by-step beginner-friendly tutorial to get you started. 1️⃣ Install Podman On macOS (via Homebrew) brew install podman To initialize Podman: podman machine init podman machine start On Linux (Ubuntu/Debian) sudo apt update sudo apt install podman -y On Windows (via WSL) Use WSL 2 and install Podman using: winget install podman 2️⃣ Verify Installation Check if Podman is installed correctly: podman version Check system details: podman info 3️⃣ Running Your First Container Pull and run an Ubuntu container: podman run -it ubuntu bash -it : Interactive mode (lets you use the terminal inside the container). ubuntu : Image name. bash : Starts a bash shell. To exit the container: exit 4️⃣ List Running Containers podman ps    -   To see active containers: podman ps -a   - To see all containers (including stopped ones): 5️⃣ Stopping and Removing Containers Find the container ID:       ...