1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:16:44 +02:00

add jenkins/inbound-agent

This commit is contained in:
kev 2020-09-23 15:54:24 +08:00
parent a7876949a1
commit 92bb37687b
6 changed files with 108 additions and 17 deletions

View File

@ -317,7 +317,9 @@ A collection of delicious docker recipes.
- [ ] python
- [x] gogs/gogs :cn:
- [x] haproxy
- [x] jenkins/jenkins
- [x] jenkins
- [x] inbound-agent
- [x] jenkins
- [x] jmxtrans/jmxtrans
- [x] wurstmeister/kafka
- [x] mailgun/kafka-pixy

22
jenkins/agent/README.md Normal file
View 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
```

View 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

View File

@ -5,4 +5,15 @@ Rocket.Chat
[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/

View File

@ -1,17 +1,28 @@
rocketchat:
image: rocket.chat
ports:
- "3000:3000"
links:
- mongo:db
environment:
- ROOT_URL=http://chat.easypi.pro
restart: always
#
# https://github.com/RocketChat/Rocket.Chat/blob/develop/docker-compose.yml
#
mongo:
image: mongo
ports:
- "27017:27017"
volumes:
- ./data:/data/db
restart: always
version: "3.8"
services:
rocketchat:
image: rocketchat/rocket.chat:3.6.1
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
View 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;
}
}