added svcapi ui and camunda code
[it/otf.git] / otf-service-api / docker / Dockerfile
diff --git a/otf-service-api/docker/Dockerfile b/otf-service-api/docker/Dockerfile
new file mode 100644 (file)
index 0000000..e0e9e53
--- /dev/null
@@ -0,0 +1,43 @@
+FROM openjdk:8\r
+\r
+ENV NAMESPACE=namespace\r
+ENV APP_NAME=otf-service-api\r
+ENV AAF_PERM_TYPE=type\r
+ENV AAF_ID=username\r
+ENV AAF_MECH_PASSWORD=password\r
+ENV AAF_PASSWORD=password\r
+ENV CADI_KEYFILE=/opt/secret/keyfile\r
+ENV CADI_HOSTNAME=localhost\r
+ENV APP_VERSION=1.0\r
+ENV OTF_MONGO_HOSTS=localhost:27017\r
+ENV OTF_MONGO_USERNAME=username\r
+ENV OTF_MONGO_PASSWORD=password\r
+ENV OTF_MONGO_REPLICASET=mongoOTF\r
+ENV OTF_MONGO_DATABASE=otf\r
+ENV otf.camunda.host=https://localhost\r
+ENV otf.camunda.port=31313\r
+ENV otf.camunda.executionUri=otf/tcu/execute-test/v1\r
+ENV otf.camunda.pollingUri=otf/tcu/process-instance-completion-check/v1\r
+ENV otf.camunda.deploymentUri=otf/tcu/deploy-test-strategy-zip/v1\r
+ENV otf.camunda.processDefinitionKeyUri=rest/process-definition/key\r
+ENV otf.camunda.deploymentDeletionUri=otf/tcu/delete-test-strategy/v1/deployment-id\r
+ENV otf.camunda.testDefinitionDeletionUri=otf/tcu/delete-test-strategy/v1/test-definition-id\r
+ENV otf.camunda.uri.execute-test=otf/tcu/execute/workflowRequest\r
+ENV otf.camunda.uri.process-instance-completion-check=otf/tcu/process-instance-completion-check/v1\r
+ENV otf.camunda.uri.deploy-test-strategy-zip=otf/tcu/deploy-test-strategy-zip/v1\r
+ENV otf.camunda.uri.process-definition=rest/process-definition/key\r
+ENV otf.camunda.uri.delete-test-strategy=otf/tcu/delete-test-strategy/v1/deployment-id\r
+ENV otf.camunda.uri.delete-test-strategy-test-definition-id=otf/tcu/delete-test-strategy/v1/test-definition-id\r
+ENV otf.camunda.uri.health=/otf/health/v1\r
+ENV otf.api.poll-interval=6000\r
+ENV otf.api.poll-attempts=50\r
+ENV OTF_CERT_PATH=opt/cert/cert.p12\r
+ENV OTF_CERT_PASS=password\r
+\r
+COPY otf-service-api.jar app.jar\r
+\r
+RUN mkdir -p /otf/logs\r
+\r
+ADD src src\r
+\r
+ENTRYPOINT ["java", "-jar", "app.jar"]\r