Updating the Values.yaml for several services. Cleaned out proprietary data
[it/otf.git] / otf-frontend / 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 FROM node:8.16-alpine\r
16 \r
17 ENV ENV=development\r
18 ENV NAMESPACE=namespace\r
19 ENV APP_NAME=otf-frontend\r
20 ENV APP_VERSION=1.0\r
21 ENV OTF_URL=https://localhost:32524/\r
22 ENV OTF_EMAIL=email@email.com\r
23 ENV AUTHENTICATION_SECRET=/ytoYB+iD5HUuDLmeqStcoUPwqw=\r
24 ENV SERVICEAPI_URL=https://localhost:32303/otf/api/\r
25 ENV SERVICEAPI_URIEXECUTETESTINSTANCE=testInstance/execute/v1/id/\r
26 ENV SERVICEAPI_AAFID=username\r
27 ENV SERVICEAPI_AAFPASSWORD=password\r
28 ENV CAMUNDAAPI_URL=https://localhost:31313/\r
29 ENV CAMUNDAAPI_AAFID=username\r
30 ENV CAMUNDAAPI_AAFPASSWORD=password\r
31 ENV MONGO_BASEURL=localhost:27017/\r
32 ENV MONGO_DBOTF=otf\r
33 ENV MONGO_REPLICASET=rs0\r
34 ENV MONGO_USERNAME=username\r
35 ENV MONGO_PASSWORD=password\r
36 \r
37 RUN npm config set unsafe-perm true\r
38 RUN npm cache clean --force\r
39 RUN npm config set registry https://registry.npmjs.org/\r
40 RUN node -v\r
41 \r
42 COPY . /home/node\r
43 WORKDIR /home/node\r
44 \r
45 RUN mkdir -p /otf/logs\r
46 \r
47 #RUN npm install webpack\r
48 #RUN npm install webpack webpack-dev-server \r
49 RUN npm i -g webpack\r
50 RUN npm i -g webpack-dev-server\r
51 RUN npm i -g --unsafe-perm @angular/cli@6.2.9 \r
52 RUN npm install --save-dev @angular-devkit/build-angular\r
53 RUN npm install --unsafe-perm\r
54 RUN npm run-script build\r
55 \r
56 ENTRYPOINT [ "npm", "start" ]\r