Skip to main content

Posts

Showing posts from January, 2023

installing jenkins with terraform and ansible in DigitalOcean droplet

Jenkins is an open-source project written in Java that runs on Windows, macOS, and other Unix-like operating systems. The first point of attraction in Jenkins is that it is open source. Apart from that, it is community-supported and primarily deployed on-premises, but it can also run-on cloud servers. Its integrations with Docker and Kubernetes take advantage of containers to roll out even more frequent releases. In our project, we will use terraform to create our server on digital ocean and we will do the configuration and installation with Ansible. Prerequisites Terraform already install  Ansible already install A digital ocean account Deploying the virtual machine We will use a 4 Gib virtual machine host on digital ocean, since we are going to use terraform to connect to our account, we will need to create a token in digitalOcean by following the steps in this link  https://docs.digitalocean.com/reference/api/create-personal-access-token/  . Once you get your token, yo...

Create pipeline

That project will emphasize the different steps to build a basic python app pipeline. We will self-host every product that we are going to use in this tutorial, which will allow us to understand how the different part works and how to use them. To build that project we will follow these steps   create a GitLab server create a runner to run the pipeline create a basic Django app create a sonarqube server create a docker server to deploy our application  Gitlab   GitLab CI/CD is a tool built into GitLab for software development through the following:  • Continuous Integration (CI)  • Continuous Delivery (CD)  • Continuous Deployment (CD)  GitLab CI/CD is configured by a file called .gitlab-ci.yml, placed at the repository’s root. This file creates a pipeline, which runs for changes to the code in the repository. Pipelines consist of one or more stages that run in a particular order and can each contain one or more jobs that run in parallel. These...

python mongodb elk Apm project

Tiny python project building the application For that project, we will build an app that will allow us to create update and delete data in a mongodb database.   Prerequisite:  Docker                           python and pip     To install docker, you can follow the steps in these links :  https://docs.docker.com/engine/install/  We need docker in order to create the MongoDB container and many of the tools that we are going to use in this project are containers. We will use  many self-host tools                                           For the first part of our project, we need a MongoDB database and our python app. It is easier to build a MongoDB container. So on your machine just run the command  docker run   --name mongo-database -p 27017:27017...