<?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[TEA Networks - Medium]]></title>
        <description><![CDATA[TEA Networks  Technical Blogs - Medium]]></description>
        <link>https://medium.com/tea-networks?source=rss----6190d7305431---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>TEA Networks - Medium</title>
            <link>https://medium.com/tea-networks?source=rss----6190d7305431---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:01:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/tea-networks" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Snipe-IT Installation]]></title>
            <link>https://medium.com/tea-networks/snipet-it-installation-7681ccf47dcd?source=rss----6190d7305431---4</link>
            <guid isPermaLink="false">https://medium.com/p/7681ccf47dcd</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Erdem Erdolu]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 07:42:47 GMT</pubDate>
            <atom:updated>2021-09-23T07:43:18.820Z</atom:updated>
            <content:encoded><![CDATA[<p>Snipe-IT was made for IT <strong>asset management</strong>, to enable IT departments to track who has which laptop, when it was purchased, which software licenses and accessories are available, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Io15of2ehQmcA1Ee2LF5ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*pm5rHu6yXNBxp6-xLgm-Ww.png" /></figure><p>This application, which comes with many features, can also report every detail in the general structure of the company, allowing easy inventory management. We will explain how to install on Ubuntu;</p><p>The main dependencies for the application to work are as follows;</p><p><strong><em>Step 1: Install Apache2 HTTP<br>Step 2: Install MariaDB Database Server<br>Step 3: Install PHP 7.2 and Related Modules<br>Step 4: Create Snipe-IT Database<br>Step 5: Download Snipe-IT Latest Release<br>Step 6: Configure Apache2<br>Step 7: Enable the Snipe-IT and Rewrite Module</em></strong></p><p>We tried to explain step by step below in accordance with the steps mentioned above;<br>First of all, we need an http server where the application will be opened, many different options can be found, we used apache in this example;</p><p><strong>Step 1: Install Apache2 HTTP</strong></p><pre>sudo apt update<br>sudo apt install apache2</pre><p>After installing Apache2, the commands below can be used to stop, start and enable Apache2 service to always start up with the server boots.</p><pre>sudo systemctl stop apache2.service<br>sudo systemctl start apache2.service<br>sudo systemctl enable apache2.service</pre><p>To find out if Apache2 HTTP server is installed, simply open your web browser and type in the server’s IP or hostname.</p><p>When you see the page similar to the one below, then Apache2 is installed and working</p><p><a href="http://localhost/">http://h</a>ostip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*USBQIidWx4NrH2U4uw82gg.png" /></figure><p><strong>Step 2: Install MariaDB Database Server</strong></p><p>Snipe-IT also needs a database server to store its content. and MariaDB database server is a great place to start when looking at open source database servers to use with Snipe-IT.</p><p>To install MariaDB run the commands below.</p><pre>sudo apt install mariadb-server mariadb-client</pre><p>After installing MariaDB, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots.</p><p><strong>Run these on Ubuntu</strong></p><pre>sudo systemctl stop mariadb.service<br>sudo systemctl start mariadb.service<br>sudo systemctl enable mariadb.service</pre><p>After that, run the commands below to secure MariaDB server by creating a root password and disallowing remote root access</p><pre>sudo mysql_secure_installation</pre><p>When prompted, answer the questions below by following the guide.</p><blockquote>Enter current password for root (enter for none): Just press the Enter<br>Set root password? [Y/n]: Y<br>New password: Enter password<br>Re-enter new password: Repeat password<br>Remove anonymous users? [Y/n]: Y<br>Disallow root login remotely? [Y/n]: Y<br>Remove test database and access to it? [Y/n]: Y<br>Reload privilege tables now? [Y/n]: Y<br>Restart MariaDB server</blockquote><p>To test if MariaDB is installed, type the commands below to logon to MariaDB server</p><pre>sudo mysql -u root -p</pre><p>Then type the password you created above to sign on. if successful, you should see MariaDB welcome message</p><p><strong>Step 3: Install PHP 7.2 and Related Modules</strong></p><p>PHP 7.2 may not be available in Ubuntu default repositories. in order to install it, you will have to get it from third-party repositories.<br>Run the commands below to add the below third party repository to upgrade to PHP 7.2</p><pre>sudo apt-get install software-properties-common<br>sudo add-apt-repository ppa:ondrej/php</pre><p>Then update and upgrade to PHP 7.2</p><pre>sudo apt update</pre><p>Next, run the commands below to install PHP 7.2 and related modules.</p><pre>sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-bcmath php7.2-xml php7.2-cli php7.2-zip php7.2-sqlite</pre><p>After installing PHP 7.2, run the commands below to open PHP default config file for Apache2.</p><pre>sudo nano /etc/php/7.2/apache2/php.ini</pre><p>Then make the changes on the following lines below in the file and save. The value below are great settings to apply in your environments.</p><pre>file_uploads = On<br>allow_url_fopen = On<br>short_open_tag = On<br>memory_limit = 256M<br>upload_max_filesize = 100M<br>max_execution_time = 360<br>max_input_vars = 1500<br>date.timezone = America/Chicago</pre><p>After making the change above, save the file and close out.</p><p>To test PHP 7.2 settings with Apache2, create a phpinfo.php file in Apache2 root directory by running the commands below</p><pre>sudo nano /var/www/html/phpinfo.php</pre><p>Then type the content below and save the file.</p><pre>&lt;?php phpinfo( ); ?&gt;</pre><p>Save the file. then browse to your server hostname followed by /phpinfo.php</p><p><a href="http://localhost/phpinfo.php">http://localhost/phpinfo.php</a></p><p>You should see PHP default test page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-VqxYq6Y6AW7YEpADgQr8w.png" /></figure><p><strong>Step 4: Create Snipe-IT Database</strong></p><p>Now that you’ve install all the packages that are required, continue below to start configuring the servers. First create a Snipe-IT database.</p><p>Run the commands below to logon to MariaDB. When prompted for a password, type the root password you created above.</p><pre>sudo mysql -u root -p</pre><p>Then create a database called snipeit</p><pre>CREATE DATABASE snipeit;</pre><p>Create a database user called snipeituser with new password</p><pre>CREATE USER ‘snipeituser’@’localhost’ IDENTIFIED BY ‘new_password_here’;</pre><p>Then grant the user full access to the snipeit database.</p><pre>GRANT ALL ON snipeit.* TO ‘snipeituser’@’localhost’ WITH GRANT OPTION;</pre><p>Finally, save your changes and exit.</p><pre><strong>FLUSH PRIVILEGES;<br>EXIT;</strong></pre><p><strong>Step 5: Download Snipe-IT Latest Release</strong></p><p>To get Snipe-IT latest release you may want to use Github repository. Install Composer, Curl and other dependencies to get started.</p><pre>sudo apt install curl git<br>curl -sS <a href="https://getcomposer.org/installer">https://getcomposer.org/installer</a> | sudo php — — install-dir=/usr/local/bin — filename=composer</pre><p>After installing curl and Composer above, change into the Apache2 root directory and download Snipe-IT packages from Github.</p><pre>cd /var/www/<br>sudo git clone <a href="https://github.com/snipe/snipe-it">https://github.com/snipe/snipe-it</a> snipeit<br>sudo cp /var/www/snipeit/.env.example /var/www/snipeit/.env</pre><p>Next, edit the .env file create above and make the highlighted changes to suit your environment.</p><pre>sudo nano /var/www/snipeit/.env</pre><p>Make the highlighted changes.</p><pre># — — — — — — — — — — — — — — — — — — — — — — <br># REQUIRED: BASIC APP SETTINGS<br># — — — — — — — — — — — — — — — — — — — — — — <br>APP_ENV=production<br>APP_DEBUG=false<br>APP_KEY=ChangeMe<br>APP_URL=example.com<br>APP_TIMEZONE=’UTC’<br>APP_LOCALE=en<br>MAX_RESULTS=500<br># — — — — — — — — — — — — — — — — — — — — — — <br># REQUIRED: DATABASE SETTINGS<br># — — — — — — — — — — — — — — — — — — — — — — <br>DB_CONNECTION=mysql<br>DB_HOST=127.0.0.1<br>DB_DATABASE=snipeit<br>DB_USERNAME=snipeituser<br>DB_PASSWORD=type_password_here<br>DB_PREFIX=null<br>DB_DUMP_PATH=’/usr/bin’<br>DB_CHARSET=utf8mb4<br>DB_COLLATION=utf8mb4_unicode_ci<br># — — — — — — — — — — — — — — — — — — — — — — <br># OPTIONAL: SSL DATABASE SETTINGS</pre><p>Save the file and exit.</p><p>Next, go back to Snipe-IT root directory and update all packages via Composer.</p><pre>cd /var/www/snipeit<br>sudo composer install — no-dev — prefer-source</pre><p>From Snipe-IT directory, run the commands below:</p><pre>sudo php artisan key:generate</pre><p>It should prompt and show you an application key.</p><pre>**************************************<br>* Application In Production! *<br>**************************************<br>Do you really wish to run this command? (yes/no) [no]:<br>&gt; yes<br>Application key [base64:6KnX/HGkNNcUGw2uucxBKT8+OwQ58yBp7vfa7sfwpDg=] set successfully.</pre><p>Since you just ran the web server as root, you should make sure any newly created files are owned by the www-data user and group.</p><p>To do that, run the commands below:</p><pre>sudo chown -R www-data:www-data /var/www/snipeit/</pre><pre>sudo chmod -R 755 /var/www/snipeit/</pre><p><strong>Step 6: Configure Apache2</strong></p><p>Finally, configure Apahce2 site configuration file for Snipe-IT. This file will control how users access Snipe-IT content. Run the commands below to create a new configuration file called snipeit.conf</p><pre>sudo nano /etc/apache2/sites-available/snipeit.conf</pre><p>Then copy and paste the content below into the file and save it. Replace the highlighted line with your own domain name and directory root location.</p><pre>&lt;VirtualHost *:80&gt;<br>ServerAdmin admin@example.com<br>DocumentRoot /var/www/snipeit/public<br>ServerName example.com<br>ServerAlias <a href="http://www.example.com/">www.example.com</a><br>&lt;Directory /var/www/snipeit/public/&gt;<br>Options +FollowSymlinks<br>AllowOverride All<br>Require all granted<br>&lt;/Directory&gt;<br>ErrorLog ${APACHE_LOG_DIR}/error.log<br>CustomLog ${APACHE_LOG_DIR}/access.log combined<br>&lt;/VirtualHost&gt;</pre><p>Save the file and exit.</p><p><strong>Step 7: Enable the Snipe-IT and Rewrite Module</strong></p><p>After configuring the VirtualHost above, enable it by running the commands below</p><pre>sudo a2ensite snipeit.conf<br>sudo a2enmod rewrite<br>sudo systemctl restart apache2.service</pre><p>Then open your browser and browse to the server domain name or hostname. This is often localhost but can be a host name or IP address. Your server admin or hosting company will have this information available.</p><blockquote><a href="http://example.com/">http://example.com/</a></blockquote><p>Continue with the installation wizard and validate that all requirements are met and continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*a1lZalu0qCirgTCDb_It0A.png" /></figure><p>Next, create a system admin account to manage the platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*bzBXVYvbIV5Xemi5Fq-KCA.png" /></figure><p>After installing, login and start begin managing your IT assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*qVg6gKvvceTOnlmue9V_yA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7681ccf47dcd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tea-networks/snipet-it-installation-7681ccf47dcd">Snipe-IT Installation</a> was originally published in <a href="https://medium.com/tea-networks">TEA Networks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes & CI/CD Pipeline]]></title>
            <link>https://medium.com/tea-networks/kubernetes-ci-cd-pipeline-c028aea17535?source=rss----6190d7305431---4</link>
            <guid isPermaLink="false">https://medium.com/p/c028aea17535</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Erdem Erdolu]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 08:25:11 GMT</pubDate>
            <atom:updated>2021-08-20T08:36:13.499Z</atom:updated>
            <content:encoded><![CDATA[<p>Today we will talk about Azure DevOps and Continuous Integration/Deployment processes.</p><p>You can use many features that come integrated with Azure DevOps. If you approach everything “as code” for deployment, you can use Azure DevOps yaml deployment instead of classic Azure DevOps as a solution. In this example, we will talk about the steps to make deployments to a kubernetes environment.</p><p>Firstly, for Kubernetes deployments, you can do version management during your migrations using a <strong>helm template</strong>, and then you can enable environment-independent migrations by modifying the values.yaml file in the helm template for each application and environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*baaYAZQXyclh6-oL" /></figure><p>The template we have developed can enable the creation of the general structure and the undo feature in a possible endpoint test error in the versions.The important part here is how you go about the test scenarios and what exactly you want to do.</p><blockquote>We will consider creating a Helm template, setting standards as a separate article.</blockquote><p>We are creating a deployment.yaml file in Azure DevOps.</p><p>After clicking the pipeline button in the menu, you need to select the relevant repository information after choosing to add a new pipeline on the page that opens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZsCABGbQhNvS0gS_" /></figure><p>If you have not created and uploaded the repository before, you can create a new pipeline by selecting the starter pipeline option. Since we have already created the pipeline yaml, we continue by choosing the second option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/0*8vl85IVAHZuKCzVJ" /></figure><p>We set our stages in the pipeline yaml we created.</p><p>First of all, we configured our applications, which were built according to their dockerfile, to go through the following steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*7-mUaQYj9UgK90qu" /></figure><p><strong>Stages;</strong></p><ol><li><em>Build</em></li><li><em>Deployment To Development</em></li><li><em>Endpoint Testing</em></li><li><em>Test to rollback for Latest version rollback in case of failure</em></li><li><em>If the endpoint test is successful, the production deployment continues.</em></li><li><em>Production Endpoint Test</em></li><li><em>Rollback in case of failure</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n5Y_bK_u6lFhmK91" /></figure><p>Our helm file, which we have artificially transmitted in the Build step, is changed in this step and you can make it ready for the environment. Multiple methods are possible here, and which one is right depends on your needs. For the operation here, we take the hidden variables in the library tab in the pipeline. In this example we have modified the shell.</p><figure><img alt="Our step where our manifest files are created;" src="https://cdn-images-1.medium.com/max/1024/0*IONbv2ocYl-m6gwu" /></figure><p>Our step where our manifest files are created;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1CnLMqUCAdAYzpDK" /></figure><p>Artifacts created during the build process are moved under the stages in the environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9HJ8SexY8ouKR7Vj" /></figure><p>Our deployment has been completed and we have moved on to the testing step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MPQsNRJoeBzfx0th" /></figure><p>We used Postman for this example, we ran our endpoint tests with newman on the command line. If our tests fail, the following step kicks in and automatically rolls back the last successful deployment for that environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/0*_giWnSznfIkJB7NV" /><figcaption><strong>After this step, the production stage does not go to the relevant step and an e-mail is sent to the person who triggered the pipeline automatically.</strong></figcaption></figure><p>So what do we do if it is successful;</p><p>In case of success, the relevant rollback scenario jumps to the production step because, it does not get caught in the control we have given inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xYmw1XDt8n_IPku7" /></figure><p>In this step, we check whether it comes from the branch we expect with a post-deployment check. You can set the branch in this step according to your in-house standards and control the production transitions.For this example we used the dev branch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/0*MEt3xZvaCo6tPoQB" /></figure><p>After passing the check here, we run the endpoint test again to check if everything is ok and see if our application works correctly in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0-jugO8iB6RMGSH5" /></figure><p>You can write additional different test scenarios here. Every written test scenario will secure you before the production transition.</p><blockquote>“Wirth’s law: <strong>Software gets slower faster than hardware gets faster</strong>. “</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c028aea17535" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tea-networks/kubernetes-ci-cd-pipeline-c028aea17535">Kubernetes &amp; CI/CD Pipeline</a> was originally published in <a href="https://medium.com/tea-networks">TEA Networks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>