Test Setup For Amazon Q with GitLab
以下を希望される場合:
- コードの貢献を提出する
- バグの報告または修正
- 機能や改善の提案
- ドキュメントへの貢献
これらのページの英語版のガイドラインに従ってください。
このページの英語版にアクセスしてください。
1. Obtain a Linux package for GitLab from the feature branch
- Apply the
"pipeline:run-all-e2e"label on your merge request and run a new pipeline - Go to the Stage qa–>e2e:test-on-omnibus-ee–>Downstream TRIGGERED_EE_PIPELINE pipeline and select the job for the desired Ubuntu version, for example,
Ubuntu-22.04-branch - Download the job artifacts and extract the contents
2. Setup a Linux instance on GCP
Follow the instructions to create a GCP project
- Select the
gcp-669306fb(organizations/769164969568)Cloud Provider while creating the Cloud Account
- Select the
Go to the GCP Compute Engine page and click on
Create InstanceChoose the
e2-standard-4(4 vCPUs, 16 GB Memory) machine configurationBy default, the
Debianoperating system andDebian GNU/Linux 12version are selected.Ubuntucan also be selected on theOS and storagetab.Select a disk size of 100 GB
Click on
CreateSSH into the instance using
gcloud compute ssh --zone <zone_name> <instance_name> --project <project_name>- This command is available in the UI under theConnectcolumn,View gcloud commandsub-menu.Confirm the OS version using a command such as
cat /etc/os-releaseAllow access to ports 443 and 80 using the commands
gcloud compute firewall-rules create default-allow-https \ --project=<project_name> \ --direction=INGRESS \ --priority=1000 \ --network=default \ --action=ALLOW \ --rules=tcp:443 \ --source-ranges=0.0.0.0/0 gcloud compute firewall-rules create default-allow-http \ --project=<project_name> --direction=INGRESS \ --priority=1000 \ --network=default \ --action=ALLOW \ --rules=tcp:80 \ --source-ranges=0.0.0.0/0
3. Configure DNS
- Purchase a Non-Trademark Domain Name by following these instructions
- Registering a Cloud Domain also creates a Cloud DNS Entry
- Get the public IP for the VM using the command
gcloud compute instances describe <vm_name> --zone=<zone_name> --project=<project_name> --format='get(networkInterfaces[0].accessConfigs[0].natIP)' - Create
Arecords for the root domain and the sub-domain using the commandgcloud dns record-sets create <dns_name> --zone=<zone_name> --project=<project_name> --type="A" --ttl="300" --rrdatas=<public_ip> - Verify DNS setup using
nslookupordig
4. Install the package on the VM
Transfer the downloaded artifact to the VM using the command
gcloud compute scp <source_file> <instance_name>:<destination_path> --zone <zone_name> --project <project_name>Complete the pre-installation steps
Install required packages
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates perlInstall the package using the command
sudo dpkg -i <package_name>Set the
external_urlin/etc/gitlab/gitlab.rbto the domain name (includinghttps://) configured in the previous step and runsudo gitlab-ctl reconfigureThe initial root password is available under
/etc/gitlab/initial_root_passwordConfirm all services are healthy using
sudo gitlab-ctl statusActivate an
UltimateEE license based on these instructions
4.a. Update the installed package on the VM
SSH into the VM using the command
gcloud compute ssh --zone <zone_name> <instance_name> --project <project_name>Transfer the updated package using the command
gcloud compute scp <full_path_to_package_file>:/home/<user_name> --zone <zone_name> --project <project_name>Run the following commands:
sudo touch /etc/gitlab/skip-auto-backup sudo apt update sudo dpkg -i <package_name> sudo rm /etc/gitlab/skip-auto-backup
5. Configure AWS
- Follow the instructions to create an AWS account.
- Follow the instructions to access the account.
- Follow the instructions to set up GitLab Duo with Amazon Q.
- There is a Free tier available on Amazon Q Developer, so no additional Amazon license is required if an
UltimateEE license with theGitLab Duo with Amazon Qadd-on is activated.
6. Test
Test the features for issues and merge requests