+Using CLAMP runtime to connect to CLAMP automation composition
+**************************************************************
+
+Build CLAMP runtime image:
+
+ .. code-block:: bash
+
+ cd ~/git/onap/policy/clamp/runtime
+ mvn clean install -P docker -DskipTests
+
+
+Run the following docker composition:
+
+ .. code-block:: yaml
+
+ version: '3.1'
+
+ services:
+ db:
+ image: mariadb:10.5.8
+ volumes:
+ - "~/git/onap/policy/clamp/runtime/extra/sql/:/docker-entrypoint-initdb.d:rw"
+ environment:
+ - MYSQL_ROOT_PASSWORD=strong_pitchou
+ ports:
+ - "3306:3306"
+
+ policy-clamp-backend:
+ image: onap/policy-clamp-backend
+ depends_on:
+ - db
+ - third-party-proxy
+ environment:
+ - SPRING_DATASOURCE_URL=jdbc:mariadb:sequential://db:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
+ - SPRING_PROFILES_ACTIVE=clamp-default,clamp-default-user,clamp-sdc-controller,clamp-ssl-config,clamp-policy-controller,default-dictionary-elements
+ - CLAMP_CONFIG_POLICY_API_URL=http://third-party-proxy:8085
+ - CLAMP_CONFIG_ACM_RUNTIME_URL=http://host.docker.internal:6969
+ - CLAMP_CONFIG_POLICY_PAP_URL=http://third-party-proxy:8085
+ - CLAMP_CONFIG_DCAE_INVENTORY_URL=http://third-party-proxy:8085
+ - CLAMP_CONFIG_DCAE_DEPLOYMENT_URL=http://third-party-proxy:8085
+ - SPRING_CONFIG_LOCATION=classpath:/application.properties
+ ports:
+ - "10443:8443"
+
+ third-party-proxy:
+ image: python:2-slim
+ volumes:
+ - "~/git/onap/policy/clamp/runtime/src/test/resources/http-cache/example/:/thirdparty:rw"
+ - "~/git/onap/policy/clamp/runtime/src/test/resources/http-cache/:/script/:ro"
+ ports:
+ - "8085:8085"
+ command: /bin/sh -c "pip install --no-cache-dir requests && pip install --no-cache-dir simplejson && python -u /script/third_party_proxy.py -v true --port 8085 --root /thirdparty --proxyaddress third-party-proxy:8085"
+
+
+Run DMaaP simulator, and than run CLAMP Acm using java.