Skip to content

Commit 6c77ee5

Browse files
authored
Merge pull request apache#20 from mesosphere/rename-to-agents
Rename to agents
2 parents 4e493c8 + cec3f8d commit 6c77ee5

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ Running the `pipeline` command will:
99

1010
2. Sets up a Jenkins "workflow" pipeline job and the necessary credentials to demonstrate a basic continuous delivery pipeline. Jenkins will:
1111

12-
+ Spin up a new Jenkins slave using the Mesos plugin. This slave runs inside a Docker container on one of our DC/OS agents.
12+
+ Spin up a new Jenkins agent using the Mesos plugin. This agent runs inside a Docker container on one of our DC/OS agents.
1313
+ Clone the git repository
1414
+ Build a Docker container based off the [Jekyll Docker image](https://hub.docker.com/r/jekyll/jekyll/) that includes the content stored in [/site](/site) and push it to DockerHub.
1515
+ Run the newly created container and a [Linkchecker container](https://github.com/mesosphere/docker-containers/blob/master/utils/linkchecker/Dockerfile) that runs a basic integration test against the container, checking that the webserver comes up correctly and that all links being served are valid (i.e. no 404s).
1616
+ Manually trigger a Marathon deployment of the newly created container to the DC/OS base Marathon instance. If the application already exists, Marathon will simply upgrade it.
17-
+ Make the application available on a public slave at port 80 using Marathon-lb.
17+
+ Make the application available on a public agent at port 80 using Marathon-lb.
1818

19-
When run with the `dynamic-slaves` command, it will:
19+
When run with the `dynamic-agents` command, it will:
2020

2121
3. Creates 50 build jobs that take a random amount of time between 1 and 2 minutes. These jobs will randomly fail.
22-
+ The Mesos plugin will spin up build slaves on demand for these jobs, using as much capacity as your cluster has available.
22+
+ The Mesos plugin will spin up build agents on demand for these jobs, using as much capacity as your cluster has available.
2323
+ When these jobs are finished, the Jenkins tasks will terminate and the resources will be relinquished back to other users of your cluster.
2424

2525
When run with the `uninstall` command, it will:
@@ -69,7 +69,7 @@ When run with the `uninstall` command, it will:
6969
7070
NOTE: You must use the domain name for your cluster; the IP address will fail.
7171
72-
2. You can now run either the pipeline demo or the dynamic slaves demo. To run the pipeline demo, you will also need to specify the ELB address (`Public Slave`):
72+
2. You can now run either the pipeline demo or the dynamic agents demo. To run the pipeline demo, you will also need to specify the ELB address (`Public Agent`):
7373
7474
```
7575
python bin/demo.py pipeline --password=$PASSWORD http://my.elb/ http://my.dcos.cluster/
@@ -85,13 +85,13 @@ When run with the `uninstall` command, it will:
8585
8686
![deployed-app](/img/deployed-jekyll-app.png)
8787
88-
7. Now let's run the dynamic slaves demo. It will create 50 jobs that will randomly fail.
88+
7. Now let's run the dynamic agents demo. It will create 50 jobs that will randomly fail.
8989
9090
```
91-
python bin/demo.py dynamic-slaves http://my.dcos.cluster/
91+
python bin/demo.py dynamic-agents http://my.dcos.cluster/
9292
```
9393
94-
8. Navigate back to the Jenkins and/or DC/OS UI to show build slaves spinning up manually.
94+
8. Navigate back to the Jenkins and/or DC/OS UI to show build agents spinning up manually.
9595
9696
### Uninstalling
9797
@@ -144,7 +144,7 @@ By default, this script assumes you will be pushing to the [mesosphere/cd-demo-a
144144
145145
### Demonstrating Multi-tenancy
146146
147-
To demonstrate how you can install multiple Jenkins instances side by side on DC/OS, simply give your Jenkins instances unique names using the `--name` argument and run the demo as follows. Note that if you only have one public slave, you will not be able to deploy applications from multiple pipelines (each application requires port 80).
147+
To demonstrate how you can install multiple Jenkins instances side by side on DC/OS, simply give your Jenkins instances unique names using the `--name` argument and run the demo as follows. Note that if you only have one public agent, you will not be able to deploy applications from multiple pipelines (each application requires port 80).
148148
149149
1. Create one instance:
150150

bin/demo.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Usage:
55
demo.py install [options] <dcos_url>
66
demo.py pipeline [options] <elb_url> <dcos_url>
7-
demo.py dynamic-slaves [options] <dcos_url>
7+
demo.py dynamic-agents [options] <dcos_url>
88
demo.py cleanup [options] <dcos_url>
99
demo.py uninstall [options] <dcos_url>
1010
@@ -27,7 +27,7 @@
2727
The continuous delivery demo will create a build pipeline that will deploy a
2828
Docker container to the DC/OS Marathon.
2929
30-
The dynamic slaves demo will create 50 (by default) "freestyle" Jenkins jobs.
30+
The dynamic agents demo will create 50 (by default) "freestyle" Jenkins jobs.
3131
Each of these jobs will appear as a separate Jenkins build, and will randomly
3232
pass or fail. The duration of each job will be between 120 and 240 seconds.
3333
"""
@@ -284,7 +284,7 @@ def demo_pipeline(jenkins_url, elb_url, name, branch, org, username, password):
284284
log("demo pipeline (workflow) created")
285285
log("once deployed, your application should be available at:\n\t{}".format(elb_url))
286286

287-
def demo_dynamic_slaves(jenkins_url, builds):
287+
def demo_dynamic_agents(jenkins_url, builds):
288288
log("creating {} freestyle Jenkins jobs".format(builds))
289289
random.seed()
290290
with open("jobs/demo-job/config.xml") as demo_job:
@@ -304,7 +304,7 @@ def cleanup_pipeline_jobs(jenkins_url):
304304
delete_credentials(jenkins_url, "dcos-token")
305305
delete_job(jenkins_url, "pipeline-demo")
306306

307-
def cleanup_dynamic_slaves_jobs(jenkins_url, builds):
307+
def cleanup_dynamic_agents_jobs(jenkins_url, builds):
308308
log("cleaning up {} builds".format(builds))
309309
for i in range(builds):
310310
job_name = "demo-job-{0:02d}".format(i)
@@ -316,7 +316,7 @@ def cleanup_deployed_app():
316316
def cleanup(jenkins_url, builds):
317317
cleanup_pipeline_jobs(jenkins_url)
318318
cleanup_deployed_app()
319-
cleanup_dynamic_slaves_jobs(jenkins_url, builds)
319+
cleanup_dynamic_agents_jobs(jenkins_url, builds)
320320

321321
def uninstall(jenkins_name):
322322
log("uninstalling Jenkins with name '{}'".format(jenkins_name))
@@ -350,8 +350,8 @@ def uninstall(jenkins_name):
350350
install_marathon_lb(elb_url)
351351
update_and_push_marathon_json(elb_url, branch)
352352
demo_pipeline(jenkins_url, elb_url, jenkins_name, branch, org, username, password)
353-
elif arguments['dynamic-slaves']:
354-
demo_dynamic_slaves(jenkins_url, builds)
353+
elif arguments['dynamic-agents']:
354+
demo_dynamic_agents(jenkins_url, builds)
355355
elif arguments['cleanup']:
356356
cleanup(jenkins_url, builds)
357357
elif arguments['uninstall']:

0 commit comments

Comments
 (0)