mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:49 +02:00
add jenkins/inbound-agent
This commit is contained in:
parent
a7876949a1
commit
92bb37687b
@ -317,7 +317,9 @@ A collection of delicious docker recipes.
|
|||||||
- [ ] python
|
- [ ] python
|
||||||
- [x] gogs/gogs :cn:
|
- [x] gogs/gogs :cn:
|
||||||
- [x] haproxy
|
- [x] haproxy
|
||||||
- [x] jenkins/jenkins
|
- [x] jenkins
|
||||||
|
- [x] inbound-agent
|
||||||
|
- [x] jenkins
|
||||||
- [x] jmxtrans/jmxtrans
|
- [x] jmxtrans/jmxtrans
|
||||||
- [x] wurstmeister/kafka
|
- [x] wurstmeister/kafka
|
||||||
- [x] mailgun/kafka-pixy
|
- [x] mailgun/kafka-pixy
|
||||||
|
22
jenkins/agent/README.md
Normal file
22
jenkins/agent/README.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
jenkins/inbound-agent
|
||||||
|
=====================
|
||||||
|
|
||||||
|
## how to
|
||||||
|
|
||||||
|
- Enable TCP port 50000 for inbound agents: http://jenkins:8080/configureSecurity/
|
||||||
|
- Create New Node: http://jenkins:8080/computer/
|
||||||
|
- Get Jenkins Secret: http://jenkins:8080/script/
|
||||||
|
|
||||||
|
```groovy
|
||||||
|
for (aSlave in hudson.model.Hudson.instance.slaves){
|
||||||
|
println aSlave.name + "," + aSlave.getComputer().getJnlpMac()
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## up and running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ mkdir -p data
|
||||||
|
$ chown 1000:1000 data
|
||||||
|
$ docker-compose up -d
|
||||||
|
```
|
16
jenkins/agent/docker-compose.yml
Normal file
16
jenkins/agent/docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
inbound-agent:
|
||||||
|
image: jenkins/inbound-agent
|
||||||
|
init: true
|
||||||
|
container_name: docker-inbound-agent
|
||||||
|
volumes:
|
||||||
|
- ./data:/home/jenkins
|
||||||
|
environment:
|
||||||
|
- JENKINS_URL=http://jenkins.easypi.pro:8080
|
||||||
|
- JENKINS_SECRET=***************************
|
||||||
|
- JENKINS_AGENT_NAME=docker-inbound-agent
|
||||||
|
- JENKINS_AGENT_WORKDIR=/home/jenkins/agent
|
||||||
|
restart: unless-stopped
|
@ -5,4 +5,15 @@ Rocket.Chat
|
|||||||
|
|
||||||
[Rocket.Chat][1] is a Web Chat Server, developed in JavaScript, using the Meteor fullstack framework.
|
[Rocket.Chat][1] is a Web Chat Server, developed in JavaScript, using the Meteor fullstack framework.
|
||||||
|
|
||||||
|
## up and running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose up -d mongo
|
||||||
|
$ docker-compose exec mongo mongo
|
||||||
|
>>> rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]})
|
||||||
|
>>> exit
|
||||||
|
$ docker-compose up -d rocketchat
|
||||||
|
$ curl http://127.0.0.1:3000
|
||||||
|
```
|
||||||
|
|
||||||
[1]: https://rocket.chat/
|
[1]: https://rocket.chat/
|
||||||
|
@ -1,17 +1,28 @@
|
|||||||
rocketchat:
|
#
|
||||||
image: rocket.chat
|
# https://github.com/RocketChat/Rocket.Chat/blob/develop/docker-compose.yml
|
||||||
ports:
|
#
|
||||||
- "3000:3000"
|
|
||||||
links:
|
|
||||||
- mongo:db
|
|
||||||
environment:
|
|
||||||
- ROOT_URL=http://chat.easypi.pro
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
mongo:
|
version: "3.8"
|
||||||
image: mongo
|
|
||||||
ports:
|
services:
|
||||||
- "27017:27017"
|
|
||||||
volumes:
|
rocketchat:
|
||||||
- ./data:/data/db
|
image: rocketchat/rocket.chat:3.6.1
|
||||||
restart: always
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
environment:
|
||||||
|
- ROOT_URL=https://chat.easypi.pro
|
||||||
|
- MONGO_URL=mongodb://mongo:27017/rocketchat
|
||||||
|
- MONGO_OPLOG_URL=mongodb://mongo:27017/local
|
||||||
|
depends_on:
|
||||||
|
- mongo
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
mongo:
|
||||||
|
image: mongo:4
|
||||||
|
command: mongod --oplogSize 128 --replSet rs0
|
||||||
|
ports:
|
||||||
|
- "27017:27017"
|
||||||
|
volumes:
|
||||||
|
- ./data/db:/data/db
|
||||||
|
restart: unless-stopped
|
||||||
|
29
rocketchat/nginx.conf
Normal file
29
rocketchat/nginx.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name chat.easypi.pro;
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443;
|
||||||
|
server_name chat.easypi.pro;
|
||||||
|
ssl_certificate easypi.pro.crt;
|
||||||
|
ssl_certificate_key easypi.pro.key;
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||||
|
ssl_session_timeout 1d;
|
||||||
|
ssl_session_cache shared:SSL:50m;
|
||||||
|
client_max_body_size 200M;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:3000;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Nginx-Proxy true;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user