summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Martella <arthur.martella.1@att.com>2019-03-15 12:28:33 -0400
committerArthur Martella <arthur.martella.1@att.com>2019-03-15 12:28:33 -0400
commit6b7d6f0b3ebe74ddb93bcbf44e3853e0027be0be (patch)
tree16ef5382c3470255842068fefcc216f9abae3b62
parent45d1330477382bed46418936e89c0ce0e6f9dcc8 (diff)
Initial upload of F-GPS seed code 12/21
Includes: API helm chart API dockerfile Change-Id: Ic04ceb43be33055eb6e76d086bef9ce18a629c72 Issue-ID: OPTFRA-440 Signed-off-by: arthur.martella.1@att.com
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/Chart.yaml18
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/resources/config/application.properties33
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/resources/config/auth.properties28
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/resources/config/logback.xml28
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/resources/config/logmessages.properties29
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/resources/config/resources.properties34
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/resources/config/system.properties44
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/resources/config/version.properties27
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/templates/configmap.yaml21
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/templates/deployment.yaml104
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/templates/service.yaml40
-rwxr-xr-xvaletapi/kubernetes/org-onap-fgps-dev/values.yaml104
-rwxr-xr-xvaletapi/src/main/docker/Dockerfile18
-rwxr-xr-xvaletapi/src/main/docker/startService.sh9
14 files changed, 537 insertions, 0 deletions
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/Chart.yaml b/valetapi/kubernetes/org-onap-fgps-dev/Chart.yaml
new file mode 100755
index 0000000..c9cd331
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/Chart.yaml
@@ -0,0 +1,18 @@
+# Copyright © 2019 AT&T
+#
+# 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.
+
+apiVersion: v1
+description: Helm charts for valet api
+name: valetapi
+version: 1.0.0
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/resources/config/application.properties b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/application.properties
new file mode 100755
index 0000000..36eea73
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/application.properties
@@ -0,0 +1,33 @@
+
+# ============LICENSE_START=======================================================
+# ONAP - F-GPS
+# ================================================================================
+# Copyright (C) 2019 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# 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.
+# ============LICENSE_END============================================
+# ===================================================================
+#
+###
+
+server.contextPath={{.Values.appProperties.server.contextpath}}
+server.port={{.Values.appProperties.server.port}}
+server.ssl.enabled={{.Values.appProperties.server.sslenabled}}
+server.ssl.key-store={{.Values.appProperties.server.sslkeystore}}
+server.ssl.key-store-type={{.Values.appProperties.server.sslkeystoretype}}
+server.ssl.key-store-password={{.Values.appProperties.server.sslkeystorepassword}}
+server.ssl.key-alias={{.Values.appProperties.server.sslkeyalias}}
+server.http.port={{.Values.appProperties.server.httpport}}
+valet.dark={{.Values.appProperties.valetdark}}
+aaf.url.base={{.Values.appProperties.aafurl}}
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/resources/config/auth.properties b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/auth.properties
new file mode 100755
index 0000000..14385d9
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/auth.properties
@@ -0,0 +1,28 @@
+
+# ============LICENSE_START=======================================================
+# ONAP - F-GPS
+# ================================================================================
+# Copyright (C) 2019 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# 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.
+# ============LICENSE_END============================================
+# ===================================================================
+#
+###
+
+mso.name={{.Values.auth.msoName}}
+mso.pass={{.Values.auth.msoPass}}
+valet.aaf.name={{.Values.auth.aafName}}
+valet.aaf.pass={{.Values.auth.aasPassword}}
+portal.admin.role={{.Values.auth.portalRole}}
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/resources/config/logback.xml b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/logback.xml
new file mode 100755
index 0000000..71f466f
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/logback.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <appender name="FILE-AUDIT"
+ class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>/api/valet/debug123.log</file>
+ <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
+ <Pattern>
+ %d{yyyy-MM-dd HH:mm:ss} - %msg%n
+ </Pattern>
+ </encoder>
+
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <!-- rollover daily -->
+ <fileNamePattern>/api/valet/archived/api123.%d{yyyy-MM-dd}.%i.log
+ </fileNamePattern>
+ <timeBasedFileNamingAndTriggeringPolicy
+ class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
+ <maxFileSize>10MB</maxFileSize>
+ </timeBasedFileNamingAndTriggeringPolicy>
+ </rollingPolicy>
+ </appender>
+ <logger name="com.valet" level="info" additivity="false">
+ <appender-ref ref="FILE-AUDIT" />
+ </logger>
+ <root level="INFO">
+ <appender-ref ref="FILE-AUDIT" />
+ </root>
+</configuration>
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/resources/config/logmessages.properties b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/logmessages.properties
new file mode 100755
index 0000000..b3b163d
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/logmessages.properties
@@ -0,0 +1,29 @@
+
+# ============LICENSE_START=======================================================
+# ONAP - F-GPS
+# ================================================================================
+# Copyright (C) 2019 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# 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.
+# ============LICENSE_END============================================
+# ===================================================================
+#
+###
+
+RESTSERVICE_HELLO=SERVICE0001I|Get a quick hello|No resolution needed|No action is required
+RESTSERVICE_HELLO_NAME=SERVICE0002I|Get a quick hello for {0}|No resolution needed|No action is required
+SPRINSERVICE_HELLO=SERVICE0003I|Say a quick hello|No resolution needed|No action is required
+SPRINSERVICE_HELLO_NAME=SERVICE0004I|Say a quick hello for {0}|No resolution needed|No action is required
+SPRINSERVICE_HELLO_MESSAGE=SERVICE0005I|Say hello message: {0}|No resolution needed|No action is required
+SPRINSERVICE_HELLO_MESSAGE_NAME=SERVICE0006I|Say hello message object:{0}|No resolution needed|No action is required
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/resources/config/resources.properties b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/resources.properties
new file mode 100755
index 0000000..7959caa
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/resources.properties
@@ -0,0 +1,34 @@
+
+# ============LICENSE_START=======================================================
+# ONAP - F-GPS
+# ================================================================================
+# Copyright (C) 2019 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# 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.
+# ============LICENSE_END============================================
+# ===================================================================
+#
+###
+
+musicdb.ip.1={{.Values.music.ipOne}}
+musicdb.ip.2={{.Values.music.ipTwo}}
+musicdb.ip.3={{.Values.music.ipThree}}
+db.create={{.Values.music.dbCreate}}
+music.MUSIC_DB_PORT={{.Values.music.port}}
+music.MUSIC_DB_URL={{.Values.music.url}}
+music.Keyspace={{.Values.music.Keyspace}}
+musicdb.namespace={{.Values.music.namespace}}
+musicdb.userId={{.Values.music.userid}}
+musicdb.password={{.Values.music.password}}
+instanceId={{.Values.music.instanceid}}
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/resources/config/system.properties b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/system.properties
new file mode 100755
index 0000000..43e497b
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/system.properties
@@ -0,0 +1,44 @@
+
+# ============LICENSE_START=======================================================
+# ONAP - F-GPS
+# ================================================================================
+# Copyright (C) 2019 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# 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.
+# ============LICENSE_END============================================
+# ===================================================================
+#
+###
+
+# If the environment property system_properties_path contains a path to a file , System properties created using the file. If the environment variable not present, system.properties in the class path is used for system property creation
+
+org.onap.eelf.logging.file={{.Values.sysProperties.loggingFile}}
+
+# change as per logback.xml path
+org.onap.eelf.logging.path={{.Values.sysProperties.loggingPath}}
+logging.config={{.Values.sysProperties.loggingConfig}}
+
+
+# Default parameters during application startup.
+info.build.artifact={{.Values.sysProperties.buildInfo.artifact}}
+info.build.name={{.Values.sysProperties.buildInfo.name}}
+info.build.version={{.Values.sysProperties.buildInfo.version}}
+
+# Spring configuration files
+spring.config.location={{.Values.sysProperties.springConfig.location}}
+spring.config.name={{.Values.sysProperties.springConfig.name}}
+
+kubernetes.namespace={{.Values.sysProperties.kubeNamespace}}
+
+routeoffer={{.Values.sysProperties.routeOffer}}
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/resources/config/version.properties b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/version.properties
new file mode 100755
index 0000000..4f81f19
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/resources/config/version.properties
@@ -0,0 +1,27 @@
+
+# ============LICENSE_START=======================================================
+# ONAP - F-GPS
+# ================================================================================
+# Copyright (C) 2019 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# 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.
+# ============LICENSE_END============================================
+# ===================================================================
+#
+###
+
+version.major={{.Values.version.major}}
+version.minor={{.Values.version.minor}}
+version.patch={{.Values.version.patch}}
+version.full={{.Values.version.full}}
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/templates/configmap.yaml b/valetapi/kubernetes/org-onap-fgps-dev/templates/configmap.yaml
new file mode 100755
index 0000000..bc0aeec
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/templates/configmap.yaml
@@ -0,0 +1,21 @@
+# Copyright © 2019 AT&T
+#
+# 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.
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: valetapi-configs
+ namespace: org-onap-fgps-dev
+data:
+{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/templates/deployment.yaml b/valetapi/kubernetes/org-onap-fgps-dev/templates/deployment.yaml
new file mode 100755
index 0000000..b806f58
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/templates/deployment.yaml
@@ -0,0 +1,104 @@
+# Copyright © 2019 AT&T
+#
+# 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.
+
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: {{ .Chart.Name }}
+ namespace: {{ .Values.global.ns }}
+ labels:
+ app: {{ .Chart.Name }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+spec:
+ replicas: {{ .Values.replicaCount }}
+ template:
+ metadata:
+ labels:
+ app: {{ .Chart.Name }}
+ release: {{ .Release.Name }}
+ spec:
+ serviceAccount: "default"
+ volumes:
+ - name: valetapi-volume
+ configMap:
+ name: valetapi-configs
+ items:
+ - key: application.properties
+ path: application.properties
+ - key: version.properties
+ path: version.properties
+ - key: system.properties
+ path: system.properties
+ - key: logback.xml
+ path: logback.xml
+ - key: resources.properties
+ path: resources.properties
+ - name: valetapi-logs
+ hostPath:
+ path: /opt/logs/fgps/api
+ imagePullSecrets:
+ - name: pullsecret
+ initContainers:
+ - name: init-cont
+ image: ubuntu:16.04
+ command: ['bash', '-c', 'useradd --uid 825 valetu && chown -R valetu /api']
+ volumeMounts:
+ - mountPath: /api
+ name: valetapi-logs
+ containers:
+ - env:
+ - name: systempropertiespath
+ value: system.properties
+ - name: applicationpropertiespath
+ value: application.properties
+ - name: logbackpath
+ value: logback.xml
+ - name: resourcespropertiespath
+ value: resources.properties
+ - name: java_runtime_arguments
+ value: "-Xms75m -Xmx250m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode"
+ image: "nexus.onap.org:5100/org.onap.fgps/valetapi:latest"
+ imagePullPolicy: Always
+ name: "valetapi"
+ volumeMounts:
+ - name: valetapi-volume
+ mountPath: /opt/etc/config/application.properties
+ subPath: application.properties
+ - name: valetapi-volume
+ mountPath: /opt/etc/config/version.properties
+ subPath: version.properties
+ - name: valetapi-volume
+ mountPath: /opt/etc/config/system.properties
+ subPath: system.properties
+ - name: valetapi-volume
+ mountPath: /opt/etc/config/logback.xml
+ subPath: logback.xml
+ - name: valetapi-volume
+ mountPath: /opt/etc/config/resources.properties
+ subPath: resources.properties
+ - name: valetapi-logs
+ mountPath: /api
+ ports:
+ - containerPort: 8080
+ protocol: TCP
+ resources:
+ requests:
+ memory: "500Mi"
+ cpu: "250m"
+ limits:
+ memory: "1Gi"
+ cpu: "500m"
+ restartPolicy: Always
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/templates/service.yaml b/valetapi/kubernetes/org-onap-fgps-dev/templates/service.yaml
new file mode 100755
index 0000000..2090a59
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/templates/service.yaml
@@ -0,0 +1,40 @@
+# Copyright © 2019 AT&T
+#
+# 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.
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ .Chart.Name }}
+ namespace: {{ .Values.global.ns }}
+ labels:
+ app: {{ .Chart.Name }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+ annotations:
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ {{if eq .Values.service.type "NodePort" -}}
+ - port: {{ .Values.service.externalPort }}
+ nodePort: {{ .Values.service.nodePort }}
+ name: {{ .Values.service.portName }}
+ {{- else -}}
+ - port: {{ .Values.service.externalPort }}
+ targetPort: {{ .Values.service.internalPort }}
+ name: {{ .Values.service.portName }}
+ {{- end}}
+ selector:
+ app: {{ .Chart.Name }}
+ release: {{ .Release.Name }}
diff --git a/valetapi/kubernetes/org-onap-fgps-dev/values.yaml b/valetapi/kubernetes/org-onap-fgps-dev/values.yaml
new file mode 100755
index 0000000..664fa01
--- /dev/null
+++ b/valetapi/kubernetes/org-onap-fgps-dev/values.yaml
@@ -0,0 +1,104 @@
+# Copyright © 2019 AT&T
+#
+# 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.
+
+global:
+ loggingRepository: docker.elastic.co
+ loggingImage: beats/filebeat:5.5.0
+ repositoryCred:
+ user: repouser@fgps.onap.org
+ password: repo_password
+ repository: nexus.onap.org:5100
+ commonConfigPrefix: valetapi
+ ns: org-onap-fgps-dev
+ image:
+ filebeat: docker.elastic.co/beats/filebeat:5.5.0
+ repository: nexus.onap.org:5100
+ name: org.onap.fgps/valetapi:latest
+
+pullPolicy: Always
+nodePortPrefix: 300
+dataRootDir: /dockerdata-nfs
+config:
+ aai:
+ serviceName: aai-ext1.test.onap.org
+ port: 8443
+ msb:
+ serviceName: msb-iag
+ port: 80
+
+service:
+ type: NodePort
+ name: valetapi
+ externalPort: 8080
+ internalPort: 8080
+ nodePort: 30808
+ portName: valetapi
+ingress:
+ enabled: false
+replicaCount: 2
+
+music:
+ ipOne: music_host_1.onap.org
+ ipTwo: music_host_1.onap.org
+ ipThree: music_host_1.onap.org
+ dbCreate: true
+ port: 8080
+ url: /MUSIC/rest/v2/
+ keyspace: pn2
+ namespace: org.onap.fgps.dev.music
+ userid: musicuser@onap.org
+ password: zev1w/9GdTYf92pTUQ9DhabHbEfUFcF4+kLjwLdA2as=
+ instanceid: valet01
+
+auth:
+ msoName: so_user
+ msoPass: IvuHSsIVfVkcy9QWoVhjAlh5Fi9Rg5myLmqvZEYhChE=
+ aafName: userid@fgps.onap.org
+ aasPassword: XuhhetzEGCh8O7Fm9bLF38LNsLvZEg3zvHzmFTgijlKcsC2hgfNJ21ojMkIZI5HG
+ portalRole: org.onap.portal.valet.admin
+
+appProperties:
+ server:
+ contextpath: /api/valet/
+ port: 8443
+ sslenabled: true
+ sslkeystore: classpath:keystore.p12
+ sslkeystoretype: PKCS12
+ sslkeystorepassword: password
+ sslkeyalias: tomcat
+ httpport: 8080
+ valetdark: false
+ aafurl: https://aaf.onap.org:8095/proxy
+
+sysProperties:
+ loggingFile: logback.xml
+ loggingPath: opt/etc/config
+ loggingConfig: opt/etc/config/logback.xml
+ buildInfo:
+ artifact: ValetApi
+ name: org.onap.fgps
+ version: 0.0.1-SNAPSHOT
+ springConfig:
+ location: opt/etc/config/
+ name: application
+ kubeNamespace: org-onap-fgps
+ routeOffer: DEFAULT
+
+version:
+ major: 0
+ minor: 4
+ patch: 8
+ full: 0.4.8
+
+ \ No newline at end of file
diff --git a/valetapi/src/main/docker/Dockerfile b/valetapi/src/main/docker/Dockerfile
new file mode 100755
index 0000000..4632d3b
--- /dev/null
+++ b/valetapi/src/main/docker/Dockerfile
@@ -0,0 +1,18 @@
+FROM openjdk:8-jre-alpine
+
+RUN addgroup -g 825 -S valetg && adduser -u 825 -S valetu -G valetg
+RUN mkdir -p /opt/logs/valet/api && chown -R valetu:valetg /opt/logs
+
+VOLUME /tmp
+VOLUME /opt/etc
+VOLUME /opt/bin
+VOLUME /opt/logs
+
+ADD ValetApi.jar /opt/bin/app.jar
+ADD startService.sh /startService.sh
+
+RUN chown valetu:valetg /startService.sh
+USER valetu:valetg
+RUN chmod 700 /startService.sh && date > /home/valetu/imagedate.txt
+
+ENTRYPOINT ./startService.sh
diff --git a/valetapi/src/main/docker/startService.sh b/valetapi/src/main/docker/startService.sh
new file mode 100755
index 0000000..e682425
--- /dev/null
+++ b/valetapi/src/main/docker/startService.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+touch /app.jar
+
+java \
+ -Dloader.path=/opt/etc/config/,/opt/bin/app.jar \
+ -Dlogging.config=file:/opt/etc/config/logback.xml \
+ -Dspring.config.location=file:/opt/etc/config/application.properties,/opt/etc/config/auth.properties,/opt/etc/config/key.properties,/opt/etc/config/resources.properties,/opt/etc/config/version.properties \
+ $java_runtime_arguments \
+ -jar /opt/bin/app.jar