Skip to content

Instantly share code, notes, and snippets.

@kshcherban
Created April 2, 2019 22:13
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kshcherban/d8e51a01955706fce99bc518dd0eff76 to your computer and use it in GitHub Desktop.
Save kshcherban/d8e51a01955706fce99bc518dd0eff76 to your computer and use it in GitHub Desktop.
jenkins casc example
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/
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