Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame] | 1 | # 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 Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 16 | FROM openjdk:8
|
| 17 |
|
| 18 | ENV ENV=development
|
| 19 | ENV NAMESPACE=namespace
|
| 20 | ENV APP_NAME=otf-camunda
|
| 21 | ENV EXECUTORS_ACTIVE=true
|
| 22 | ENV OTF_MONGO_USERNAME=username
|
| 23 | ENV OTF_MONGO_PASSWORD=password
|
| 24 | ENV OTF_MONGO_HOSTS=localhost:27017
|
Rohan Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 25 | ENV OTF_MONGO_REPLICASET=rs0
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 26 | ENV OTF_MONGO_DATABASE=otf
|
Rohan Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 27 | ENV OTF_CAMUNDA_DB_URL=localhost:3306/camunda
|
| 28 | ENV OTF_CAMUNDA_DB_USERNAME=root
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 29 | ENV OTF_CAMUNDA_DB_PASSWORD=password
|
| 30 | ENV AAF_PERM_TYPE=type
|
| 31 | ENV CADI_HOSTNAME=localhost
|
| 32 | ENV AAF_ID=username
|
| 33 | ENV AAF_MECH_PASSWORD=password
|
| 34 | ENV AAF_PASSWORD=password
|
| 35 | ENV CADI_KEYFILE=/opt/secret/keyfile
|
| 36 | ENV OTF_CERT_PATH=opt/cert/cert.p12
|
| 37 | ENV OTF_CERT_PASS=password
|
| 38 | ENV APP_VERSION=1.0
|
| 39 | ENV PRIVATE_KEY=opt/cert/cert.key
|
| 40 | ENV PRIVATE_KEY_USERNAME=username
|
| 41 | ENV PRIVATE_KEY_PASSPHRASE=password
|
| 42 |
|
Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame] | 43 | RUN apt update
|
| 44 | RUN apt install maven -y
|
| 45 | COPY settings.xml settings.xml
|
| 46 | COPY src src
|
| 47 | COPY pom.xml pom.xml
|
| 48 | RUN mvn clean install -s settings.xml -DskipTests
|
| 49 | RUN rm /usr/share/maven/lib/*
|
| 50 | RUN ls
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 51 | RUN mkdir -p /otf/logs
|
Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame] | 52 | RUN mv target/otf-camunda.jar app.jar
|
| 53 | RUN rm -r target
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 54 |
|
Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame] | 55 | ENTRYPOINT ["java", "-jar", "app.jar"]
|