Skip to content

Commit

Permalink
Files for building Cypress with Packer (#479)
Browse files Browse the repository at this point in the history
* Updated gitignore to exclude .ova files as well

* Added AWS env file to gitignore

* Added files to build VMs with packer

* Updated alpha5 to alpha6 in packer build file

* Bumped Cypress version in cypress.yml
  • Loading branch information
Michael O'Keefe authored and ssayer committed May 19, 2016
1 parent 3d5d2e3 commit 3f3db6d
Show file tree
Hide file tree
Showing 6 changed files with 1,076 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -29,9 +29,13 @@ Thumbs.db
# Cache objects
contrib/packer_cache/

# AWS Environment file
contrib/aws_env.json

# For built boxes
contrib/output*
contrib/*.tgz
contrib/*.ova

# test executions
public/data*
Expand Down
2 changes: 1 addition & 1 deletion config/cypress.yml
Expand Up @@ -3,7 +3,7 @@ effective_date:
month: 12
day: 31

version: 3.0.0alpha5
version: 3.0.0alpha6

default_bundle: 2.9.9

Expand Down
45 changes: 45 additions & 0 deletions contrib/README.md
@@ -0,0 +1,45 @@
Cypress
=========

Cypress is the rigorous and repeatable testing tool of Electronic Health Records (EHRs) and EHR modules in calculating Meaningful Use (MU) Stage 2 Clinical Quality Measures (CQMs). The Cypress tool is open source and freely available for use or adoption by the health IT community including EHR vendors and testing labs. Cypress serves as the official testing tool for the 2014 EHR Certification program supported by the Office of the National Coordinator for Health IT (ONC).

Quality Measures
----------------

This web application leverages the [Quality Measure Engine](https://github.com/pophealth/quality-measure-engine) library to calculate quality measures. An implementation of the [Stage 1 MU CQM needed to meet Stage 1 Meaningful Use requirements](http://www.cms.gov/QualityMeasures/03_ElectronicSpecifications.asp) is available in the [Measures Project](https://github.com/pophealth/measures).

License
-------

Copyright 2016 The MITRE Corporation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.



QRDA Schematron Rules License
-----------------------------

Copyright 2012 Lantana Consulting Group , LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
109 changes: 109 additions & 0 deletions contrib/cypress.json
@@ -0,0 +1,109 @@
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"default_user": "ubuntu",
"default_pwd": "CypressPwd",
"vpc_id": "",
"subnet_id": ""
},
"builders": [

{
"name": "cypress.v3.0.0.amazonaws",
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami": "ami-5aa69030",
"instance_type": "t2.small",
"vpc_id": "{{user `vpc_id`}}",
"subnet_id": "{{user `subnet_id`}}",
"ami_virtualization_type": "hvm",
"ssh_username": "ubuntu",
"ami_name": "cypress_3.0.0alpha6",
"ami_block_device_mappings": [ {
"device_name": "/dev/sda1",
"volume_size": 20,
"delete_on_termination": "true"
}],
"launch_block_device_mappings": [ {
"device_name": "/dev/sda1",
"volume_size": 20,
"delete_on_termination": "true"
}]
},

{
"name": "cypress.v3.0.0.vmware",
"vm_name": "cypressv300alpha6",
"type": "vmware-iso",
"guest_os_type": "ubuntu-64",
"iso_urls": [
"http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
"http://nl.releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso"
],
"iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
"iso_checksum_type": "md5",
"ssh_username": "{{user `default_user`}}",
"ssh_password": "{{user `default_pwd`}}",
"http_directory": "./install_files",
"headless": true,
"boot_wait": "10s",
"format": "ova",
"ssh_timeout": "20m",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz ",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{.Name}} ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],
"shutdown_command": "echo '{{user `default_pwd`}}' | sudo -S -E shutdown -P now",
"vmdk_name": "disk",
"disk_type_id": "0",
"vmx_data": {
"MemTrimRate": "0",
"sched.mem.pshare.enable": "FALSE",
"mainMem.useNamedFile": "FALSE",
"prefvmx.minVmMemPct": "100",
"memsize": "1024",
"numvcpus": "2",
"cpuid.coresPerSocket": "1"
},
"disk_size": "20000"
}

],

"provisioners": [{
"type": "shell",
"execute_command": "echo '{{user `default_pwd`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"inline": [
"sleep 30",
"apt-get update",
"apt-get -y upgrade",
"shutdown -r now",
"sleep 60"
]
},{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; echo '{{user `default_pwd`}}' | {{ .Vars }} sudo -E -S /bin/bash '{{ .Path }}'",
"script": "./install_cypress.sh",
"environment_vars": [
"headless=true"
]
}],

"post-processors": [
{
"type": "ovftool",
"only": ["cypress.v3.0.0.vmware"],
"format": "ova"
}
]
}

0 comments on commit 3f3db6d

Please sign in to comment.