Files
aria-infrastructure-queen/scripts/migrate-to-oracle-free.sh
Alexa Louise d97c7b93e0 🎵 Initial commit: Aria Infrastructure Queen
Complete infrastructure deployment system including:
- 2 CLI tools (aria + lucidia)
- 9 complete documentation guides
- 8+ automation scripts
- Identity distribution system
- aria.blackroad.me website
- Forkable services deployment

Achievements:
- 77 repos with Aria identity (98%)
- 3 deployment locations
- 6 forkable services running
- ,636/year cost savings

By: Aria - Infrastructure Queen
Hash: 1ba4761e3dcddbe01d2618c02065fdaa807e8c7824999d702a7a13034fd68533
2025-12-23 20:22:04 -06:00

113 lines
3.0 KiB
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# ☁️ Migrate from DigitalOcean to Oracle Cloud FREE Tier
echo "☁️ ORACLE CLOUD FREE TIER MIGRATION GUIDE"
echo "=========================================="
echo ""
echo "🎁 What You Get FREE Forever:"
echo ""
echo " ARM Compute:"
echo " • 4 ARM CPU cores (Ampere A1)"
echo " • 24 GB RAM total"
echo " • 200 GB storage"
echo " • 10 TB/month bandwidth"
echo ""
echo " AMD Compute:"
echo " • 2 AMD VMs (1/8 OCPU, 1GB each)"
echo ""
echo " This is BETTER than your $6/month DigitalOcean droplet!"
echo ""
echo "📋 Step-by-Step Migration:"
echo ""
echo "1⃣ Sign up for Oracle Cloud"
echo " Visit: https://signup.cloud.oracle.com"
echo " ✅ Always Free tier (no expiration)"
echo " ⚠️ Requires credit card but won't be charged"
echo ""
echo "2⃣ Create Compartment"
echo " Menu → Identity → Compartments → Create"
echo " Name: blackroad-infra"
echo ""
echo "3⃣ Create ARM Instance"
echo " Menu → Compute → Instances → Create"
echo ""
echo " Settings:"
echo " • Name: blackroad-failover"
echo " • Image: Ubuntu 22.04 Minimal"
echo " • Shape: VM.Standard.A1.Flex"
echo " • OCPUs: 4 (use all free tier)"
echo " • RAM: 24 GB (use all free tier)"
echo " • Boot volume: 200 GB"
echo ""
echo " Networking:"
echo " • Create new VCN"
echo " • Assign public IP"
echo ""
echo " SSH Keys:"
echo " • Upload your existing SSH public key"
echo " • Or generate new key pair"
echo ""
echo "4⃣ Configure Instance (after creation)"
echo ""
echo " SSH into instance:"
echo " ssh ubuntu@<public-ip>"
echo ""
echo " Install Docker:"
cat << 'INSTALL_DOCKER'
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker ubuntu
sudo systemctl enable docker
INSTALL_DOCKER
echo ""
echo "5⃣ Install Cloudflare Tunnel"
cat << 'INSTALL_TUNNEL'
curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64 -o cloudflared
sudo mv cloudflared /usr/local/bin/
sudo chmod +x /usr/local/bin/cloudflared
# Login and create tunnel
cloudflared tunnel login
cloudflared tunnel create oracle-failover
INSTALL_TUNNEL
echo ""
echo "6⃣ Deploy Your Apps"
echo " Same Docker setup as DigitalOcean:"
echo " • Pull your Docker images"
echo " • Run containers"
echo " • Configure Cloudflare Tunnel routing"
echo ""
echo "7⃣ Update DNS/Routing"
echo " • Update Cloudflare Tunnel config"
echo " • Test failover"
echo " • Verify everything works"
echo ""
echo "8⃣ Cancel DigitalOcean"
echo " Visit: https://cloud.digitalocean.com/settings/billing"
echo " Destroy droplet"
echo " Save: $6/month = $72/year"
echo ""
echo "💰 COST SAVINGS:"
echo " Before: $6/month (DigitalOcean)"
echo " After: $0/month (Oracle Free Tier)"
echo " Annual Savings: $72"
echo ""
echo "🎯 After this migration:"
echo " Total monthly cost = ~$23"
echo "$17 - Domains (essential)"
echo "$6 - Electricity (optimized)"
echo "$0 - Everything else!"
echo ""