<?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 Enes Biricik on Medium]]></title>
        <description><![CDATA[Stories by Enes Biricik on Medium]]></description>
        <link>https://medium.com/@enesbiricik?source=rss-11cdd374b570------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RKL7zHufapmKdupin9NFIw.jpeg</url>
            <title>Stories by Enes Biricik on Medium</title>
            <link>https://medium.com/@enesbiricik?source=rss-11cdd374b570------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:39:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@enesbiricik/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[Cursor AI Tools-Cursor101]]></title>
            <link>https://medium.com/@enesbiricik/cursor-ai-tools-cursor101-7d890f343753?source=rss-11cdd374b570------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d890f343753</guid>
            <category><![CDATA[cursos]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Enes Biricik]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 15:08:28 GMT</pubDate>
            <atom:updated>2025-03-24T15:08:28.548Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, today I will explain what Cursor AI tools are and what they are used for, with examples. Without further ado, let’s get to the topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shUKESet7x-RKITPWftQYQ.png" /></figure><p><strong>Cursor Settings</strong><br>The cursor comes with a settings page that offers many configurations. These settings provide a wide range of options, from selecting the AI model we use to setting our own AI model rules. After making basic settings in General, let’s examine the tabs in order:<br><strong>1. Features</strong><br>It includes settings that can enhance functionality, such as Cursor Tab, Chat, Editor, and Terminal. Here, we mostly use the Cursor Tab for the coding part. The settings for Chat generally adjust the behaviors of incoming responses, such as whether to auto-scroll down as reactions come in. Here are some important Features settings:<br><strong>Cursor Tab:</strong><br>The settings for how we want to see the suggestions that come while we are coding, the ways to accept the suggestions, and how detailed we want to see the changes are made here. In places where there are suggestions, a view appears as a `Jump Tab`. When we examine the options we see in the visual below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*fK3e1fYWNH4OPn8p5cK30Q.png" /><figcaption>Features in Cursor Settings</figcaption></figure><p><strong>Copilot++</strong><br>The first option allows the Cursor to make changes across multiple lines. For example, in a scenario with three Card Components stacked vertically, when adding another property to the top Card Component, it helps us by suggesting the addition to the lower Card Components as well.<br><strong>Partial Accepts</strong><br>Sometimes the suggested code may be too much, or not all of it may be useful. In these cases, you can enable this setting to accept the suggestion piece by piece, stepping through the suggestions with CTRL/⌘ + RightArrow.<br><strong>Suggestions in Comments</strong><br>It allows us to receive suggestions when we need to leave comments explaining code blocks.<br><strong>Auto Import</strong><br>Currently supported only for TypeScript, but when we start using something from a library, a Jump Tab option appears above showing import suggestions. It is useful for frequently forgotten imports.<br><strong>2. Models</strong><br>This is where we can organize the list of models we can select in the chat section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*PaWg_tu14kT7rgZvH6au-A.png" /><figcaption>Model options in chat</figcaption></figure><p>This way, it becomes possible to work with more models instead of just a few that come by default.<br><strong>3. Rules<br></strong>It is a configuration screen where we can add boundaries as if we are creating our model. On this screen, there are fields for adding roles where we specify how the AI should operate in terms of functionality and code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*LIFp8wJBMQ_HKAPKW_c-sA.png" /><figcaption>Rules Settings</figcaption></figure><p>As seen in the example above, you can add our rules related to the operation within the User Rules. Here, I wanted the responses in the chat to be in Turkish, while the commit message suggestions prepared for the sent commits should be in English. If there is a process related to the code that you want to track, you can add it here. Additionally, there is a Project Rules section for scenarios that require a more detailed rule definition. With this section, we can directly create a rule file and adjust the working condition (such as Always or Manual). Let’s create a new one by clicking on “Add new rule.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*NLzrEhmYEWA95JMSbEy7kw.png" /><figcaption>New Created Rule</figcaption></figure><p>Here, we can clearly specify the files and rules we want to work on in the opened tab, allowing the AI to efficiently fulfill our requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*cPWclKKOze8GwSNI5ospVA.png" /><figcaption>Example Rule and Rule Type Selection</figcaption></figure><p>As seen in the example above, after creating a Rule, we can assign a type to this Rule. This way, we provide the AI with the most accurate approach as a rule with a predefined prompt.</p><p><strong>Manually </strong>defined rules are used by being called in the Add Context section within the Chat.</p><p>If you want a Rule to work continuously, the <strong>Always </strong>option may be the right choice.</p><p>When we define it as <strong>Auto Attached</strong>, this code only works on files that have the specified File pattern.</p><p>There is also a rule of the <strong>Agent Requested </strong>type. This rule type is designed to be executed for specific requests.</p><p>You can access improved Rules and Prompts at <a href="https://cursor.directory/">https://cursor.directory/.</a></p><p><strong>4. MCP</strong><br>MCP, or Model Context Protocol, is a system that customizes code management offered by Cursor AI through AI models. Technically, MCP filters the possible predictions generated by the LLM, prioritizes them according to a specific set of rules, and optimizes the suggestions. In other words, while traditional LLMs provide code suggestions by learning from large datasets, MCP makes this process more specific and contextual. For example, if a project has a specific coding style or linter rules, MCP shapes the LLM’s suggestions by considering these rules. Users can determine how the AI will make completions by selecting different models and can even outline the boundaries of code suggestions in a specific context (e.g.). MCP also optimizes the LLM’s token usage, reducing unnecessary or erroneous predictions and making code generation more efficient.<br><strong>5. Add Context</strong><br>You can add the contexts we need within the chat here, allowing the AI to work with certain data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*zB4bcJi21zdVSoV-inwK8A.png" /><figcaption>Add Context Dropdown</figcaption></figure><p><strong>Files &amp; Folders</strong><br>We use this to add the files we want the AI to base its understanding on. We can directly add the file itself using the drag-and-drop method. It is also possible to add folders directly apart from the file.<br><strong>Code</strong><br>This allows us to transfer a selected block of code as a reference to the AI. It is also possible to add by searching, but directly selecting the code block or copying the selected code block and pasting it into the chat is more convenient.<br><strong>Docs</strong><br>This is used to add specific documentation or technical documents to the AI’s context. It is often used to benefit from the documents of the provider of a new integration or an already existing structure (such as ready-made libraries). The cursor provides some example data in the pop-up window, for instance, like Amazon EC2. If you cannot find a suitable option among the choices, there is also a manual addition option available below. This way, you can also add documents manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*KadkXpq2kHfzB6Bv0xpU2A.png" /><figcaption>A Docs Example</figcaption></figure><p><strong>Git</strong><br>Used to reference the Git history of the project or a specific commit to the AI. Branches, commits, diffs, or past changes can be added as context to the AI.<br><strong>Past Chats</strong><br>Used when we need to add context from previous conversations. It is used when there is a need to remember or base something on old communications.<br><strong>Cursor Rules<br></strong>Used to ensure that the AI follows a specific set of rules that determine how it should behave, which we mentioned earlier. Manually created rules should be used here. Any type of rule can be called.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*GG4Av3Kiv_uMzZtsIfcbkg.png" /><figcaption>Rules We Added Before</figcaption></figure><p><strong>Terminals</strong><br>This is the type of context used when terminal outputs need to be added as context (e.g., to review logs). It is mostly used to track error messages and logs.</p><p><strong>Codebase</strong><br>This is used to include the entire project codebase in the AI’s context. It exposes the entire project structure to the AI, rather than on a file-by-file basis. It is generally used for the AI to understand the logic of the code.</p><p><strong>Linter Errors</strong><br>This is used to show linter errors to the AI to receive suggestions for solutions. It adds errors produced by tools like ESLint and Prettier to the context.</p><p><strong>Web</strong><br>This is used to ensure that the AI provides more up-to-date and relevant answers by adding information obtained from the internet to its context. The AI can pull data from specific sources on the web and use this data to make suggestions. Commonly used to retrieve documentation, API references, or technical articles. It is also possible to use it by copying and pasting links.</p><p><strong>Recent Changes</strong><br>This is used to ensure that the AI understands the recent changes in your project and makes suggestions accordingly. It is sufficient to select it directly; it automatically focuses on the changes.</p><p>In this article I have briefly described the tools in Cursor, I hope you enjoyed reading it. Have a good day ⭐</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d890f343753" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS ile Docker & Jenkins kullanımı]]></title>
            <link>https://medium.com/@enesbiricik/aws-ile-docker-jenkins-kullan%C4%B1m%C4%B1-ef96344fa635?source=rss-11cdd374b570------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef96344fa635</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ci-cd-devops]]></category>
            <dc:creator><![CDATA[Enes Biricik]]></dc:creator>
            <pubDate>Sun, 20 Oct 2024 17:40:38 GMT</pubDate>
            <atom:updated>2024-10-21T18:12:25.545Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhabalarrrr! bu yazımda size linux ortamında AWS kullanarak Docker ve Jenkins kullanımını bir .Net projesi ile anlatacağım 🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSO_EDjpNdxojDSgizt8Mw.png" /><figcaption>Görsel Yapay Zeka Aracı Copilot ile hazırlanmıştır.</figcaption></figure><p>Öncelikle bir konsola ihtiyacımız var ben burada <strong>MobaXterm Home Edition</strong> tercih edeceğim. Uygulamayı açtıktan sonra yapmamız gereken Tools kısmından <strong>MobaKeyGen (SSH Key Generator)</strong> sekmesine tıklayıp açılan pencereden <strong>RSA</strong> tipinde bir key generate etmektir. Bu işlem biraz uzun sürebilir tam çıktıyı aldıktan kodu kopyalayıp bir not defterine yazalım ve ayrıca .ppk uzantılı olarak dosyalara da bir kayıt ekleyelim ve bir sonraki adıma geçebiliriz .</p><p>https://aws.amazon.com/tr/ adresinden üye olup Amazon EC2 console için giriş yapmamız gerekiyor. Bu aşamada sorun yaşayanlar https://aws.amazon.com/tr/ec2/getting-started/ bu adresten kurulumu tamamlayabilirler. Giriş yaptıktan sonra EC2 Panosunun altında Ağ ve Güvenlik sekmesinin altında <strong>Anahtar çiftleri </strong>kısmına tıklayıp sağ üstteki eylemler kısmından içe aktar seçeneğini seçiyoruz ve not defterine yazdığımız kodu bir isim vererek ekliyoruz buradaki işlem bu kadar şimdi ben bulut suncusu başlatma adımından devam edeceğim.</p><figure><img alt="EC2 Panosundaki sunucu başlatma adımı." src="https://cdn-images-1.medium.com/max/528/1*BjHI2eLYEGI8JcWMnDISCw.png" /></figure><p>Sunucu için bir isim belirledikten sonra işletim sistemi olarak Amazon Linux 2023 AMI seçiyoruz. Aşağıda username alanında gördüğümüz üzere <strong>ec2-user </strong>birazdan konsol üzerinden giriş yapmamızı sağlayacak. Daha sonra <strong>Anahtar Çifti (Giriş) </strong>kısmında önceden eklediğimiz Anahtar çiftini seçiyoruz. Kalan adımları da varsayılan değerlerde bırakarak tamamlıyoruz ve bulut sunucunu başlatıyoruz. Başlatılan sunucu EC2 Panosundaki kaynaklar kısmından <strong>Bulut Sunucuları(Çalışan) </strong>kısmından görüntülenebilir.</p><p>Tekrar MobaXterm uygulamasına dönüyoruz sol tarafta yazan <strong>User sessions</strong> üzerine sağ tık yapıp <strong>New Session</strong> seçeneğini seçiyoruz. Açılan pencereden <strong>SSH</strong> yazan seçeneğe tıklayıp EC2 panosunda çalışan bulut sunucuları sekmesiden oluşturduğumuz sunucunun üzerine tıklayıp <strong>Genel IPv4 adresi</strong> altında yer alan ip adresini MobaXterm içerisideki <strong>Remote host </strong>alanına yapıştırıyoruz. hemen altındaki <strong>Advanced SSH settings</strong> sekmesine tıklayıp <strong>Use private key</strong> alanını işaretleyip önceden generate edip dosyalara kaydettiğimiz <strong>.ppk uzantılı </strong>dosyayı buraya ekliyoruz işlemi tamamlayıp kurulumu bekliyoruz.</p><p>Kurulum tamamlandıktan sonra User sessions sekmesinin altında eklediğimiz IP adresi görünür olacak ve tıklayarak onun için bir konsol oluşturmuş oluyoruz. Açılan konsoldan login as sorusuna yanıt olarak <strong>ec2-user </strong>yazıyoruz ve an itibariyle sunucu içerisinde çalışabilir hale geliyoruz. Burada öncelikle kurmamız gereken paketleri kurarak başlayacağız. Biz Amazon Linux 2023 kullandığımız için yazacağımız kodlar biraz farklı olacak. Docker paketini kurmak için:</p><pre>sudo yum install -y docker</pre><p>bu komutu çalıştırdıktan sonra Docker servisini başlatmak için:</p><pre>sudo service docker start</pre><p>Daha sonra sudo komutuna ihtiyaç duymadan yazabilmek için ec2-user kullanıcısını docker grubuna ekliyoruz:</p><pre>sudo usermod -a -G docker ec2-user</pre><p>Bu kodları konsola yapıştırmak için <strong>shift+insert</strong> yapmamız gerekiyor aksi halde elle yazmak durumundayız :/ Kuruşum başarılı şekilde tamamlandıysa aşağıdaki örnek kodu çalıştırınca container id image gibi alanları gösteren bir tablo boş olarak gelmelidir.</p><pre>docker ps</pre><p>Bu aşamada Docker kurulumu tamamlanmış olur ve Docker Compose kurulumuna geçeriz. Bu aşama da Amazon Linux 2023 kullanımından ötürü biraz farklıdır. Aşağıdaki komutları sırayla çalıştırmak gerekir.</p><pre>sudo mkdir -p /usr/local/lib/docker/cli-plugins</pre><pre>sudo curl -sL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-&quot;$(uname -m)&quot; \<br>  -o /usr/local/lib/docker/cli-plugins/docker-compose</pre><pre>test -f /usr/local/lib/docker/cli-plugins/docker-compose \<br>  &amp;&amp; sudo chown root:root /usr/local/lib/docker/cli-plugins/docker-compose</pre><pre>test -f /usr/local/lib/docker/cli-plugins/docker-compose \<br>  &amp;&amp; sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose</pre><p>Bu aşamada sorun yaşayacak olursanız https://gist.github.com/thimslugga/36019e15b2a47a48c495b661d18faa6d bu adresten detaylı kontrol sağlayabilirsiniz.</p><p>Şimdi docker ve docker compose kurulumlarımız tamamlandı. Şimdi /home/ec2-user/jenkins/ bu klasör yapısını kurup içerisine Dockerfile ve docker-compose.yml dosyalarını ekleyeceğiz. Klasör oluşturmanız gerekirse mkdir komutu işinizi görecektir. Bu aşama sonucunda jenkins kullanabileceğimiz bir container oluşacak. Dockerfile kurulumu için aşağıda adım adım kodları ekledim.</p><pre>cd jenkins/</pre><pre>vi Dockerfile</pre><pre>FROM jenkins/jenkins<br><br>USER root<br><br>RUN apt-get update -qq &amp;&amp; apt-get install -qqy apt-transport-https ca-certificates curl gnupg2 software-properties-common<br><br>RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -<br><br>RUN add-apt-repository \<br>   &quot;deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable&quot;<br><br>RUN apt-get update -qq &amp;&amp; apt-get install -qqy docker-ce docker-ce-cli containerd.io<br><br>USER root</pre><p>bu Dockerfile’ı kaydettikten sonra konsol kısmına:</p><pre>docker build -t enesbiricik/jenkinswithdocker .</pre><p>bu kodu yazarak -t komutundan sonra istediğiniz ismi vererek image oluşturun. Bu isim docker-compose.yml dosyası içerisinde tekrardan çağrılacak. Görmek isterseniz docker images komutuyla imaj oluşup oluşmadığını anlayabilirsiniz. Şimdi docker-compose dosyası oluşturacağız adım adım:</p><pre>vi docker-compose.yml</pre><pre>services:<br>  s_jenkins:<br>    container_name: c_jenkins<br>    build:<br>      context: .<br>      dockerfile: Dockerfile<br>    ports:<br>      - 8080:8080<br>      - 50000:50000<br>    volumes:<br>      - /var/run/docker.sock:/var/run/docker.sock<br>    user: &quot;root&quot;</pre><p>Bu kodu kaydettikten sonra konsola:</p><pre>docker compose build</pre><pre>docker compose up -d</pre><p>Bu işlem birazcık uzun sürebilir tamamlandıktan sonra aşağıdaki komut ile kontrol edebilirsiniz:</p><pre>docker container ls -a</pre><p>Bu komut hem çalışan hem çöken container’ları gösterir eğer bir çökme durumu varsa exited şeklinde bir çıktı alırsınız ilgili container hakkında.</p><p>Tüm bu aşamalardan sonra Amazon EC2 panosundan sunucuya tıklayıp güvenlik sekmesinden Güvenlik gruplarının altında bulunan linke tıklayarak <strong>Gelen kurallar</strong> sekmesine erişebililiriz. Bu sekmede kullanacağımız portları ekleriz ve şu anda bize lazım olan 8080 portudur. Gelen kuralları düzenleye tıklayıp açılan sayfada sol altta kural ekle deyip Port range alanına compose dosyasında verdiğimiz portu yazalım ve kaynak kısmından dışarı açalım.</p><p>Eğer çalışıyorsa:</p><blockquote>http://sunucunun_ip_adresi:verilen_port</blockquote><p>bu adrese tarayıcı üzerinden giderek kontrol edebiliriz. Benim kurulumumda ip:8080 şeklinde. Burada bizi ilk karşılayan şey jenkins arayüzünde istenilen <strong>Administrator password</strong> ‘dür. Bu alanı doldurabilmek için konsola aşağıdaki komutu yazarak konsolumuzu sayfada gösterilen yola erişebilecek hale getiriyoruz.</p><pre>docker exec -it your_container_name(example: c_jenkins) bash</pre><p>Giriş sağladıktan sonra:</p><pre>cat /var/jenkins_home/secrets/initialAdminPassword</pre><p>bu komutu yazdıktan sonra ekranda bir şifre görünecek ve bunu kopyalayacağız. Kopyalanan şifreyi tarayıcıda ilgili yere yapıştırıp gönderiyoruz. Bir süre sonra <strong>Customize Jenkins</strong> ekranı açılacak ve biz seçeneklerden <strong>Install suggested plugins</strong> olanı seçeceğiz. Kurulum tamamlandıktan sonra<strong> Create First Admin User</strong> ekranı geliyor ve bu aşamada kayıt işlemi yapıyoruz daha sonrasında ilerleyerek Jenkins Dashboard’a ulaşıyoruz.</p><p>Şimdi yapmamız gereken .Net projemizi Github üzerinden çekebilecek kurulumu yapmak. Bunun için sol taraftan Manage Jenkins&gt; Manage Plugins sayfasına gidiyoruz burada sol sekmelerden <strong>available </strong>sekmesine geçip aşağıdaki paketleri kuruyoruz:</p><blockquote>Generic Webhook Trigger</blockquote><blockquote>Github Authentication</blockquote><blockquote>Github Integration</blockquote><p>Bunları seçip sağdan yükle dedikten sonra açılan sayfada en altta yeniden başlatmasını sağlayacak Restart checkbox’ı işaretleyerek Jenkins’i yeniden başlatıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*BRBimgYmFbPUq81RafgZxg.png" /></figure><p>Şimdi .Net projemizi Jenkins içerisine entegre edeceğiz. Bunun için Örnek bir .Net projesi oluşturuyoruz ve Program.cs içerisinde</p><pre>app.UseHttpsRedirection();</pre><p>bu komutu yorum satırı yapıp app run komutunu:</p><pre>app.Run(&quot;http://*:1000&quot;);</pre><p>Bu güncellemelerden sonra bir adet Dockerfile bir adet de docker-compose.yml dosyası proje klasörü içerisine oluşturuyoruz. Dockerfile:</p><pre># Base image for the runtime<br>FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base<br>WORKDIR /app<br><br>FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build<br>WORKDIR /src<br>COPY . .<br>RUN dotnet restore<br>RUN dotnet publish --no-restore -c Release -o /app<br>FROM base AS final<br>WORKDIR /app<br>COPY --from=build /app .<br>ENTRYPOINT [&quot;dotnet&quot;, &quot;DockerTest1.dll&quot;]</pre><p>docker-compose.yml ise:</p><pre>services:<br>     testapi:<br>       build:<br>         context: .<br>         dockerfile: Dockerfile<br>       ports:<br>         - &quot;1000:1000&quot;<br>       container_name: c_testapi<br>       deploy:<br>        resources:<br>          limits:<br>            cpus: &#39;2.0&#39;<br>            memory: 4G<br>          reservations:<br>            memory: 2G</pre><p>Burada verdiğimiz port bilgisi ve container name alanlarına dikkat etmemiz gerekiyor birazdan lazım olacak. Aşağıda bu container oluşurken daha verimli çalışması adına da resources kısmından ek kaynak ayırmasını sağladık. Şimdi Bu projeyi VS Code aracılığıyla Github’a Pushlamamız gerekiyor. Push işleminden sonra Github’a giderek projeyi açıyoruz. Projeyi public olarak açtım ben eğer private olarak yapmak istiyorsanız ek ayarlar yapmanız gerekecek.</p><p>Jenkins arayüzüne tekrar dönerek sol kısımdan New Item’a tıklıyoruz açılan sekmede Freestyle project seçip bir isim veriyoruz. Sonraki sayfada ise Description kısmından Github Project seçiyoruz ve Github projemizin aşağıdaki örnekteki gibi olan linkini yapıştırıyoruz:</p><blockquote><a href="https://github.com/EnesBiricik/TestJenkins.git">https://github.com/yourusername/yourproject.git</a></blockquote><p>bu linki almak için yapmanız gereken proje sayfasında sağda kalan Code sekmesini açmaktır:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*WFg4is1hf0F-auwLE-uGjg.png" /></figure><p>Linki yapıştırdıktan sonra Source Node Managment kısmından Git seçeneğini seçiyoruz ve açılan yerde Repository Name alanına az önce kopyaladığımız linki ve bu projenin olduğu branch’in ismini veriyoruz. Build Triggers alanında VS Code tarafından pushlanan her güncellemeyi alacak hale getirmek istiyorsak GitHub hook trigger for GITScm polling alanını seçmemiz gerekir ama tek başına yeterli olmaz ayrıca github proje sayfanızdaki ayarlar sekmesine gidip Webhooks sekmesini açıp yeni bir webhook eklemeniz gerekir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*0jbuhJmLR79hkLc6td-yFg.png" /></figure><pre>http://your_ip_address:8080/github-webhook/</pre><p>Görselde görüldüğü gibi kendi Jenkins kurulumunuzun IP adresini ve portunu doldurup create etmeniz gerekir.</p><p>Daha sonra <strong>build</strong> sekmesine tıklayarak <strong>execute shell</strong> seçeneğini seçerek bir shell arayüzü açılmasını sağlarız. Burada kendi shell komutlarım:</p><pre>docker stop c_testapi || true<br>docker rm c_testapi || true<br>docker compose -f ./DockerTest1/docker-compose.yml down || true<br>docker compose -f ./DockerTest1/docker-compose.yml build<br>docker compose -f ./DockerTest1/docker-compose.yml up -d</pre><p>Burada yolları doğru vermek önemlidir docker-compose dosyasınızın dizinini kendinize göre ayarlayın. Baştaki kodlar güncellemeleri yansıtabilmek için eğer varsa değiştirmesini sağlayacak komutlardır.</p><p>Tüm bu aşamalardan sonra Amazon EC2 panosundan sunucuya tıklayıp güvenlik sekmesinden Güvenlik gruplarının altında bulunan linke tıklayarak <strong>Gelen kurallar</strong> sekmesine erişebililiriz. Bu sekmede kullanacağımız portları ekleriz ve şu anda bize lazım olan 1000:1000 portudur. Gelen kuralları düzenleye tıklayıp açılan sayfada sol altta kural ekle deyip Port range alanına .Net projemizin compose dosyasında verdiğimiz portu yazalım ve kaynak kısmından dışarı açalım.</p><p>Şimdi Jenkins arayüzünden manuel olarak bir adet deneme yapalım. Bunun için Dashboard sayfasından oluşturduğumuz item’a tıklayarak özelleştirdiğimiz item ile alakalı bir yönetim paneli açılır. Bu panelden tekrardan konfigüre edebilir ve manuel build alabiliriz. Build Now seçeneğine tıklayarak bir adet deneme yapalım hemen sol altta aktif ve geçmiş build’leri Build History alanında liste halinde bize sunar. Aktif build’e tıklayarak bu build hakkında bilgi alabiliriz. Bize sıkça lazım olacak olan Console Output alanıdır. Bu alan sayesinde bir ahta durumunda çökmenin hangi aşamada ve neden olduğunu görebilir daha detaylı loglamalar için execute shell alanını konfigüre ederek detaylandırabiliriz.</p><p>Evettt bu yazımda size AWS kullanarak Docker ve Jenkins kullanımını anlatmaya çalıştım eksiklerim veya hatalarım varsa lütfen belirtmekten çekinmeyin.</p><p>Okuduğunuz için teşekkürler 🚀</p><p>İyi çalışmalarrrr🔥</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef96344fa635" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>