diff options
author | Rob Daugherty <rd472p@att.com> | 2018-08-02 20:57:23 -0400 |
---|---|---|
committer | Rob Daugherty <rd472p@att.com> | 2018-08-02 21:22:52 -0400 |
commit | e6895a5cb97830ec243168423a83af586a17f608 (patch) | |
tree | 2079f8f62392741e86cae9ade55e388d68151293 /docker-compose.yml | |
parent | ce76219254cf02626e4ee0687016815554055d81 (diff) |
Support for docker-compose in heat environment
docker-compose.yml now contains a configuration for all of the
containers containers. mariadb, catalog-db-adapter, and
request-db-adapter seem to start up and work normally. I
serialized the initializaion of these because that was the
easiest way to ensure they all come up before any other apps.
The catalog and request db adapters could come up in parallel.
Looks like the sdnc adapter comes up ok. The other apps
still need some debugging.
Change-Id: I5730b777ae76dff7552d6024c69a346b9bccfb40
Issue-ID: SO-710
Signed-off-by: Rob Daugherty <rd472p@att.com>
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 277 |
1 files changed, 262 insertions, 15 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 1769b46..2a02858 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ networks: driver_opts: com.docker.network.driver.mtu: ${MTU} services: +################################################################################ mariadb: image: mariadb:10.1.11 ports: @@ -15,40 +16,286 @@ services: environment: - MYSQL_ROOT_PASSWORD=password hostname: - db.mso.testlab.openecomp.org + mariadb.so.testlab.onap.org logging: driver: "json-file" options: max-size: "30m" max-file: "5" - mso: - image: openecomp/mso +################################################################################ + catalog-db-adapter: + image: so/catalog-db-adapter ports: - - "3904:3904" - - "3905:3905" - - "8080:8080" - - "9990:9990" + - "8082" volumes: - - ./volumes/mso/chef-config:/shared + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/catalog-db-adapter/onapheat:/app/config environment: - - MYSQL_ROOT_PASSWORD=password - - ONAP_IP=${OPENO_IP} + - APP=catalog-db-adapter + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password hostname: - mso.mso.testlab.openecomp.org + catalog-db-adapter.so.testlab.onap.org depends_on: - mariadb - links: - - mariadb logging: driver: "json-file" options: max-size: "30m" max-file: "5" command: - - /wait-for.sh + - /app/wait-for.sh - -q - -t - "300" - mariadb:3306 - -- - - /opt/mso/scripts/start-jboss-server.sh + - "/app/start-app.sh" +################################################################################ + request-db-adapter: + image: so/request-db-adapter + ports: + - "8083" + volumes: + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/request-db-adapter/onapheat:/app/config + environment: + - APP=request-db-adapter + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password + hostname: + request-db-adapter.so.testlab.onap.org + depends_on: + - mariadb + - catalog-db-adapter + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + command: + - /app/wait-for.sh + - -q + - -t + - "300" + - catalog-db-adapter:8082 + - -- + - "/app/start-app.sh" +################################################################################ + sdnc-adapter: + image: so/sdnc-adapter + ports: + - "8086" + volumes: + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/sdnc-adapter/onapheat:/app/config + environment: + - APP=sdnc-adapter + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password + hostname: + sdnc-adapter.so.testlab.onap.org + depends_on: + - mariadb + - catalog-db-adapter + - request-db-adapter + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + command: + - /app/wait-for.sh + - -q + - -t + - "300" + - request-db-adapter:8083 + - -- + - "/app/start-app.sh" +################################################################################ + openstack-adapter: + image: so/openstack-adapter + ports: + - "8087" + volumes: + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/openstack-adapter/onapheat:/app/config + environment: + - APP=openstack-adapter + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password + hostname: + openstack-adapter.so.testlab.onap.org + depends_on: + - mariadb + - catalog-db-adapter + - request-db-adapter + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + command: + - /app/wait-for.sh + - -q + - -t + - "300" + - request-db-adapter:8083 + - -- + - "/app/start-app.sh" +################################################################################ + vfc-adapter: + image: so/vfc-adapter + ports: + - "8084" + volumes: + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/vfc-adapter/onapheat:/app/config + environment: + - APP=vfc-adapter + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password + hostname: + vfc-adapter.so.testlab.onap.org + depends_on: + - mariadb + - catalog-db-adapter + - request-db-adapter + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + command: + - /app/wait-for.sh + - -q + - -t + - "300" + - request-db-adapter:8083 + - -- + - "/app/start-app.sh" +################################################################################ + asdc-controller: + image: so/asdc-controller + ports: + - "8085" + volumes: + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/asdc-controller/onapheat:/app/config + environment: + - APP=asdc-controller + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password + hostname: + asdc-controller.so.testlab.onap.org + depends_on: + - mariadb + - catalog-db-adapter + - request-db-adapter + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + command: + - /app/wait-for.sh + - -q + - -t + - "300" + - request-db-adapter:8083 + - -- + - "/app/start-app.sh" +################################################################################ + bpmn-infra: + image: so/bpmn-infra + ports: + - "8081" + volumes: + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/bpmn-infra/onapheat:/app/config + environment: + - APP=bpmn-infra + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password + hostname: + bpmn-infra.so.testlab.onap.org + depends_on: + - mariadb + - catalog-db-adapter + - request-db-adapter + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + command: + - /app/wait-for.sh + - -q + - -t + - "300" + - request-db-adapter:8083 + - -- + - "/app/start-app.sh" +################################################################################ + api-handler-infra: + image: so/api-handler-infra + ports: + - "8080" + volumes: + - ./volumes/so/ca-certificates/onapheat:/app/ca-certificates + - ./volumes/so/config/api-handler-infra/onapheat:/app/config + environment: + - APP=api-handler-infra + - JVM_ARGS=-Xms64m -Xmx512m + - DB_HOST=mariadb +# - KEYSTORE=msoClientKeyStore-onapheat.jks +# - KEYSTORE_PASSWORD=password +# - TRUSTSTORE=msoTrustStore.jks +# - TRUSTSTORE_PASSWORD=password + hostname: + api-handler-infra.so.testlab.onap.org + depends_on: + - mariadb + - catalog-db-adapter + - request-db-adapter + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + command: + - /app/wait-for.sh + - -q + - -t + - "300" + - request-db-adapter:8083 + - -- + - "/app/start-app.sh" |