الانتقال إلى المحتوى الرئيسي
1

إنشاء مثيل VM

أنشئ مثيل VM بالموارد المناسبة. لهذا الدليل، سنستخدم مثيل Standard_D4s_v3 الموصى به.
اقرأ دليل الموارد لمزيد من التفاصيل.
  • أعطِ مثيلك اسمًا وصفياً مثل gorbit-prod
  • اختر صورة Ubuntu Server 20.04 LTS
  • اختر الحجم Standard_D4s_v3
  • اختر Allow selected ports وحدد HTTPS (443) في قسم Inbound port rules
  • قم بتكوين التخزين وفقًا لدليل الموارد
Create VM InstanceInstance SettingsNetwork Settings
2

إنشاء المثيل

انقر Create ثم اعرض تفاصيل مثيلك.
احفظ Public IP address للمثيل!
Azure Public IP Address
3

Point domain to the instance

If you don’t have a domain, buy one from a DNS provider like GoDaddy or just skip HTTPS for now.
To point our domain to the new instance, we need to add an A and CNAME record to our DNS provider.The A record should be the subdomain that you would like to use for the Gorbit instance like prod.The CNAME record should be the same name with the www. in front resulting in www.prod pointing to the full domain like prod.gorbit.app.DNS A Record ConfigurationDNS CNAME Record Configuration
4

تثبيت متطلبات Gorbit

يتطلب Gorbit git و docker و docker compose.لتثبيتها على Ubuntu Server 20.04 LTS، قم بتشغيل ما يلي:
sudo apt-get update
sudo apt-get install -y ca-certificates curl

sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin git

Next Steps