Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleksandrtimoshenko/jenkins-server-deployment
Jenkins-server-deployment with docker swarm, some useful Jenkinsfiles
https://github.com/oleksandrtimoshenko/jenkins-server-deployment
docker jenkins swarm-cluster
Last synced: about 1 month ago
JSON representation
Jenkins-server-deployment with docker swarm, some useful Jenkinsfiles
- Host: GitHub
- URL: https://github.com/oleksandrtimoshenko/jenkins-server-deployment
- Owner: OleksandrTimoshenko
- Created: 2021-09-02T09:47:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-03T19:35:57.000Z (11 months ago)
- Last Synced: 2024-11-08T00:13:32.549Z (3 months ago)
- Topics: docker, jenkins, swarm-cluster
- Language: Groovy
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker setup for jenkins with workers
### Start master Jenkins
```
cp .env.example .env
invoke start
```
### Usefull invoke commands
```
invoke registry-login
invoke build-images
invoke push-images
invoke get-password
invoke destroy
invoke create-backup
invoke --list (see all invoke shortcuts)
```### Get credentials for first setup
```
docker exec -t cat /var/jenkins_home/secrets/initialAdminPassword
```### Set correct .env variables in your [Jenkins](http://127.0.0.1)
![image info](./pictures/setup-credentials.png)### Increase number of workers
```
docker service scale jenkins_jenkins-worker=5
```### Remove stack
```
docker stack rm jenkins
docker swarm leave -f
```### Upload volume to S3
```
python3 ./data.py -i -k -r -b -f data -m S3_TO_LOCAL
```### Download volume from S3
```
python3 ./data.py -i -k -r -b -f data -m LOCAL_TO_S3
```