X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=otf-camunda%2Fdocker%2FDockerfile;h=1cecbe30fe33d9da994f8eb5c2520eb4c19ae4a8;hb=21c549fb35244f9078cf824908c7c312f2e89f06;hp=4df636c0e663aeb650c497a0a02d1234092bfa07;hpb=14f6f95c84a4a1fa8774190db4a03fd0214ec55f;p=it%2Fotf.git diff --git a/otf-camunda/docker/Dockerfile b/otf-camunda/docker/Dockerfile index 4df636c..1cecbe3 100644 --- a/otf-camunda/docker/Dockerfile +++ b/otf-camunda/docker/Dockerfile @@ -1,3 +1,18 @@ +# Copyright (c) 2019 AT&T Intellectual Property. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + FROM openjdk:8 ENV ENV=development @@ -7,10 +22,10 @@ ENV EXECUTORS_ACTIVE=true ENV OTF_MONGO_USERNAME=username ENV OTF_MONGO_PASSWORD=password ENV OTF_MONGO_HOSTS=localhost:27017 -ENV OTF_MONGO_REPLICASET=mongoOTF +ENV OTF_MONGO_REPLICASET=rs0 ENV OTF_MONGO_DATABASE=otf -ENV OTF_CAMUNDA_DB_URL=localhost:3306/otf-camunda -ENV OTF_CAMUNDA_DB_USERNAME=username +ENV OTF_CAMUNDA_DB_URL=localhost:3306/camunda +ENV OTF_CAMUNDA_DB_USERNAME=root ENV OTF_CAMUNDA_DB_PASSWORD=password ENV AAF_PERM_TYPE=type ENV CADI_HOSTNAME=localhost @@ -25,10 +40,16 @@ ENV PRIVATE_KEY=opt/cert/cert.key ENV PRIVATE_KEY_USERNAME=username ENV PRIVATE_KEY_PASSPHRASE=password -COPY otf-camunda.jar app.jar - +RUN apt update +RUN apt install maven -y +COPY settings.xml settings.xml +COPY src src +COPY pom.xml pom.xml +RUN mvn clean install -s settings.xml -DskipTests +RUN rm /usr/share/maven/lib/* +RUN ls RUN mkdir -p /otf/logs +RUN mv target/otf-camunda.jar app.jar +RUN rm -r target -ADD src src - -ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file +ENTRYPOINT ["java", "-jar", "app.jar"]