<?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 Alhuzwirialfi on Medium]]></title>
        <description><![CDATA[Stories by Alhuzwirialfi on Medium]]></description>
        <link>https://medium.com/@alhuzwirialfi?source=rss-19f009199c2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ubt29s4B1ZKkSllZ</url>
            <title>Stories by Alhuzwirialfi on Medium</title>
            <link>https://medium.com/@alhuzwirialfi?source=rss-19f009199c2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:31:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alhuzwirialfi/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[Build Your Own Cloud PBX: Setting Up Asterisk VoIP on Oracle Cloud (ARM64) from Scratch]]></title>
            <link>https://alhuzwirialfi.medium.com/build-your-own-cloud-pbx-setting-up-asterisk-voip-on-oracle-cloud-arm64-from-scratch-24aac10dc1de?source=rss-19f009199c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/24aac10dc1de</guid>
            <dc:creator><![CDATA[Alhuzwirialfi]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 17:04:10 GMT</pubDate>
            <atom:updated>2026-03-09T17:04:10.294Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>📞 Call between devices from anywhere in the world, for free, on your own server.</blockquote><h3><strong>Background</strong></h3><p>If you’ve ever studied telecommunications PABX, VoIP, SIP you’re probably familiar with telephone adapters like the TA1600, which bridges analog phone systems to IP networks. This article takes it one step further: building your own cloud PBX using Asterisk on a VPS, so anyone can make calls from anywhere as long as they have internet access.</p><p>Architecture</p><pre>Phone/Laptop (Zoiper/Grandstream) → Internet → VPS Asterisk → Phone/Laptop</pre><p>Tech Stack</p><pre>- Oracle Cloud Free Tier (ARM64 / Ampere A1)<br>- Ubuntu 22.04<br>- Asterisk 20<br>- Grandstream Wave / Zoiper (client)</pre><p>Prerequisites</p><pre>- Oracle Cloud account (Free Tier is enough)<br>- Ubuntu 22.04 ARM64 VPS up and running<br>- SSH access to the VPS<br>- Phone with Grandstream Wave or Zoiper installed</pre><p><strong>Part 1 — Installing Asterisk from Source</strong></p><p>Oracle Cloud Free Tier uses <strong>**ARM64 (Ampere A1)**</strong> architecture. Asterisk is not available in the apt repository for ARM64, so we need to build it from source.</p><ol><li><strong>Install Dependencies</strong></li></ol><pre>sudo apt update &amp;&amp; sudo apt upgrade -y<br>sudo apt install -y build-essential wget libssl-dev libncurses5-dev \<br>  libnewt-dev libxml2-dev libsqlite3-dev uuid-dev git \<br>  libjansson-dev liburiparser-dev libedit-dev</pre><p>2. Download Asterisk</p><pre>cd /usr/src<br>sudo wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz<br>sudo tar -xvzf asterisk-20-current.tar.gz<br>cd asterisk-20*/</pre><p>3. Install Prerequest automaticaly</p><pre>sudo contrib/scripts/install_prereq install</pre><p>4. Compile and Install</p><p><strong><em>⚠️ The `make` process on ARM64 takes </em>**15–45 minutes**<em>. This is normal.</em></strong></p><p>5. Start Asterisk</p><pre>bash<br>sudo systemctl enable asterisk<br>sudo systemctl start asterisk<br>sudo systemctl status asterisk<br><br>Expected output:<br>Active: active (running)</pre><p>For details you can acces here</p><p><a href="https://github.com/Alhuzsyam/Asterisk-Void.git">https://github.com/Alhuzsyam/Asterisk-Void.git</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24aac10dc1de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect AWS RDS MySQL with Java Spring Boot]]></title>
            <link>https://alhuzwirialfi.medium.com/how-to-connect-aws-rds-mysql-with-java-spring-boot-06aa5893b97b?source=rss-19f009199c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/06aa5893b97b</guid>
            <category><![CDATA[aws-rds]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Alhuzwirialfi]]></dc:creator>
            <pubDate>Sat, 16 Aug 2025 16:43:48 GMT</pubDate>
            <atom:updated>2025-08-16T16:43:48.312Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6U8xYPrnY6oh7BeB_FgEyA.png" /></figure><h3>Introduction</h3><p>Amazon RDS (Relational Database Service) is a <strong>fully managed database service by AWS</strong>. It offers several database engines such as <strong>MySQL, PostgreSQL, MariaDB, Oracle, and SQL Server</strong>. With RDS, you don’t need to manage the underlying infrastructure, backups, or maintenance — AWS takes care of it.</p><p>In this guide, we’ll use <strong>MySQL on RDS</strong> and demonstrate how to connect it with a <strong>Java Spring Boot application</strong>. For monitoring and managing the database, we’ll use <strong>DBeaver</strong>. This practical approach allows you to integrate AWS RDS into a Spring Boot project seamlessly.</p><h3>Step 1: Create an AWS RDS MySQL Database</h3><ol><li><strong>Go to the AWS Console → RDS → Create Database.</strong></li><li><strong>Select MySQL</strong> as the database engine.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WR9sq0QoiP3lRO73LQgnTg.png" /><figcaption>Create Database Instance</figcaption></figure><p><strong>Choose a template:</strong></p><ul><li>Select <strong>Free Tier</strong> if available.</li><li>If not available, choose <strong>Sandbox</strong>.</li><li>These templates are ideal for developing new applications, testing existing ones, or gaining hands-on experience with Amazon RDS.</li></ul><p><strong>DB Instance Identifier:</strong></p><ul><li>Enter a unique name for your DB instance.</li><li>The name must be unique across all DB instances in your AWS account within the selected region.</li></ul><p><strong>DB Username and Password</strong></p><p>choose Self managed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sgdv9HW4DQREFYXLfKR3HQ.png" /><figcaption><strong>Credential Setting</strong></figcaption></figure><p><strong>DB Instance Class:</strong></p><ul><li>Select <strong>db.t3.micro</strong> (suitable for small workloads or testing).</li></ul><p><strong>Public Access:</strong></p><ul><li>Select <strong>Yes</strong> to allow access from outside the VPC.</li><li>This assigns a public IP address to the database, enabling connections from Amazon EC2 instances or other resources outside the VPC.</li><li>Ensure you select one or more <strong>VPC security groups</strong> that define which resources are allowed to connect to the database.</li></ul><p><strong>Finalize:</strong></p><ul><li>Review your settings and click <strong>Create Database</strong>.</li></ul><h3>Step 2: Add and Allow Port 3306 Inbound in Security Group</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X9Gm96zXLQTcyaT63SExaQ.png" /><figcaption>Allow Port 3306</figcaption></figure><ol><li><strong>Go to the AWS Console → EC2 → Security Groups.</strong></li><li><strong>Select the security group</strong> associated with your RDS instance.</li><li><strong>Add an inbound rule:</strong></li></ol><ul><li><strong>Type:</strong> MySQL/Aurora</li><li><strong>Protocol:</strong> TCP</li><li><strong>Port Range:</strong> 3306</li><li><strong>Source:</strong> Specify the IP addresses or range that will be allowed to connect (e.g., your local IP or 0.0.0.0/0 for all IPs, though the latter is not recommended for production).</li></ul><p><strong>Explanation:</strong></p><ul><li>Port <strong>3306</strong> is the default port for MySQL connections.</li><li>Opening this port inbound allows external clients, such as your local machine, EC2 instances, or Spring Boot applications, to connect to your RDS MySQL database.</li><li>Restricting the source IP range improves security by limiting who can access your database.</li></ul><h3>Step 3: Create an Entity in Spring Boot and Configure MySQL Connection</h3><ol><li>Add MySQL Connector dependency in your pom.xml:</li></ol><blockquote>&lt;dependency&gt;<br> &lt;groupId&gt;mysql&lt;/groupId&gt;<br> &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;<br> &lt;version&gt;8.1.0&lt;/version&gt;<br>&lt;/dependency&gt;</blockquote><p>2. Configure your Spring Boot application properties (application.properties or application.yml):</p><blockquote>spring.datasource.url=jdbc:mysql://&lt;your-database-endpoint&gt;:3306/&lt;databaseName&gt;<br>spring.datasource.username=admin<br>spring.datasource.password=admin<br>spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver</blockquote><blockquote>spring.jpa.hibernate.ddl-auto=update<br>spring.jpa.show-sql=true</blockquote><p><strong>3. Important Notes:</strong></p><ul><li>Before connecting, make sure to <strong>create a new database</strong> inside your RDS instance.</li></ul><blockquote>Many beginners confuse the <strong>RDS instance</strong> with the actual database. An RDS instance can host multiple databases.</blockquote><ul><li>You can find database Endpoint at <strong>Connectivity &amp; security Setting </strong>at database<strong> </strong>instance.</li><li>You can create a database using <strong>DBeaver</strong> (GUI) or via CLI with MySQL:</li></ul><blockquote>mysql -h &lt;your-db-endpoint&gt; -P 3306 -u &lt;your-username&gt; -p<br>CREATE DATABASE your_database_name;</blockquote><p><strong>DBeaver</strong> (GUI) Setting</p><ul><li>Create new connection → Choose Mysql Database →setting your connection</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYOPfRpHMGmuAypNGogZ8g.png" /><figcaption>Dbeaver Connection Setting</figcaption></figure><p>If you want to practice using a ready made Spring Boot project, you can visit my GitHub repository: <a href="https://github.com/Alhuzsyam/Springboot_restAPI.git">https://github.com/Alhuzsyam/Springboot_restAPI.git</a><br> You only need to edit the properties file with the settings above, matching your RDS database.</p><p>Once everything is set up, run your Spring Boot application and you’ll see new tables automatically created in your RDS database. You can check them easily using DBeaver.</p><p>That’s it for this tutorial! Wishing you good health and lots of coffee ☕ and don’t forget to open your code editor and start typing before your laptop starts missing you! 😄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06aa5893b97b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting to AWS CLI Using IAM User Access Keys]]></title>
            <link>https://alhuzwirialfi.medium.com/connecting-to-aws-cli-using-iam-user-access-keys-c54dfcc99cc6?source=rss-19f009199c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c54dfcc99cc6</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-iam]]></category>
            <dc:creator><![CDATA[Alhuzwirialfi]]></dc:creator>
            <pubDate>Thu, 14 Aug 2025 15:38:33 GMT</pubDate>
            <atom:updated>2025-08-14T15:40:45.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AWS Cat Banner" src="https://cdn-images-1.medium.com/max/1024/1*qB2sU_FfRmZlbDV46ENoJw.png" /></figure><p>There are many ways to access AWS, but in this case, I will demonstrate how to access AWS through the CLI using IAM (Identity and Access Management) access keys.</p><p>This method is especially useful if you prefer working from the terminal, automating tasks, or managing AWS resources without logging into the AWS Management Console.</p><p><strong>Before we begin, make sure you have:</strong></p><ol><li>An AWS account.</li><li>An IAM user with programmatic access enabled.</li><li>AWS CLI installed on your local machine.</li></ol><h3>Step-by-Step Guide</h3><h3>Step 1 — Create an IAM User</h3><ol><li>Go to <strong>AWS Management Console → IAM → Users → Add Users</strong>.</li><li>Enter a username.</li><li>Select <strong>Access key — Programmatic access</strong>.</li><li>Attach permissions (e.g., AmazonS3FullAccess, AmazonEC2FullAccess).</li><li>Save the <strong>Access Key ID</strong> and <strong>Secret Access Key</strong>.</li></ol><figure><img alt="Add IAM User" src="https://cdn-images-1.medium.com/max/1024/1*q2cpjw-lBZrHOg8cDIp6tA.png" /></figure><h3>Step 2 — Install AWS CLI</h3><ul><li><strong>Windows</strong> → Download installer from AWS CLI official site.</li><li><strong>Mac/Linux</strong>:</li></ul><p>curl “<a href="https://awscli.amazonaws.com/AWSCLIV2.pkg">https://awscli.amazonaws.com/AWSCLIV2.pkg</a>&quot; -o “AWSCLIV2.pkg”<br>sudo installer -pkg AWSCLIV2.pkg -target /</p><ul><li><strong>Check installation:</strong></li></ul><p>type <strong>aws — version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*prUTmsjGzeoVouay-gzw7w.png" /></figure><h3>Step 3 — Configure AWS CLI</h3><p>Type <strong>aws configure</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHy7otHRHrcnZjQfHmGwTA.png" /></figure><h3>Step 4 — Test the Connection</h3><p>Type <strong>aws s3 ls, </strong>If successful, you’ll see the list of your S3 buckets.</p><figure><img alt="Testing aws Connection" src="https://cdn-images-1.medium.com/max/1024/1*IpLjTyfCOjjTFbJ5IK-ePQ.png" /></figure><h3>Conclusion</h3><p>By configuring AWS CLI with IAM access keys, you can securely and efficiently manage AWS resources from the command line. This is especially useful for automation, scripting, and working in environments without a GUI.</p><p><em>What AWS tutorial should I cover next? Leave your suggestions in the comments below — thank you for reading!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c54dfcc99cc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dokerize Java Springboot Project]]></title>
            <link>https://blog.devops.dev/dokerize-java-springboot-project-894c88832c6d?source=rss-19f009199c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/894c88832c6d</guid>
            <category><![CDATA[dockerize]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Alhuzwirialfi]]></dc:creator>
            <pubDate>Mon, 27 May 2024 08:25:41 GMT</pubDate>
            <atom:updated>2024-05-28T10:20:44.329Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of modern software development, containerization has become the industry standard for managing and running applications consistently across various environments. Docker is one of the most popular tools that allows developers to create, deploy, and run applications within containers.</p><p>This guide will help you Dockerize your Spring Boot project so that your application can run inside a Docker container. By following the steps in this guide, you will be able to:</p><ol><li>Create a Dockerfile for your Spring Boot project.</li><li>Build a Docker image from your application.</li><li>Run the application in a Docker container.</li></ol><p>This guide is designed for developers who have a basic understanding of Spring Boot and Docker. If you are new to Docker, don’t worry! Each step is explained in detail to facilitate understanding.</p><p>Let’s begin this containerization journey and see how Docker can simplify the development and deployment process of your Spring Boot application!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*EVUx4rPqeexon8WEtIYrYw.png" /></figure><p><strong>Preparation<br></strong>Make sure Docker, Java and Maven are installed on your computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4-J6GwbnSSRW2gd0PKodpg.png" /><figcaption>Java</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcoWkpZqxAJ_WMr8lPMjLQ.png" /><figcaption>Maven</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*OKzL7ugo1FCmjx_MpW6RuA.png" /><figcaption>Docker</figcaption></figure><p><strong>Get Started !</strong></p><ol><li>Generate Java Springboot project</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*le1-B3DxwoNtgKF9Ty0sgQ.png" /></figure><p>In this case, I’m building a simple RestApi project. I’m creating a welcome page using RestApi. As you can see in the image above, I have added the Spring Web dependency.</p><p>2. Create a controller at your java project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBc5uvAzvebkc1mWlcluHg.png" /><figcaption>WelcomeController</figcaption></figure><p>The REST endpoint points to a path. For example, if we use port 8080, the path will be like this: <a href="http://localhost:8080/api/v1/welcome.">http://localhost:8080/api/v1/welcome.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9iohyGln_m2auw5mEFhj5w.png" /><figcaption>The result before using docker</figcaption></figure><p>3. Create Dockerfile</p><p>Dockerfile Hierarki</p><pre>Demo/<br>├── <strong>Dockerfile</strong><br>├── pom.xml<br>├── .mvn/<br>│ └── wrapper/<br>│ ├── maven-wrapper.jar<br>│ └── maven-wrapper.properties<br>├── mvnw<br>├── mvnw.cmd<br>├── src/<br>│ ├── main/<br>│ │ ├── java/<br>│ │ │ └── com/<br>│ │ │ └── example/<br>│ │ │ └── demo/<br>│ │ │ ├── DemoApplication.java<br>│ │ │ └── controller/<br>│ │ │ └── WelcomeController.java<br>│ │ └── resources/<br>│ │ ├── application.properties<br>│ │ └── static/<br>│ │ └── index.html<br>│ └── test/<br>│ └── java/<br>│ └── com/<br>│ └── example/<br>│ └── demo/<br>│ └── DemoApplicationTests.java<br>└── README.md</pre><p>The dockerfile code</p><p>Before creating the Dockerfile, you must build the Java project to generate the JAR artifact. You can use the following command: mvn clean install. It will generate the JAR artifact in the target folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ot9vv7-zKEPzGT2lKX6tZQ.png" /><figcaption>the jar file artifact.</figcaption></figure><p>Dockerfile</p><pre>FROM openjdk:17-jdk AS builder<br>COPY target/demo-0.0.1-SNAPSHOT.jar /app/demo.jar<br>CMD [&quot;java&quot;, &quot;-jar&quot;, &quot;/app/demo.jar&quot;]<br>EXPOSE 8085</pre><p>4. Build the image</p><p>The JAR file will be built into the image, which will then be run inside a Docker container. To do this, follow the command below: docker build -t your-image-name ..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omiSqjln8Mbbg6ha65x4lQ.png" /><figcaption>build the image</figcaption></figure><p>To check the built image, you can use the following command: docker images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-6WA6UxO4JgMCw1XCi5Gw.png" /><figcaption>docker image (alhuz/demo)</figcaption></figure><p>5. Run the Docker container</p><p>Once the Docker image is built, you can run it using the following command: docker run -p 8085:8085 your-image-name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o97GYhTP8qq3Zdc0bgU47A.png" /><figcaption>run the container</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AkbVzoWj_PFr5kqGIcjcGw.png" /><figcaption>docker container list.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o2dQKUs8z9rRW1A9OfI1Cg.png" /><figcaption>restapi endpoint run at docker container.</figcaption></figure><p>Conclusion</p><p>Dockerizing a Java Spring Boot project streamlines the deployment process, ensuring consistency across various environments. This guide walks you through the steps:</p><ol><li>Preparation: Ensure Docker, Java, and Maven are installed on your system.</li><li>Getting Started: Generate a Java Spring Boot project and create a REST API, adding necessary dependencies like Spring Web.</li><li>Create Dockerfile: Construct a Dockerfile to package your application into a Docker image.</li><li>Build Image: Execute docker build command to create the Docker image.</li><li>Run Container: Launch the Docker container using docker run command.</li></ol><p>By following these steps, you’ll have your Java Spring Boot application running seamlessly within a Docker container, simplifying deployment and ensuring portability across different environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=894c88832c6d" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/dokerize-java-springboot-project-894c88832c6d">Dokerize Java Springboot Project</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CI/CD Java Spring Boot Deploy to Docker Hub]]></title>
            <link>https://alhuzwirialfi.medium.com/ci-cd-java-spring-boot-deploy-to-docker-hub-b2046a7853f1?source=rss-19f009199c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2046a7853f1</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[java-spring-boot]]></category>
            <category><![CDATA[dockerhub]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Alhuzwirialfi]]></dc:creator>
            <pubDate>Mon, 05 Feb 2024 09:31:33 GMT</pubDate>
            <atom:updated>2024-02-05T09:35:02.540Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*7EyPo-TAm_klE2lnHnG09A.png" /></figure><p><strong>What Is CI/CD</strong><br>CI/CD stands for Continuous Integration and Continuous Delivery/Continuous Deployment. It is a set of practices and methodologies used in software development to automate and streamline the process of delivering high-quality software applications. Let’s break down each component:</p><p><strong>Continuous Integration (CI)</strong>:</p><ul><li>CI means that whenever a developer makes a change to the code, it gets automatically checked and tested to make sure it works well with the rest of the code.</li><li>This helps catch errors early and ensures that the codebase is always in a working state.</li></ul><p><strong>Continuous Delivery (CD)</strong>:</p><ul><li>CD means that whenever a change is made to the code and passes all the tests in the CI process, it’s automatically prepared to be released to users.</li><li>This doesn’t mean it’s released immediately, but it’s ready to go whenever needed with minimal effort.</li></ul><p><strong>Continuous Deployment (CD)</strong>:</p><ul><li>CD takes it a step further and automatically releases the changes to users as soon as they pass all tests in the CI process.</li><li>This means changes are constantly being deployed without manual intervention.</li></ul><p><strong>Summary</strong></p><p>In simple terms, CI ensures that code changes are tested, CD ensures they’re ready to be released, and in the case of Continuous Deployment, they’re released automatically. These practices help make sure that software is developed, tested, and released smoothly and quickly.</p><p><strong>Step preparation</strong></p><p>First thing first you can clone this repository<br><a href="https://github.com/Alhuzsyam/BelajarCiCDDockerHub.git">https://github.com/Alhuzsyam/BelajarCiCDDockerHub.git</a><br>After the repo is cloned u can create your own repository at your github account or u can just fork this repository.</p><p>this is workflow ci/cd configuration, u must create github secret variablle to access DockerHub, and the just replace image name, don’t forget to create new image at dockerhub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XHSov1zqE8RGZItlk9pQ4Q.png" /><figcaption>Github Repository Secret</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCppogkoRhA1iaEQV0I1xw.png" /><figcaption>Docker image at DockerHub</figcaption></figure><pre>- name: Build &amp; push Docker image<br>      uses: mr-smithers-excellent/docker-build-push@v5<br>      with:<br>        image: alhuz/restapijavaspringboot<br>        tags: latest<br>        registry: docker.io<br>        dockerfile: Dockerfile<br>        username: ${{ secrets.DOCKER_USERNAME }}<br>        password: ${{ secrets.DOCKER_PASSWORD }}</pre><pre>name: project cicd flow</pre><pre>on:<br>  push:<br>    branches: [ main ]<br>  pull_request:<br>    branches: [ main ]</pre><pre>jobs:<br>  build:</pre><pre>    runs-on: ubuntu-latest</pre><pre>    steps:<br>    - uses: actions/checkout@v2<br>    - name: Set up JDK 1.8<br>      uses: actions/setup-java@v1<br>      with:<br>        java-version: &#39;1.8&#39;<br>        distribution: &#39;adopt&#39;<br>        cache: maven<br>    - name: Build with Maven<br>      run: mvn clean install</pre><pre>    - name: Build &amp; push Docker image<br>      uses: mr-smithers-excellent/docker-build-push@v5<br>      with:<br>        image: alhuz/restapijavaspringboot<br>        tags: latest<br>        registry: docker.io<br>        dockerfile: Dockerfile<br>        username: ${{ secrets.DOCKER_USERNAME }}<br>        password: ${{ secrets.DOCKER_PASSWORD }}</pre><p>After u setup the workflow file, create the Dockerfile</p><pre>FROM openjdk:17<br>EXPOSE 8080<br>ADD target/restapijavaspringboot restapijavaspringboot.war<br>ENTRYPOINT [&quot;java&quot;,&quot;-war&quot;,&quot;/springboot-images-new.war&quot;]</pre><p>at pom.xml don’t forget add the finalName to setup aplication file name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*Dr5JuIFdMuIveCdLxcfw0Q.png" /><figcaption>pom.xml</figcaption></figure><p>the last step is push the repostitory it will triger the ci/cd process, u can check at Action tab, it will deploy your aplication to dockerhub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HLqZyuHB0j8a0eHr6pXsfQ.png" /><figcaption>CI/CD Process</figcaption></figure><p>you can pull the docker image at docker hub <strong>docker pull alhuz/restapijavaspringboot:latest </strong>and run the image in your docker container,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mC4qnNDdUdc-KH0WhJ5wA.png" /><figcaption>Result the aplication</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2046a7853f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instalasi IDS Snort pada ubuntu]]></title>
            <link>https://alhuzwirialfi.medium.com/instalasi-ids-snort-pada-ubuntu-4d57e2cdad43?source=rss-19f009199c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d57e2cdad43</guid>
            <category><![CDATA[security-systems]]></category>
            <category><![CDATA[snort]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[ids-software]]></category>
            <dc:creator><![CDATA[Alhuzwirialfi]]></dc:creator>
            <pubDate>Wed, 02 Jun 2021 16:03:08 GMT</pubDate>
            <atom:updated>2021-06-02T16:05:54.231Z</atom:updated>
            <content:encoded><![CDATA[<h3>Instalasi IDS Snort pada ubuntu 16.04</h3><p>Assalamualaikum, teman — teman bagaimana kabarnya sehat ?. Saya harap kalian sehat dan terselamatkan dari virus yang sedang melanda dunia saat ini. Kali ini saya akan membahas seputar security system pada jaringan slah satunya intrusion detection system (IDS). tools yang akan kita pejari adalah snort, pada part ini kita akan belajar cara instalasi nya. dipart selanjutnya saya akan menuliskan cara menulis rule pada snort dan melakukan serangan pada komputer server ang telah kita configurasi dengan snort.</p><p>Snort’s open source network-based detection system (NIDS) biasa digunakan untuk melakukan analisa lalulintas jaringan secara realtime dan packet loging dari jaringan internet protocol. Snort secara spesifik berfungsi untuk melakukan analisa protocol, pencarian content, . selain itu snort juga bisa digunakan sebagai deteksi serangan pada jaringan. Snort dapat dikonfigusi menjadi tiga mode utama. Yaitu sniffer, packet logger, dan network intrusion detection.</p><ul><li>Mode sniffer — snort akan membaca paket yang lewat dan menampilkan ke layar.</li><li>Mode logger — snort akan mencatat paket yang lewat ke disk.</li><li>Mode Intrusion Detection — snort akan memonitor semua traffic yang lewat, membandingkan dengan rule yang di definisikan oleh user.</li></ul><p>selnajunya langsung saja kita masuk ke langkah percobaan, langsung cek dibawah :</p><ol><li>Lakukan update repositori pada ubuntu kalian <strong>apt update</strong>, disini saya mamakai ubuntu versi 16.04 .</li><li>selanjutnya cek interface jaringan kalian dengan perintah <strong>ifconfig</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*FmmdPQBJH4pDSAFcaRX9bw.png" /></figure><p>3. Maka akan muncul seperti gambar diatas, catat interface jaringan kalian yaitu pada komputer saya <strong>enp0se.</strong></p><p>4.lalu ketikan perintah <strong>sudo locale-gen id_ID.UTF-8</strong></p><p>5. Setelah selsai kita mulai instalasinya dengan perintah</p><p><strong>apt -y install oinkmaster snort snort-common snort-rules-default snort-doc</strong></p><p>6. Ketika install nanti akan diminta interface jaringan dan range IP yang akan dimonitor misalnya disini saya menggunakan 192.168.0.0/16 untuk mengetahui berapa host nya bisa kalian itung sendiri ya hehe</p><p>7. Setlah semuanya selesai cek snort kalian dengan perintah <strong>snort -C. </strong>setelah berhasil maka akan muncul seperti gambar dibawah</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*5qphMcoGuvzIRqXdss-3ng.png" /></figure><p>Terimakasih cukup sekian teman — teman pembaca maaf jika ada istilah atau kata — kata yang keliru, kalian bisa komen dibawah disini kita sama — sama belajar :)</p><p>Referensi</p><p><a href="http://onnocenter.or.id/wiki">http://onnocenter.or.id/wiki</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d57e2cdad43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hanoi Tower dengan python]]></title>
            <link>https://alhuzwirialfi.medium.com/hanoi-tower-dengan-python-ec4ea1a8bd87?source=rss-19f009199c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec4ea1a8bd87</guid>
            <dc:creator><![CDATA[Alhuzwirialfi]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 14:16:08 GMT</pubDate>
            <atom:updated>2020-09-07T14:16:08.024Z</atom:updated>
            <content:encoded><![CDATA[<p>Selamat malam rek bagaimana kabarnya hari ini, semoga baik — baik saja ya hehe. Ditengah pandemi ini semua hal menjadi sulit mau kemana — mana susah, tapi jangan hilang semangat ya, tetap produktif kek saya malam ini tiba — tiba pingin nulis efek gabut juga mungkin hehe. Semoga semuanya lekas membaik (Aamiin).</p><p>Jadi malam ini aku mau buat sebuah tutorial hanoi tower atau permainan manara hanoi, sebenarnya sih ini praktikum pertama ku di kelas AI (kecerdasan buatan). Langsung aja semoga penjelasan singkat ini bisa menambah wawasan kalian.</p><p>Bagi yang belum tau menara hanoi bakal aku jelasin disini, jadi menara hanoi merupakan sebuah permainan yang memiliki tiga buah tiang atau tower yang di isi tiga buah atau lebih ring yang tersusun dari ukuran terbesar sampai terkecil, bisa kalian liat di bawah pada gambar 1.1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*GD2QYP8lk85AUNY3DBidHw.png" /><figcaption>gambar 1.1 hanoi tower</figcaption></figure><p>Permainan ini memiliki beberapa aturan diantaranya :</p><p>1. Hanya satu cakram yang dapat dipindahkan diantara Menara pada waktu tertentu</p><p>2. Hanya disk yang teratas yang bisa dipindahkan</p><p>3. Cakram besar tidak boleh diatas cakram dengan ukuran di bawahnya</p><p>jadi kalian harus memindahkan ring — ring diatas sesuai dengan susunan nya secara matematis untuk menghitung ada berapa langkah kalian bisa menyelesaikan permainan ini kalian bisa menggunakan persamaan 2^n — 1 pada kasus ini mempunyai 3 ring jadi Menara Hanoi dapat diselesaikan dengan 2³ — 1 = 7 langkah perpindahan.</p><p>biar lebih jelas kalian bisa lihat pada gambar 1.2 yaitu diagram alir menara hanoi</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*rN_7-gIlRrOublF0yvc7UQ.png" /><figcaption>gambar 1.2 Flowchart</figcaption></figure><p>sudah lebih jelas belum hehe, biar lebih jelas lagi aku kasih bocoranya deh hehe tapi bukan berarti kalian menyerah lo, ketika nanti kalian bermain permainan ini jangan nyontek ya 😆</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*hX1ihh5hYqdhBg6J29vHRw.png" /><figcaption>gambar 1.3 langkah — langkah permainan menara hanoi dengan 3 ring / cakram</figcaption></figure><p>aku kasih source code nya ya biar kalian lebih faham lagi tapi ingat jangan copas ya kalo mau coba kalo bisa kalian ketik ulang biar kalian bisa jago ngodingnya 😸 kalian bisa lihat sorce code nya pada link dibawah</p><p><a href="https://gist.github.com/Alhuzwir-alfi/dc9043e559c84b414d18e43626df0966">https://gist.github.com/Alhuzwir-alfi/dc9043e559c84b414d18e43626df0966</a></p><p>kalian bisa run di online text editor lebih enak pake repl.it (<a href="https://repl.it/">https://repl.it/</a>) semoga berhasil kalo semisal ada kesalahan mohon dimaafkan 😅 kalian bisa kasi kritik dan saran di kolom komentar.</p><p>Referensi :</p><p><a href="https://www.tutorialspoint.com/data_structures_algorithms/tower_of_hanoi.htm">https://www.tutorialspoint.com/data_structures_algorithms/tower_of_hanoi.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec4ea1a8bd87" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>