blob: 1cecbe30fe33d9da994f8eb5c2520eb4c19ae4a8 [file] [log] [blame]
Rohan Patele19624e2019-11-11 16:30:46 -05001# Copyright (c) 2019 AT&T Intellectual Property. #
2# #
3# Licensed under the Apache License, Version 2.0 (the "License"); #
4# you may not use this file except in compliance with the License. #
5# You may obtain a copy of the License at #
6# #
7# http://www.apache.org/licenses/LICENSE-2.0 #
8# #
9# Unless required by applicable law or agreed to in writing, software #
10# distributed under the License is distributed on an "AS IS" BASIS, #
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
12# See the License for the specific language governing permissions and #
13# limitations under the License. #
14################################################################################
15
Rohan Patel6f7e46b2019-09-25 14:35:28 -040016FROM openjdk:8
17
18ENV ENV=development
19ENV NAMESPACE=namespace
20ENV APP_NAME=otf-camunda
21ENV EXECUTORS_ACTIVE=true
22ENV OTF_MONGO_USERNAME=username
23ENV OTF_MONGO_PASSWORD=password
24ENV OTF_MONGO_HOSTS=localhost:27017
Rohan Patel4aa83422019-09-30 17:01:25 -040025ENV OTF_MONGO_REPLICASET=rs0
Rohan Patel6f7e46b2019-09-25 14:35:28 -040026ENV OTF_MONGO_DATABASE=otf
Rohan Patel4aa83422019-09-30 17:01:25 -040027ENV OTF_CAMUNDA_DB_URL=localhost:3306/camunda
28ENV OTF_CAMUNDA_DB_USERNAME=root
Rohan Patel6f7e46b2019-09-25 14:35:28 -040029ENV OTF_CAMUNDA_DB_PASSWORD=password
30ENV AAF_PERM_TYPE=type
31ENV CADI_HOSTNAME=localhost
32ENV AAF_ID=username
33ENV AAF_MECH_PASSWORD=password
34ENV AAF_PASSWORD=password
35ENV CADI_KEYFILE=/opt/secret/keyfile
36ENV OTF_CERT_PATH=opt/cert/cert.p12
37ENV OTF_CERT_PASS=password
38ENV APP_VERSION=1.0
39ENV PRIVATE_KEY=opt/cert/cert.key
40ENV PRIVATE_KEY_USERNAME=username
41ENV PRIVATE_KEY_PASSPHRASE=password
42
Rohan Patele19624e2019-11-11 16:30:46 -050043RUN apt update
44RUN apt install maven -y
45COPY settings.xml settings.xml
46COPY src src
47COPY pom.xml pom.xml
48RUN mvn clean install -s settings.xml -DskipTests
49RUN rm /usr/share/maven/lib/*
50RUN ls
Rohan Patel6f7e46b2019-09-25 14:35:28 -040051RUN mkdir -p /otf/logs
Rohan Patele19624e2019-11-11 16:30:46 -050052RUN mv target/otf-camunda.jar app.jar
53RUN rm -r target
Rohan Patel6f7e46b2019-09-25 14:35:28 -040054
Rohan Patele19624e2019-11-11 16:30:46 -050055ENTRYPOINT ["java", "-jar", "app.jar"]