Deploying GitLab through the Linode Marketplace
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
GitLab is a complete solution for all aspects of your software development. At its core, GitLab serves as your centralized remote Git repository. GitLab also features built-in tools that represent every task in your development workflow, from planning to testing to releasing.
Self-hosting your software development with GitLab offers total control of your codebase. At the same time, its familiar interface will ease collaboration for you and your team. GitLab is the most popular self-hosted Git repository software, so you’ll benefit from a robust set of integrated tools and an active community.
Deploying the GitLab Marketplace App
The Linode Marketplace allows you to easily deploy software on a Linode using the Linode Cloud Manager.
Log in to the Cloud Manager and select the Marketplace link from the left navigation menu. This displays the Linode Compute Create page with the Marketplace tab pre-selected.
Under the Select App section, select the app you would like to deploy.
Fill out all required Options for the selected app as well as any desired Advanced Options (which are optional). See the Configuration Options section for details.
Complete the rest of the form as discussed within the Getting Started > Create a Linode.
Click the Create Linode button. Once the Linode has provisioned and has fully powered on, wait for the software installation to complete. If the Linode is powered off or restarted before this time, the software installation will likely fail. To determine if the installation has completed, open the Linode’s Lish console and wait for the system login prompt to appear.
Follow the instructions within the Getting Started After Deployment section.
Software installation should complete within 10-15 minutes after the Linode has finished provisioning.
Configuration Options
GitLab Options
Here are the additional options available for this Marketplace App:
- Domain (optional): Your GitLab site’s domain name. This domain will also be used by Postfix to send mail. Setting a value for this field will not automatically set up DNS for your app, so be sure to follow the DNS instructions in the
Access your GitLab Site section. If you do not have a domain name, you can leave this field blank and Postfix will use your Linode’s default Reverse DNS to send email instead (i.e.
gitlab@l203-0-113-0.ip.linodeusercontent.com
).
General Options
For advice on filling out the remaining options on the Create a Linode form, see Getting Started > Create a Linode. That said, some options may be limited or recommended based on this Marketplace App:
- Supported distributions: Debian 9
- Recommended minimum plan: 8GB Dedicated CPU Compute Instance
Getting Started after Deployment
Access your GitLab Site
Once your new Compute Instance has been fully deployed, follow the instructions below to access your new Gitlab app.
Configure DNS: If you entered a domain name during deployment, configure an A record within your name server. This record should point to the IPv4 address of your new Compute Instance. Review the DNS Manager guide for instructions on setting up DNS records and also see the Managing IP Addresses guide for instructions on viewing your IP addresses.
Find the Gitlab root password: Before logging in to your Gitlab site, you need to obtain the Gitlab root password that was generated during provisioning.
Log in to your new Compute Instance through Lish or SSH using
root
user and the password you entered when creating the instance.Enter the following command in the lish console or terminal session:
cat /etc/gitlab/initial_root_password
The Gitlab root password is displayed within the output of that command.
Log in to your Gitlab site: Open a web browser and enter either your Compute Instance’s IP address or your domain name (if you entered one during deployment). See the Managing IP Addresses guide for instructions on viewing your IP addresses. Ensure you are using
http://
when visiting your site.When presented with a login screen, enter the following credentials:
- Username:
root
- Password: Use the password you obtained in the previous step.
- Username:
Reset the root password: Once you’re logged in, it’s recommended that you reset the root password. To do so, navigate to the following URL, replacing [ip-address] with the IP address of your Compute instance:
http://[ip-address]/-/profile/password/edit
You can now begin creating GitLab repositories, users, and more. See GitLab’s official documentation for more information.
Add a Domain after Deploying your GitLab Instance
If you configured your GitLab Marketplace App without providing a domain, you can configure one after the app has been deployed. Begin by setting up DNS for your domain:
Create an A record associated with the IPv4 address for your Linode. Review the DNS Manager guide for instructions on setting up DNS records.
Wait for your new DNS records to propagate to your internet service provider.
After setting up DNS, you will need to update your GitLab instance’s /etc/gitlab/gitlab.rb
file with your domain name. This will ensure that any emails sent to users by the GitLab instance will use your site’s domain.
With a text editor of your choice ( nano, for example), open the
/etc/gitlab/gitlab.rb
file and modify the value ofexternal_url
. Ensure you replacehttp://example.com
with your domain:- File: /etc/gitlab/gitlab.rb
1 2 3 4 5
## GitLab URL ##! URL on which GitLab will be reachable. ##! For more details on configuring external_url see: ##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab external_url 'http://example.com'
Issue the following command to enable your new configuration:
gitlab-ctl reconfigure
Navigate to the domain in a browser window and verify that you are directed to your GitLab instance.
Software Included
The GitLab Marketplace App installs the following required software on your Linode:
Software | Description |
---|---|
GitLab | Remote Git repository software. |
Postfix | Postfix is a free and open-source mail transfer agent that routes and delivers electronic mail. |
UFW | Firewall utility. Ports 22/tcp, 80/tcp, 443/tcp, 25, 587, and 110 for IPv4 and IPv6 will allow outgoing and incoming traffic. |
Fail2ban | Fail2Ban is an intrusion prevention software framework that protects computer servers from brute-force attacks. |
NoteCurrently, Linode does not manage software and systems updates for Marketplace Apps. It is up to the user to perform routine maintenance on software deployed in this fashion.
More Information
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
This page was originally published on