blob: f79d368f1c6bac8bfb437b755e4a636b06fa7252 [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001#-------------------------------------------------------------------------------
2# ============LICENSE_START====================================================
3# * org.onap.aaf
4# * ===========================================================================
5# * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
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#-------------------------------------------------------------------------------
23version: '2'
24services:
25 aaf_container:
sg481na2ac6782017-09-18 16:35:50 -040026 image: onap/aaf/authz-service
sg481nbd890c52017-08-28 12:11:35 -040027 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
sg481na2ac6782017-09-18 16:35:50 -040036 # - ./runaafcli.sh:/opt/app/aaf/authz-service/2.0.15/runaafcli.sh
sg481nbd890c52017-08-28 12:11:35 -040037 # - ./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)"]