Olá! No momento, esta página ainda está sendo desenvolvida ou traduzida. Para obter as informações mais recentes, acesse a documentação em inglês.
Versão do artigo: Enterprise Server 2.15

Esta versão do GitHub Enterprise será descontinuada em Esta versão do GitHub Enterprise foi descontinuada em 2019-10-16. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Instalar o GitHub Enterprise Server no Azure

Para instalar o GitHub Enterprise Server no Azure, você deve fazer a implantação em uma instância da série DS e usar o armazenamento Premium-LRS.

Neste guia

Você pode implantar o GitHub Enterprise Server no Azure global ou Azure Government.

Pré-requisitos

Considerações de hardware

GitHub Enterprise Server requires a persistent data disk separate from the root disk. For more information, see "System overview."

We recommend different hardware configurations based on the number of seats used in sua instância do GitHub Enterprise Server. |

Seats vCPUs Memória Attached storage Root storage
10-500 2 16 GB 100 GB 200 GB
500-3000 4 32 GB 250 GB 200 GB
3000-5000 8 64 GB 500 GB 200 GB
5000-8000 12 72 GB 750 GB 200 GB
8000-10000+ 16 128 GB 1000 GB 200 GB

Essas são as recomendações básicas de hardware. Podem ser necessários mais recursos dependendo do uso, como atividade do usuário e integrações selecionadas. For more information, see "Increasing CPU or memory resources."

Note: The root disk can be resized by building a new appliance or using an existing appliance. For more information, see "Increasing storage capacity."

Warning: We recommend you use webhooks to fetch repository changes for continuous integration (CI) or similar systems. Regular automatic checks, or polling, will significantly reduce the scalability of your instance. Para obter mais informações, consulte "Sobre webhooks"

Determinar o tipo de máquina virtual

Antes de iniciar a sua instância do GitHub Enterprise Server no Azure, você terá que determinar o tipo de máquina virtual que melhor se adapta às demandas da sua organização.

Regiões e tipos de VM compatíveis

O appliance do GitHub Enterprise Server requer um disco de dados de armazenamento premium e é compatível com qualquer VM do Azure que tenha suporte ao armazenamento premium. Para obter mais informações, consulte "VMs compatíveis" na documentação do Azure. Para ver informações gerais sobre as VMs disponíveis, consulte a página de visão geral das máquinas virtuais do Azure.

O GitHub Enterprise Server dá suporte a qualquer região compatível com o seu tipo de VM. Para obter mais informações sobre as regiões compatíveis com cada VM, consulte "Produtos disponíveis por região".

É recomendável usar um tipo de instância DS v2 com no mínimo 14 GB de RAM. Você pode usar qualquer tipo de VM compatível. Com base na contagem de licença de usuário, é recomendável usar os seguintes tipos de instância:

Estações Tipo recomendado
10 - 500 Standard_DS11_v2
500 - 3000 Standard_DS12_v2
3000 - 8000 Standard_DS14_v2
8000 - 10000+ Standard_DS15_v2

Note: You can always scale up your CPU or memory by resizing your instance. However, because resizing your CPU or memory requires downtime for your users, we recommend over-provisioning resources to account for scale.

Criar a instância da máquina virtual do GitHub Enterprise Server

To create the instance, you'll need to import the GitHub Enterprise Server image to your virtual machine and attach an additional storage volume for your instance data. Para obter mais informações, consulte "Considerações de hardware".

  1. Localize a imagem mais recente do appliance do GitHub Enterprise Server. Para obter mais informações sobre o comando vm image list, consulte "Lista de imagens de vm no az" na documentação da Microsoft.

    $ az vm image list --all -f GitHub-Enterprise | grep '"urn":' | sort -V
  2. Crie uma VM usando a imagem do appliance. For more information, see "az vm create" in the Microsoft documentation.

    Veja as opções de nome da VM, grupo de recursos, tamanho da VM, nome da região preferida do Azure, nome da da imagem de VM do appliance que você listou na etapa anterior e o SKU de armazenamento para Premium. For more information about resource groups, see "Resource groups" in the Microsoft documentation.

    $ az vm create -n VM_NAME -g RESOURCE_GROUP --size VM_SIZE -l REGION --image APPLIANCE_IMAGE_NAME --storage-sku Premium_LRS
  3. Defina as configurações de segurança na VM para abrir as portas necessárias. For more information, see "az vm open-port" in the Microsoft documentation. A tabela abaixo descreve cada porta para determinar quais portas você precisa abrir.

    $ az vm open-port -n VM_NAME -g RESOURCE_GROUP --port PORT_NUMBER

    This table identifies what each port is used for.

    Porta Serviço Descrição
    22 SSH Git over SSH access. Clone, fetch, and push operations to public/private repositories supported.
    25 SMTP SMTP with encryption (STARTTLS) support.
    80 HTTP Web application access. All requests are redirected to the HTTPS port when SSL is enabled.
    122 SSH Instance shell access. The default SSH port (22) is dedicated to application git+ssh network traffic.
    161/UDP SNMP Obrigatória para operações de protocolo de monitoramento de rede.
    443 HTTPS Web application and Git over HTTPS access.
    1194/UDP VPN Secure replication network tunnel in high availability configuration.
    8080 HTTP Plain-text web based Console de gerenciamento. Not required unless SSL is disabled manually.
    8443 HTTPS Secure web based Console de gerenciamento. Required for basic installation and configuration.
    9418 Git Simple Git protocol port. Clone and fetch operations to public repositories only. Unencrypted network communication.
  4. Crie e vincule um disco de dados não criptografado à VM e configure o tamanho com base na sua contagem de licença de usuários. For more information, see "az vm disk attach" in the Microsoft documentation.

    Pass in options for the name of your VM (for example, ghe-acme-corp), the resource group, the premium storage SKU, the size of the disk (for example, 100), and a name for the resulting VHD.

    $ az vm disk attach --vm-name VM_NAME -g RESOURCE_GROUP --sku Premium_LRS --new -z SIZE_IN_GB --disk ghe-data.vhd

    Note: For non-production instances to have sufficient I/O throughput, the recommended minimum disk size is 40 GiB with read/write cache enabled (--caching ReadWrite).

Configurar a máquina virtual do GitHub Enterprise Server

  1. Antes de configurar a VM, você deve aguardar a entrada no status ReadyRole. Check the status of the VM with the vm list command. For more information, see "az vm list" in the Microsoft documentation.

    $ az vm list -d -g RESOURCE_GROUP -o table
    > Name    ResourceGroup    PowerState    PublicIps     Fqdns    Location    Zones
    > ------  ---------------  ------------  ------------  -------  ----------  -------
    > VM_NAME RESOURCE_GROUP   VM running    40.76.79.202           eastus

    Observação: o Azure não cria uma entrada FQDNS automaticamente para a VM. Para obter mais informações, consulte o guia do Azure sobre como "Criar um nome de domínio totalmente qualificado no portal do Azure para uma VM Linux".

  2. Copie o nome DNS público da máquina virtual e cole-o em um navegador.

  3. At the prompt, upload your license file and set a management console password. For more information, see "Managing your GitHub Enterprise Server license."

  4. In the Console de gerenciamento, configure and save your desired settings. For more information, see "Configuring the GitHub Enterprise Server appliance."

  5. A instância será reiniciada automaticamente.

  6. Click Visit your instance.

Leia mais

Pergunte a uma pessoa

Não consegue encontrar o que procura?

Entrar em contato