{"id":16143193,"url":"https://github.com/johnbedeir/e-conomic","last_synced_at":"2025-10-15T23:18:48.529Z","repository":{"id":36998331,"uuid":"505189240","full_name":"johnbedeir/e-conomic","owner":"johnbedeir","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-24T11:27:18.000Z","size":690,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T16:09:15.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnbedeir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-19T18:28:28.000Z","updated_at":"2022-06-19T18:44:24.000Z","dependencies_parsed_at":"2022-06-29T07:05:08.663Z","dependency_job_id":null,"html_url":"https://github.com/johnbedeir/e-conomic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnbedeir/e-conomic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fe-conomic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fe-conomic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fe-conomic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fe-conomic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnbedeir","download_url":"https://codeload.github.com/johnbedeir/e-conomic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fe-conomic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279126697,"owners_count":26109424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T00:08:50.520Z","updated_at":"2025-10-15T23:18:48.499Z","avatar_url":"https://github.com/johnbedeir.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# e-conomic\n\n# DevOps Pipeline\n\n## Using Microservice Application (PHP | Apache | Mysql) | Monitoring using (Prometheus \u0026 Grafana)\n\n### 1. Dockerfile:\n\n`To build php-apache Image`\n\n### 2. docker-compose:\n\n`To split the application to microservices (php-apache | mysql | phpmyadmin)`\n\n### 3. ansible-playbooks:\n\n`To automate the build of the Dockerfile \u0026 the docker-compose.yml`\n\n### 4. Kubernetes:\n\n`Deploy Microservice application that contains PHP, Apache, MySql, and PhpMyAdmin`\n\n### 5. Terraform:\n\n`To automate the infrastruction of building Jenkins EC2`\n\n### 6. Jenkinsfiles:\n\n`To automate creating the cluster`\n`To automate deploying the application`\n`To automate deploying the monitoring`\n\n## Step 1: Build Jenkins EC2 Instance\n\n`Make sure you create tfvars file with the region, ami and public-ssh`\n\n```\n$ cd terraform\n$ terraform init\n$ terraforl apply -auto-approve\n```\n\n### Step 2: Connect to the EC2 using SSH\n\n---\n\n`You can use the downloaded keypair or just use the user and public-ip`\n\n---\n\n```\n$ ssh -i file.pem ubuntu@\u003cpublic-ip\u003e\nOR\n$ ssh ubuntu@\u003cpublic-ip\u003e\n```\n\n### Step 3: Create sh file\n\n---\n\n`Use the same script in the current directory install.sh`\n\n---\n\n```\n$ vim install.sh\n$ chmod +x install.sh\n$ ./install.sh\n```\n\n### Step 4: Make sure all has been installed successfully\n\n```\njava -version\njenkins --version\ndocker --version\nansible --version\ndocker-compose --version\neksctl version\nminikube version\nk9s version\naws --version\n```\n\n### Step 5: Browse to Jenkins\n\n---\n\n`Navigate to the browser and use the following to access jenkins then proceed with setting up jenkins`\n\n---\n\n```\n\u003cpublic-ip\u003e:8080\n```\n\n---\n\n### Step 6: Add Credentials for Dockerhub, Github and AWS\n\n`For AWS you will need to download the folloowing Plugin:` [CloudBees AWS Credentials](https://plugins.jenkins.io/aws-credentials/)\n\nPlugin:\n\n```\nManage Jenkins \u003e Manage Plugins \u003e Available \u003e CloudBees AWS Credentials\n```\n\nAdd Credentials:\n\n```\nManage Jenkins \u003e Manage Credentials \u003e global \u003e Add Credentials\n```\n\n---\n\n### Step 6: Create 1st Jenkins job\n\nThis job is to run the jenkinsfile in [Jenkins/Jenkins-EKS](https://github.com/johnbedeir/e-conomic/tree/dev/Jenkins/Jenkins-Deploy) which will create the cluster and the namespace\n\n---\n\n### Step 7: Create 2nd Jenkins job\n\nThis job is to run the jenkinsfile in [Jenkins/Jenkins-Deploy](https://github.com/johnbedeir/e-conomic/tree/dev/Jenkins/Jenkins-EKS) which will deploy monitoring and the microservice application\n\n---\n\n### Step 8: Create 3nd Jenkins job\n\nThis job is to run the jenkinsfile in [Jenkins/Jenkins-RM-EKS](https://github.com/johnbedeir/e-conomic/tree/dev/Jenkins/Jenkins-RM-EKS) which will delete the created cluster\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbedeir%2Fe-conomic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnbedeir%2Fe-conomic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbedeir%2Fe-conomic/lists"}