Skip to content

Cloud Deployment

PROJECT ZERO edited this page Jan 18, 2025 · 1 revision

Cloud Deployment

AWS Deployment

To deploy the application on AWS, follow these steps:

  1. Build the Docker image:

    docker build -t project-red-sword .
  2. Push the Docker image to AWS ECR:

    aws ecr get-login-password --region YOUR_AWS_REGION | docker login --username AWS --password-stdin YOUR_AWS_ACCOUNT_ID.dkr.ecr.YOUR_AWS_REGION.amazonaws.com
    aws ecr create-repository --repository-name project-red-sword || echo "Repository already exists."
    docker tag project-red-sword:latest YOUR_AWS_ACCOUNT_ID.dkr.ecr.YOUR_AWS_REGION.amazonaws.com/project-red-sword
    docker push YOUR_AWS_ACCOUNT_ID.dkr.ecr.YOUR_AWS_REGION.amazonaws.com/project-red-sword
  3. Deploy to AWS Elastic Beanstalk:

    eb init -p docker project-red-sword --region YOUR_AWS_REGION
    eb create project-red-sword-env

Azure Deployment

To deploy the application on Azure, follow these steps:

  1. Build the Docker image:

    docker build -t project-red-sword .
  2. Push the Docker image to Azure ACR:

    az acr login --name YOUR_AZURE_ACR_NAME
    az acr create --resource-group YOUR_RESOURCE_GROUP --name YOUR_AZURE_ACR_NAME --sku Basic || echo "Registry already exists."
    docker tag project-red-sword:latest YOUR_AZURE_ACR_NAME.azurecr.io/project-red-sword
    docker push YOUR_AZURE_ACR_NAME.azurecr.io/project-red-sword
  3. Deploy to Azure App Service:

    az webapp create --resource-group YOUR_RESOURCE_GROUP --plan YOUR_APP_SERVICE_PLAN --name YOUR_APP_NAME --deployment-container-image-name YOUR_AZURE_ACR_NAME.azurecr.io/project-red-sword:latest

Google Cloud Deployment

To deploy the application on Google Cloud, follow these steps:

  1. Build the Docker image:

    docker build -t project-red-sword .
  2. Push the Docker image to Google Container Registry:

    gcloud auth configure-docker
    docker tag project-red-sword gcr.io/YOUR_PROJECT_ID/project-red-sword
    docker push gcr.io/YOUR_PROJECT_ID/project-red-sword
  3. Deploy to Google Kubernetes Engine:

    kubectl apply -f google-k8s.yaml

DigitalOcean Deployment

To deploy the application on DigitalOcean, follow these steps:

  1. Build the Docker image:

    docker build -t project-red-sword .
  2. Deploy to DigitalOcean:

    doctl auth init
    doctl apps create --spec digitalocean-app.yaml

TABLE OF CONTENTS

Clone this wiki locally