Creating droplets on DigitalOcean

DigitalOcean is a cloud provider, originating from New York. It has been a darling of developers for years. It offers an API, integrations, and affordable pricing to run your application workloads and VMs.

There are two ways of installing GitLab on DigitalOcean. You can create VMs (droplets) yourself and configure them using the omnibus installer or install them from source yourself. An even better way is to use the predefined GitLab droplet image that is already available on the site. When creating a droplet, you can specify this image.

When you log in to DigitalOcean, you can go to your droplets page and create a new one:

Determine the options for a droplet:

After logging in, you will be asked to set some options:

The droplet is ready. The system will reboot and reconfigure itself. If the login does not work, log in via SSH as a root to your droplet and execute the following command:

tail -100 /var/log/gitlab_set_pass.log

Take a look at this:

Could not create the default administrator account:
–> Password is too short (minimum is 8 characters)

If this is visible, we have to try to set the password again using one of the methods available in the omnibus package. Add the following line to the /etc/gitlab/gitlab.rb file:

gitlab_rails[‘initial_root_password'] = ‘nonstandardpassword'

Then, execute the following in order to re-seed the database (it is empty, so that doesn't matter) and reset the admin password:

gitlab-rake gitlab:setup

After some time, you should receive the following output:

Administrator account created:
login: root password: You'll be prompted to create one on your first visit.

If you go to the URL of your new GitLab instance, you can set the password as shown:

Enjoy your GitLab!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.129.19