https://github.com/siddharth1207/demo
Docker Jenkins pipeline Docker project - Docker desktop windows spring boot maven
https://github.com/siddharth1207/demo
docker dockerdesktop jenkins-pipeline maven spring-boot
Last synced: 5 months ago
JSON representation
Docker Jenkins pipeline Docker project - Docker desktop windows spring boot maven
- Host: GitHub
- URL: https://github.com/siddharth1207/demo
- Owner: Siddharth1207
- Created: 2023-06-30T14:26:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-01T18:01:41.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T08:35:39.628Z (over 1 year ago)
- Topics: docker, dockerdesktop, jenkins-pipeline, maven, spring-boot
- Language: Java
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# demo# Run the docker file saved in current folder
# it creates an imange in the docker
# docker desktop allow tcp port
# jenkins remove password from config .xml
Helpfull command
If the nano command is not available in the Jenkins container, you can try using the vi editor instead. Here's an alternative approach:
Find the name or ID of the Jenkins container by running the following command:
Copy code
1. docker ps
Use the docker exec command to start a shell session in the Jenkins container:
bash
Copy code
2. docker exec -it bash
Once inside the container, navigate to the Jenkins home directory:
bash
Copy code
3. cd /var/jenkins_home
Edit the config.xml file using the vi editor:
arduino
Copy code
4. vi config.xml (change required in config.xml to run jenkins without password)
false
change it back to true after creating the admin user for jenkins
Press i to enter insert mode and make the necessary changes to the file.
Press Esc to exit insert mode, and then type :wq to save the changes and exit the editor.
Restart the Jenkins container:
php
Copy code
6. docker restart
NOTE : Installation on docker desktop machine :
docker exec -u root -it apt-get update
docker exec -u root -it apt-get install -y vim
NOTE : Check location of the file
docker run --name jenkins-lts -d -p 8080:8080 -p 50000:50000 --group-add 999 -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST=tcp://host.docker.internal:2375 my-jenkins