Skip to content

Commit

Permalink
Merge pull request #800 from flexion/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
sadlerw authored Feb 7, 2019
2 parents f5ec36e + 4cb3c5a commit 33b6759
Show file tree
Hide file tree
Showing 332 changed files with 14,034 additions and 17,833 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ web-client/cypress/screenshots
web-client/node_modules
web-client/reports
web-client/tests_output/
gen.conf
zap-report.html
4 changes: 2 additions & 2 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ RUN apk --no-cache update && \
pip --no-cache-dir install awscli==${AWS_CLI_VERSION} && \
rm -rf /var/cache/apk/*

RUN wget -q -O terraform_0.11.8_linux_amd64.zip https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip && \
unzip -o terraform_0.11.8_linux_amd64.zip terraform
RUN wget -q -O terraform_0.11.11_linux_amd64.zip https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && \
unzip -o terraform_0.11.11_linux_amd64.zip terraform

RUN cp terraform /usr/local/bin/

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ RUN apk --no-cache update && \
pip --no-cache-dir install awscli==${AWS_CLI_VERSION} && \
rm -rf /var/cache/apk/*

RUN wget -q -O terraform_0.11.8_linux_amd64.zip https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip && \
unzip -o terraform_0.11.8_linux_amd64.zip terraform
RUN wget -q -O terraform_0.11.11_linux_amd64.zip https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && \
unzip -o terraform_0.11.11_linux_amd64.zip terraform

RUN cp terraform /usr/local/bin/

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.web-client
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ RUN apt-get install -y awscli

RUN apt-get install -y jq

RUN wget -q -O terraform_0.11.8_linux_amd64.zip https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip && \
unzip -o terraform_0.11.8_linux_amd64.zip terraform
RUN wget -q -O terraform_0.11.11_linux_amd64.zip https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && \
unzip -o terraform_0.11.11_linux_amd64.zip terraform

RUN cp terraform /usr/local/bin/

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ An as-yet-unnamed project by the [U.S. Tax Court](https://ustaxcourt.gov/), crea
<a href="docs/images/screenshot_petitioner.png"><img src="docs/images/screenshot_petitioner.png" width="32%" style="float: left;" /></a>
<a href="docs/images/screenshot_docket_record.png"><img src="docs/images/screenshot_docket_record.png" width="32%" style="float: left;" /></a>

The main fork of this project in which most development is occurring is located at [flexion ef-cms](https://github.com/flexion/ef-cms).
[Zenhub](https://www.zenhub.com/) can be used to view the project board to see the github issues.

Artifacts for on-going development such as designs, research data, user workflows etc. are located in the [wiki](https://github.com/flexion/ef-cms/wiki).
## Technical overview

This is a React-based Javascript application. It’s housed in a [monorepo](https://en.wikipedia.org/wiki/Monorepo) that contains the front end (`web-client/`) and the back end (`efcms-service/`), with a third project housing resources that are shared between the front and back ends (`shared/`). It’s architected for Amazon Web Services, with a strong reliance on [Lambda](https://aws.amazon.com/lambda/), scripted with Terraform. The project is heavily containerized, using Docker, and can be run locally, despite the serverless architecture. All CI/CD processes are found in `management/`. Deployment is done via a Jenkins server, and [that process is documented in `SETUP.md`](SETUP.md).
Expand Down
2 changes: 2 additions & 0 deletions docker-zap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-weekly zap-api-scan.py -t https://efcms-dev.ustc-case-mgmt.flexion.us/v1/swagger.json -f openapi -d -g gen.conf -r zap-report.html -z "-configfile /zap/wrk/options.prop"
23 changes: 12 additions & 11 deletions efcms-service/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
agent any

options {
buildDiscarder(logRotator(daysToKeepStr: '3', artifactDaysToKeepStr: '3'))
buildDiscarder(logRotator(daysToKeepStr: '3', artifactDaysToKeepStr: '3'))
disableConcurrentBuilds()
}

Expand Down Expand Up @@ -45,15 +45,16 @@ pipeline {
}
}
}
stage('Audit') {
steps {
script {
dir('efcms-service') {
sh "./docker-audit.sh"
}
}
}
}
// temp remove until dynamodb-local can be replaced
//stage('Audit') {
// steps {
// script {
// dir('efcms-service') {
// sh "./docker-audit.sh"
// }
// }
// }
//}
stage('Lint') {
steps {
script {
Expand All @@ -75,7 +76,7 @@ pipeline {
post {
success {
dir('efcms-service') {
publishHTML allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'coverage', reportFiles: 'index.html', reportName: 'Code Coverage Report', reportTitles: ''
publishHTML allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'coverage/lcov-report', reportFiles: 'index.html', reportName: 'Code Coverage Report', reportTitles: ''
}
}
}
Expand Down
Loading

0 comments on commit 33b6759

Please sign in to comment.