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