From a04a9200a09430c55aa17824c2190a23e2480d7c Mon Sep 17 00:00:00 2001 From: sigal Date: Mon, 13 May 2019 15:10:35 +0300 Subject: [PATCH] Add enterprise testing containers and configurations This adds enterprise containers and enterprise tests and updates configurations and versioning --- Dockerfile.nginx | 2 +- Dockerfile.test | 2 +- Jenkinsfile | 4 + docker-compose.yml | 42 ++++++-- test-cert/conjur-cucumber.der | Bin 906 -> 0 bytes test.sh | 176 +++++++++++++++++++++++++++------- 6 files changed, 178 insertions(+), 48 deletions(-) delete mode 100644 test-cert/conjur-cucumber.der diff --git a/Dockerfile.nginx b/Dockerfile.nginx index cf4289c..8d43a31 100644 --- a/Dockerfile.nginx +++ b/Dockerfile.nginx @@ -1,4 +1,4 @@ -FROM nginx:1.13.3 +FROM nginx:1.13.6 MAINTAINER Conjur Inc diff --git a/Dockerfile.test b/Dockerfile.test index 00ffb1b..515b0eb 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -1,4 +1,4 @@ -FROM java:8 +FROM openjdk:8 MAINTAINER Conjur Inc diff --git a/Jenkinsfile b/Jenkinsfile index 74b1cc1..0a008db 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,10 @@ pipeline { buildDiscarder(logRotator(numToKeepStr: '30')) } + triggers { + cron(getDailyCronString()) + } + stages { stage('Create and archive the Maven package') { steps { diff --git a/docker-compose.yml b/docker-compose.yml index 8eff52c..4b07f65 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: image: postgres:9.3 conjur: - image: cyberark/conjur:0.1.0-stable + image: cyberark/conjur:latest command: server -a cucumber environment: PORT: 3000 @@ -15,33 +15,40 @@ services: depends_on: - postgres + # Create EE container + cuke-master: + image: registry2.itci.conjur.net/conjur-appliance-cuke-master:5.0-stable + ports: + - "443:443" + - "5432:5432" + - "1999:1999" + security_opt: + - "seccomp:unconfined" + conjur-proxy-nginx: build: context: . dockerfile: Dockerfile.nginx entrypoint: nginx-debug -g 'daemon off;' environment: - TERM: xterm + TERM: xterm ports: - - "8080:80" - - "8443:443" + - "8080:8080" + - "8443:8443" depends_on: - conjur - client - client: - image: conjurinc/cli5 + image: cyberark/conjur-cli:5 volumes: - ./test-cert:/test-cert entrypoint: sleep command: infinity environment: - CONJUR_APPLIANCE_URL: http://conjur:3000 + CONJUR_APPLIANCE_URL: CONJUR_ACCOUNT: cucumber CONJUR_AUTHN_LOGIN: admin - depends_on: - - conjur test: build: @@ -53,6 +60,21 @@ services: CONJUR_APPLIANCE_URL: http://conjur:3000 CONJUR_ACCOUNT: cucumber + # Spin up container for EE testing + test-dap: + build: + context: . + dockerfile: Dockerfile.test + volumes: + - ./target:/conjurinc/api-java/target + - ./test-cert:/test-cert + entrypoint: sleep + command: infinity + environment: + CONJUR_APPLIANCE_URL: https://cuke-master + CONJUR_ACCOUNT: cucumber + depends_on: + - cuke-master test-https: build: @@ -67,4 +89,4 @@ services: CONJUR_APPLIANCE_URL: https://conjur-proxy-nginx CONJUR_ACCOUNT: cucumber depends_on: - - conjur-proxy-nginx \ No newline at end of file + - conjur-proxy-nginx diff --git a/test-cert/conjur-cucumber.der b/test-cert/conjur-cucumber.der deleted file mode 100644 index b5ca0c16947605cb92efae011ba78b2890ac09e4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 906 zcmXqLVs0~NV#-^<%*4pV#L4j8YyIT!f20=}@Un4gwRyCC=VfH%W@RvlFyuDiWMd9x zVH0NZ^fBZI$^$tZJZzrDMTx07hCBvbAOUtB<`ADSLtX=J5RZ$8#XqmI!cf{k62xWZ z5lYU_%PK9>Ehx&bsMO6%&&;bZkQ3)MG&is?HZ(LdGBGfT0&*>oxHPo6iBSpJn~bas z%uS5^39fg=4bS$@mU#VLCx7+oNzGsV_dZQqqA+j2iHzs( zMcHwi)D}9m+crEa-_y^*IdfLG;@zvq{yt$o<5<4hRpni`dftN2YOfgCn$v4uEvVAy zb^iEaR@mMeTl!SaycNGrVx~Gxay{BA%?7XVJ{_N_dbFKA{tc#G8-^bB=hg{V{70XEdg|eo zAH*58>u5>AC+Gf|HB+Bi=)EmCukUtQl8Kp-fpKxLL7;&wF#2TqSj1RF4sIy7zEF9( z&s){2^Hjz2%P)6sT4Nv&l2&GsFc53Nu7Dq;K$wy7KMSh?Gmt_Kc3|oP20J4|fjRe) zT?fN{XB9p(x#jtaDUPkVcj1Z5$%@lf%KR@bpCb@rqIy@ywB@ikkLGEEfFldP?3(eT z+vD{%))$(~4jXumYR}?tZdaq(@(A|sgZIXXV zKPs4*KhOJzURvdxh}M+o{x1&M9