How to setup Jenkins using Docker Compose?
- New Ubuntu EC2 up and running with at least t2.small
- Port 8080 is opened in security firewall rule
That's it. You have setup Jenkins successfully using Docker Compose.
Hands on DevOps Coaching provided on AWS and Azure Cloud platforms. please contact at devops.coaching@gmail.com for more info. You can also directly reach out to Coach AK at +1(469) 733-5248
How to setup Jenkins using Docker Compose?
Let's say that you have created any resources in Azure Cloud by some other means(manually or using azure CLI) before you started using Terraform. You can import them under Terraform management instead of destroying and re-creating them from scratch. The terraform import command can be used to import existing resources.
This command currently can import only one resource at a time. This means you can't yet point Terraform import to an entire collection of resources such as azure resource group and import all the resources under that group.
To achieve this import exercise, we will do the following:
1. Create resource group, app service manually in Azure cloud (yes, by not using terraform)
2. Create terraform file and write code to create the resource.
3. Run terraform apply to see the error complaining resource exists
4. run terraform import
5. Verify in the state file that resource is imported into Terraform state.
6. Perform terraform destroy to clean up the imported resources
Watch the steps in YouTube channel:
Pre-requistes:
1. Install Terraform on your machine
2. Azure account setup
3. VS Code or any IDE
Let's create the resource manually in Azure Cloud first
Login to Azure portal - https://portal.azure.com/#home
Create App service manually in portal
Create terraform file
To import any resource, create a tf file first write a resource block for it in your configuration, establishing the name by which it will be known to Terraform:
WebApp is an App service provide by Azure Cloud for hosting your application. It supports .NET, Java, PHP, Python and NodeJS. It is a fully managed Platform as a Serice (PaaS) where developers can deploy mobile or web applications in Azure Cloud.
We are going to learn how to deploy Springboot Microservices Docker containers into Azure Kubernetes Cluster(AKS) using Azure pipelines. I have created a sample Springboot App setup in GitHub. Click here to access code base in GitHub.
1. AKS cluster needs to be up running. You can create AKS cluster using any of one of the below options:
Jenkins is an open source continuous integration/continuous delivery and deployment (CI/CD) automation software DevOps tool written in the J...