sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 1 | #-------------------------------------------------------------------------------
|
| 2 | # ============LICENSE_START====================================================
|
sg481n | c548cc9 | 2017-08-09 23:25:05 -0400 | [diff] [blame^] | 3 | # * org.onap.aaf
|
sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 4 | # * ===========================================================================
|
| 5 | # * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
|
sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 6 | # * ===========================================================================
|
| 7 | # * Licensed under the Apache License, Version 2.0 (the "License");
|
| 8 | # * you may not use this file except in compliance with the License.
|
| 9 | # * You may obtain a copy of the License at
|
| 10 | # *
|
| 11 | # * http://www.apache.org/licenses/LICENSE-2.0
|
| 12 | # *
|
| 13 | # * Unless required by applicable law or agreed to in writing, software
|
| 14 | # * distributed under the License is distributed on an "AS IS" BASIS,
|
| 15 | # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 16 | # * See the License for the specific language governing permissions and
|
| 17 | # * limitations under the License.
|
| 18 | # * ============LICENSE_END====================================================
|
| 19 | # *
|
| 20 | # * ECOMP is a trademark and service mark of AT&T Intellectual Property.
|
| 21 | # *
|
| 22 | #-------------------------------------------------------------------------------
|
| 23 | version: '2'
|
| 24 | services:
|
| 25 | aaf_container:
|
| 26 | image: attos/aaf
|
| 27 | ports:
|
| 28 | - "8101:8101"
|
| 29 |
|
| 30 | links:
|
| 31 | - cassandra_container
|
| 32 | volumes:
|
| 33 | # - ./authAPI.props:/opt/app/aaf/authz-service/2.0.15/etc/authAPI.props
|
| 34 | - ./wait_for_host_port.sh:/tmp/wait_for_host_port.sh
|
| 35 | - ./data2:/data
|
| 36 | - ./runaafcli.sh:/opt/app/aaf/authz-service/2.0.15/runaafcli.sh
|
| 37 | # - ./com.osaaf.common.props:/opt/app/aaf/authz-service/2.0.15/etc/com.osaaf.common.props
|
| 38 | # - ./cadi-core-1.3.0.jar:/opt/app/aaf/authz-service/2.0.15/lib/cadi-core-1.3.0.jar
|
| 39 | # - ./cadi-aaf-1.3.0.jar:/opt/app/aaf/authz-service/2.0.15/lib/cadi-aaf-1.3.0.jar
|
| 40 | # - ./cadi-client-1.3.0.jar:/opt/app/aaf/authz-service/2.0.15/lib/cadi-client-1.3.0.jar
|
| 41 | # - ./authz-service-2.0.15.jar:/opt/app/aaf/authz-service/2.0.15/lib/authz-service-2.0.15.jar
|
| 42 | # - ./dme2-3.1.200.jar:/opt/app/aaf/authz-service/2.0.15/lib/dme2-3.1.200.jar
|
| 43 | entrypoint: ["bash", "-c", "/tmp/wait_for_host_port.sh cassandra_container 9042; sleep 20; /bin/sh -c ./startup.sh"]
|
| 44 | environment:
|
| 45 | - CASSANDRA_CLUSTER=cassandra_container
|
| 46 |
|
| 47 |
|
| 48 | cassandra_container:
|
| 49 | image: cassandra:2.1.16
|
| 50 | ports:
|
| 51 | - "7000:7000"
|
| 52 | - "7001:7001"
|
| 53 | - "9042:9042"
|
| 54 | - "9160:9160"
|
| 55 | volumes:
|
| 56 | - ./data:/data
|
| 57 | - ./wait_for_host_port.sh:/tmp/wait_for_host_port.sh
|
| 58 | entrypoint: ["bash", "-c", "(/tmp/wait_for_host_port.sh localhost 9042 cqlsh --file /data/init.cql -u cassandra -p cassandra localhost; cqlsh --file /data/ecomp.cql -u cassandra -p cassandra localhost) & (/docker-entrypoint.sh cassandra -f)"]
|