Skip to content

Commit

Permalink
Merge pull request #28 from warlordofmars/docker
Browse files Browse the repository at this point in the history
Docker Builder
  • Loading branch information
warlordofmars committed Mar 16, 2019
2 parents 4ae67b9 + 59640e1 commit 257c057
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.gradle
**/build
.project
.settings/
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM gradle:jdk10

USER root

RUN apt-get install -y curl \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs aspell awscli wkhtmltopdf python-pip ruby \
&& curl -L https://www.npmjs.com/install.sh | sh \
&& npm install -g hackmyresume \
&& pip install cfn-lint \
&& gem install cfn-nag

USER gradle
WORKDIR /home/gradle/src
19 changes: 18 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ simplePipelineWithInput(
'Deployed HTML + Print Preview Look Ok?',

// artifacts that should be archived
'resume/build/resume*'
'resume/build/resume*',

// docker builder args

// un-privileged user
'-u gradle ' + \

// saved credentials for google drive publish
'-v $HOME/.credentials/google-drive-uploader:/home/gradle/.credentials/google-drive-uploader ' + \

// local icloud dir for icloud drive publish
'-v "$HOME/Library/Mobile Documents/com~apple~CloudDocs:/home/gradle/Library/Mobile Documents/com~apple~CloudDocs" ' + \

// local AWS config and credentials
'-v $HOME/.aws:/home/gradle/.aws ' + \

// local gradle.properties
'-v $HOME/.gradle/gradle.properties:/home/gradle/.gradle/gradle.properties'

)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ext {
wildcardCertARN = "arn:aws:acm:us-east-1:247631471946:certificate/471106fc-e3dd-4e0b-a20f-010a6e326283"
// list of strings to check for in postdeploy check of deployed html resume
ensureStrings = ['John A. Carter', '[email protected]', '(770) 598-7096']
ensureStrings = ['John A. Carter', '[email protected]', '(617) 334-5110']
// set stack name different if not promote
stackName = isPromote ? 'ResumeWebsite' : 'ResumeWebsiteTest'
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
classpath 'com.github.warlordofmars:gradle-release-helper:release-0.1.3'
classpath 'com.github.warlordofmars:gradle-slack-liveupdate:release-0.3.8'
classpath 'com.github.warlordofmars:gradle-cloudformation-helper:release-0.1.6'
classpath 'com.github.warlordofmars:gradle-json-resume:release-0.1.9'
classpath 'com.github.warlordofmars:gradle-json-resume:release-0.1.11'
}
}

Expand Down

0 comments on commit 257c057

Please sign in to comment.