<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hasan MEN on Medium]]></title>
        <description><![CDATA[Stories by Hasan MEN on Medium]]></description>
        <link>https://medium.com/@hmenn?source=rss-b9c09b493a1b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*6cAyxqcWYP_cfruNfLio3w.jpeg</url>
            <title>Stories by Hasan MEN on Medium</title>
            <link>https://medium.com/@hmenn?source=rss-b9c09b493a1b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 23:13:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hmenn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BosphorusISS Google Cloud&Gitlab Adventure — 2 — Deploy  Gitlab EE]]></title>
            <link>https://medium.com/bosphorusiss/biss-cloud-2-deploy-gitlab-d5676e98f817?source=rss-b9c09b493a1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5676e98f817</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Hasan MEN]]></dc:creator>
            <pubDate>Mon, 02 Sep 2019 10:40:48 GMT</pubDate>
            <atom:updated>2019-09-02T10:40:48.363Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/p/68bef8140250/edit?source=your_stories_page---------------------------">BosphorusISS Google Cloud &amp; Gitlab Adventure — </a>2 — Deploy Gitlab</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aQ4I20eqrQ-WE53zz4OqBA.png" /></figure><p>In <a href="https://medium.com/bosphorusiss/biss-gitlab-1-68bef8140250">previous </a>section, a VM was prepared and then docker &amp; docker-compose were installed on it. In this section, we’re going to deploy our Gitlab Instance on this server.</p><ul><li>Connect your VM via SSH button which was shown on previous post.</li><li>Gitlab settings will be stored in a specific folder, thus a new gitlab config folder needs to be created</li></ul><pre>mkdir -p ~/gitlab &amp;&amp; cd ~/gitlab</pre><blockquote>There are multiple options for setting Gitlab configurations. The first one is changing /etc/gitlab/gitlab.rb file after deploying empty gitlab and backing up this file. The second one is writing configurations in the docker-compose.yml file and providing this config to running gitlab instance. The second approach is easier in terms of backup, config transparency, X(gitlab) as code philosophy. Storing this yml file in gitlab repository helps for maintaining the gitlab system as well.</blockquote><ul><li>Let’s create docker-compose.yml and add configs.</li></ul><pre>nano docker-compose.yml</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/644a9fa918c4c438e46c0cc3bd7960e1/href">https://medium.com/media/644a9fa918c4c438e46c0cc3bd7960e1/href</a></iframe><ul><li>Update “hostname” and “external_url” according to your dns addresses then save and exit.</li></ul><h4>What are those configs?</h4><ol><li><strong>image</strong>: This is the base docker version. We want to use enterprise version of gitlab so we choose “gitlab/gitlab-ee:latest” docker image. You have to buy a <a href="https://about.gitlab.com/pricing/">subscription </a>from gitlab to use enterprise attributes like detailed documentation, issue weight and so on. You can also use “gitlab/gitlab-ce:latest” docker image for Community Edition which is free and containes basic gitlab features.</li><li><strong>hostname/external url</strong>: Will be used for address redirection in Gitlab server.</li><li><strong>initial_root_password</strong>: If we don’t provide this config, the system will ask you to create a password upon initial login. Do not forget to change your initial admin password for security.</li><li><strong>gitlab_shell_ssh_port</strong>: This is the ssh port which will be used for ssh connections.</li><li><strong>port</strong>: In that section, we have permitted and redirected port settings. For example, we connected 80 port of VM to 80 port of docker, 1234 of VM to 22 port of docker container. So, gitlab will be accessible from the outside world.</li><li><strong>volumes</strong>: We connected some volumes(folders for now) to our gitlab container to store persistent data like repositories, user credentials, artifacts and so on.</li></ol><h4>First Boot Up</h4><ul><li>We are ready to boot up gitlab via docker-compose.</li></ul><pre>cd ~/gitlab &amp;&amp; docker-compose up -d</pre><ul><li>It will download if gitlab/gitlab-ee image doesn’t exist on machine and start.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*tjYgiC7vMcB_VhBj2XihKw.gif" /><figcaption>docker-compose up</figcaption></figure><ul><li>It will take a few minutes to start fully working system. If you want to monitor system while it is working, you can use gitlab-ctl tool. For example, we can check gitlab server status which is working in docker container, via this command.</li></ul><pre>docker exec -t gitlab gitlab-ctl status</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*NfQfkdxMnJ0_KtySwtDbNg.gif" /></figure><ul><li>As you can see, gitlab started a lot of helper services.</li></ul><h4>First Login</h4><ul><li>Open your browser and access your ip address. You will see a working gitlab page. If you remember we set initial password of admin so use theese credentials to login gitlab.</li></ul><blockquote>username: root</blockquote><blockquote>password: adminadmin</blockquote><ul><li>Login Page</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*zH9A39AwGc5s5IptISJWiA.png" /><figcaption>Gitlab — Login Page</figcaption></figure><ul><li>Gitlab Dashboard is ready to use.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*7-MZQ_mOrMSPsULXlbRvgA.png" /><figcaption>Gitlab — Dashboard</figcaption></figure><ul><li>Lastly, we need to give access to “1234” port to make ssh accessible.</li></ul><h4>Add Firewall Rule on Google Cloud Platform</h4><ul><li>Open “VPC Network -&gt; Firewall Rules” page on platform then click “Create Firewall Rule” button.</li><li>Fill table as we filled for “1234” and save.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*WUPDte66dFCywKYQU3tyig.png" /><figcaption>Example Firewall Rule</figcaption></figure><ul><li>Now, you can use your ssh-clone options after adding active public key to project or user.</li></ul><p>On next story, we’ll continue with auto backup mechanism and how we used google store buckets to store backup files.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5676e98f817" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bosphorusiss/biss-cloud-2-deploy-gitlab-d5676e98f817">BosphorusISS Google Cloud&amp;Gitlab Adventure — 2 — Deploy  Gitlab EE</a> was originally published in <a href="https://medium.com/bosphorusiss">BosphorusISS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BosphorusISS Google Cloud & Gitlab Adventure — 1]]></title>
            <link>https://medium.com/bosphorusiss/biss-gitlab-1-68bef8140250?source=rss-b9c09b493a1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/68bef8140250</guid>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Hasan MEN]]></dc:creator>
            <pubDate>Thu, 29 Aug 2019 09:49:12 GMT</pubDate>
            <atom:updated>2019-08-29T10:01:44.990Z</atom:updated>
            <content:encoded><![CDATA[<h3>BosphorusISS Google Cloud &amp; Gitlab Adventure— 1 — VM Setup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WHkQp8ag0LOE9tY8I3IxAQ.png" /></figure><blockquote><a href="https://medium.com/bosphorusiss/bosphorusiss-google-cloud-gitlab-adventure-0-d77a1be88ca4">Previous Post: Adventure 0</a></blockquote><h4><strong>1. Get Google Cloud Platform Free Trial</strong></h4><ul><li>Login to<a href="http://console.cloud.google.com/"> Console Cloud</a> address.</li><li>You will see a notification at the top of the page, if you didn’t already activate your free trial before. Click on that button and activate your subscription.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eROohHEwdKC4ZNF6li4BiQ.png" /><figcaption>Google Cloud Free Trial Notification</figcaption></figure><ul><li>Please select your country and check required approvals.</li><li>Google will ask you for additional information to verify your identity. You have to provide a valid credit/debit card as well.</li><li>There is not much to worry about, Google does not charge anything to the card during the trial period. It’ll ask you when your trial ends or free credits run out.</li></ul><figure><img alt="Ek Hesap Bilgileri" src="https://cdn-images-1.medium.com/max/1024/1*xJk0pZAF4CNkYqeLUIkdLQ.png" /><figcaption>Additional Account Information</figcaption></figure><ul><li>If you provide all required fields, google will load 300$ into your account. This is good amount of money to get used to Google Cloud and try services before buying.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o_1NA3BiRbTJAYJd3yF3KA.png" /></figure><ul><li>We’re ready to use services.</li></ul><h4>2. Get A VM To Deploy Gitlab</h4><ul><li>A Virtual Machine is needed for setting up your own Gitlab instance.</li><li>Follow “Compute Engine -&gt; VM Instances” section on the left pane/menu then click “Create Instances” button.</li><li>We’re going to deploy Gitlab-EE( According to Gitlab’s<a href="https://docs.gitlab.com/ee/install/requirements.html"> document</a> we should have at least 4GB Ram <em>)</em> on that VM. Here is are the configurations:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*Bx5SHWZpCnqI7t8zccvO4A.png" /><figcaption>VM Properties</figcaption></figure><ul><li>You can access your VM via SSH button after creating machine. Be careful on IP address. You’ll use this address to reach the services like gitlab, registry, external ssh etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*ZtqEkRXV2NmlbPOKoSSPGw.png" /><figcaption>VM Instance</figcaption></figure><h4>3. Install Docker &amp; Docker Compose</h4><ul><li>As said before, Gitlab will be deployed on Docker Containers. Containers were chosen because of the following reasons:</li></ul><blockquote>* Easy container update. Update gitlab version in a few seconds.</blockquote><blockquote>* Establish and isolated environment for Gitlab</blockquote><blockquote>* Easy transition from plain Dockers to Kubernetes in the future.</blockquote><h4>3.1 Install Docker</h4><ul><li>Follow the official installation<a href="https://docs.docker.com/install/linux/docker-ce/debian/"> document</a>.</li><li>We choose a debian machine so we continued with debian section. Please choose suitable installation guide for your environment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*368Ovzgv_va-Qbu9BNtzBw.gif" /><figcaption>Docker Installation</figcaption></figure><ul><li>Docker was installed.</li></ul><h4>3.2 Docker Compose Install</h4><ul><li>We choose docker-compose to manage our gitlab configurations from one file and leverage easy start/stop docker containers.</li><li>We followed <a href="https://docs.docker.com/compose/install/">official </a>document again.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*XJ82K_iZJpDzr7OpOSZ5Uw.gif" /></figure><ul><li>Docker-compose was installed.</li></ul><p>We prepared our new environment to jump up to the next stages. We’ll install other required tools and gitlab.</p><p>Next Topic: Deploy a Working Gitlab-EE on that VM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68bef8140250" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bosphorusiss/biss-gitlab-1-68bef8140250">BosphorusISS Google Cloud &amp; Gitlab Adventure — 1</a> was originally published in <a href="https://medium.com/bosphorusiss">BosphorusISS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>