Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 835 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 835 Bytes

env-jenkins

  • Create SSH key pair (public/private)
  • Add id_rsa and id_rsa.pub in the same path to Dockerfile

Create Docker image on Dockerhub : In docker command and docker-compose.yml replace "repository" by your Dockerhub repository

  • docker build -t jenkins .
  • docker tag jenkins repository/jenkins:latest
  • docker push repository/jenkins:latest

Docker-compose

  • import docker-compose.yml file
  • exec command :

docker-compose up -d

  • For access to Jenkins interface run http://IP:8080 on your Web browser
  • view jenkins default password :

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

Azure cloud :

Connect to jenkins container :

docker exec -it jenkins bash

Install Azure cli :

curl -sL https://aka.ms/InstallAzureCLIDeb | bash

Connect to Azure account :

az login