https://github.com/dbgjerez/jenkins-ci
https://github.com/dbgjerez/jenkins-ci
continuous-integration docker docker-compose docker-swarm jenkins jenkins-pipeline plugins secrets
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dbgjerez/jenkins-ci
- Owner: dbgjerez
- License: mit
- Created: 2018-01-07T12:14:21.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2018-02-01T21:36:40.000Z (over 7 years ago)
- Last Synced: 2025-02-12T19:35:54.194Z (4 months ago)
- Topics: continuous-integration, docker, docker-compose, docker-swarm, jenkins, jenkins-pipeline, plugins, secrets
- Language: Groovy
- Size: 20.5 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenkins Continous Integration
# Getting Started
* Init Docker Swarm
```bash
docker swarm init
```
* Create secretsYou should create your credentials as a Docker secret. These can be created from a file, command line, etc. In this example we use admin/admin but you should use different stronger credentials in production installation.
```bash
echo "admin" | docker secret create jenkins-user -
echo "admin" | docker secret create jenkins-pass -
```* Starts services
Now, it are going to start the different services defined in our swarm's file:
```bash
docker stack deploy -c docker-swarm.yml ci
```* Stops services
We can stop all our services under ci's stack with the following command:
```
docker stack rm ci
```* Finish Docker Swarm
When we like delete the Docker's Swarm service we have to write the next sentence:
```
docker swarm leave -f
```