mirror of
/repos/dotTiddlywiki.git
synced 2025-12-30 07:31:33 +01:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
created: 20180615091542932
|
|
creator: user
|
|
modified: 20180615095456398
|
|
modifier: user
|
|
tags:
|
|
title: Adding worker to CI
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
1. create new Droplet on DO
|
|
|
|
https://cloud.digitalocean.com/droplets/new?i=c080b8&size=s-2vcpu-2gb®ion=ams3&options=private_networking,install_agent&imageId=35314372&type=snapshots
|
|
|
|
* snapshot ci-worker-base-image
|
|
* region AMS-3
|
|
* private networking, monitoring
|
|
* tags: ci, worker
|
|
|
|
make sure you can log into the `www-data` user
|
|
(you may need to add your key to .ssh/authorized_keys)
|
|
|
|
make a note of the droplets IP you need it later on
|
|
|
|
2. add node to CI
|
|
|
|
http://ci.bjoola.nl/computer/new
|
|
|
|
# copy from `worker-01`
|
|
# make a note of the java command line presented, you need the `NODE_NAME` and `NODE_SECRET` later on.
|
|
```
|
|
Run from agent command line:
|
|
|
|
java -jar agent.jar -jnlpUrl http://ci.bjoola.nl/computer/NODE_NAME/slave-agent.jnlp -secret NODE_SECRET
|
|
```
|
|
|
|
3. starting the node on the Droplet
|
|
|
|
```
|
|
git clone https://github.com/kantoor-f12/ci-operations.git ;
|
|
cd ci-operations ;
|
|
git checkout jenkins-slave ;
|
|
cd operations/docker/jenkins-slave
|
|
|
|
NODE_NAME=nameYouGaveItAbove NODE_SECRET=secretRecievedAbove SSH_HOST=IPofDroplet ./remoteSlave.sh
|
|
```
|
|
|
|
|