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