Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```