Created
April 2, 2019 22:13
-
-
Save kshcherban/d8e51a01955706fce99bc518dd0eff76 to your computer and use it in GitHub Desktop.
jenkins casc example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkins/jenkins:2.150.3 | |
# Install plugins | |
RUN /usr/local/bin/install-plugins.sh \ | |
git:3.9.1 \ | |
git-client:2.7.3 \ | |
amazon-ecs:1.19 \ | |
job-dsl:1.69 \ | |
configuration-as-code:1.7 \ | |
configuration-as-code-support:1.7 \ | |
; | |
COPY jenkins.yaml /var/jenkins_home/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jenkins: | |
securityRealm: | |
local: | |
users: | |
- id: "admin" | |
password: "admin" | |
clouds: | |
- ecs: | |
cluster: "arn:aws:ecs:us-west-2:ACCOUNT:cluster/ci_ephemeral" | |
credentialsId: "" | |
jenkinsUrl: "http://ci.com/" | |
name: "slave" | |
regionName: "us-west-2" | |
templates: | |
- templateName: "ci_slave" | |
cpu: 512 | |
image: "registry/ci-slave:latest" | |
label: "slave" | |
launchType: "EC2" | |
memory: 3096 | |
networkMode: "default" | |
privileged: false | |
remoteFSRoot: "/home/jenkins" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment