```
### Running Locally
+VES Collector is a Spring Boot application
+```
+mvn spring-boot:run
+
+```
Build the image (it will go into your local docker repository)
```
mvn clean package
+
+```
+Run the image using docker
+```
+docker run -p 8080:8080 -p 8443:8443 <container_id>
```
Run the image using docker-compose.yml
docker-compose up
```
-### Generate auth credential
+### Generate auth credential
Library to generate new cryptographic password is stored in dcaegen2/sdk -"security/crypt-password"
-or download artifact from:
+or download artifact from:
https://nexus.onap.org/#nexus-search;quick~crypt-password
java -jar crypt-password-<version>.jar password_to_crypt
```
+### Mechanism to validate Certificate Subject DN value
+When application is in certOnly or certBasicAuth mode then certificates are also validated by regexp in certSubjectMatcher.properties, only SubjectDn field in certificate description are checked.
+Default regexp value is .* means that we approve all SubjectDN values.
+
### Environment variables in Docker Container
Most of the configuration of how VESCollector should be started and managed is done through environment variables.
Some of them are set during the image build process and some of them are defined manually or by
looks like this and is located in /opt/app/VESCollector
```
<host>:/opt/app/VESCollector# ls
-Dockerfile bin etc lib logs specs tomcat.8080
+Dockerfile bin etc lib logs specs
```
- bin contains sh scripts (path here is denoted by env var $SCRIPTS_PATH)
- etc contains various application configuration, most notably it reflects 'etc' directory from repository
### Release images
For R1 - image/version pushed to nexus3
```
-nexus3.onap.org:10003/snapshots/onap/org.onap.dcaegen2.collectors.ves.vescollector 1.1
+nexus3.onap.org:10003/snapshots/onap/org.onap.dcaegen2.collectors.ves.vescollector:<version>
```
### Deployment