From 522ec468f84e34ea687c7ffaaa4c1d12669e690d Mon Sep 17 00:00:00 2001 From: David Archer <16766645+davidaustinarcher@users.noreply.github.com> Date: Fri, 20 Jan 2023 16:36:49 +0000 Subject: [PATCH] Adding docker-compose / default environment --- .gitignore | 12 +++++++++++- docker-compose.yml | 9 +++++++++ variables.tf | 4 ++-- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index eaddc41..1db2403 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,15 @@ contrast_security.yaml .terraform.tfstate.lock.info node_modules .idea +.github package-lock.json -terraform.tfvars \ No newline at end of file +terraform.tfvars +/test-results/ +/playwright-report/ +/playwright/.cache/ +/test-results/ +/playwright-report/ +/playwright/.cache/ +/target +.DS_Store +run_local*.sh \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e897d64 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' + +services: + web: + image: spring-petclinic:1.5.1 + ports: + - '8080:8080' + volumes: + - ./contrast_security.yaml:/etc/contrast/java/contrast_security.yaml \ No newline at end of file diff --git a/variables.tf b/variables.tf index 602825f..5555bfc 100644 --- a/variables.tf +++ b/variables.tf @@ -20,7 +20,7 @@ variable "servername" { variable "environment" { description = "The Contrast environment for the app. Valid values: development, qa or production" - default = "development" + default = "" } variable "session_metadata" { @@ -30,7 +30,7 @@ variable "session_metadata" { variable "python_binary" { description = "Path to local Python binary" - default = "python" + default = "python3" } variable "apptags" {