Update rmr due to k8 bug
[ric-plt/a1.git] / integration_tests / docker-compose.yml
1 # ==================================================================================
2 #       Copyright (c) 2019 Nokia
3 #       Copyright (c) 2018-2019 AT&T Intellectual Property.
4 #
5 #   Licensed under the Apache License, Version 2.0 (the "License");
6 #   you may not use this file except in compliance with the License.
7 #   You may obtain a copy of the License at
8 #
9 #          http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #   Unless required by applicable law or agreed to in writing, software
12 #   distributed under the License is distributed on an "AS IS" BASIS,
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #   See the License for the specific language governing permissions and
15 #   limitations under the License.
16 # ==================================================================================
17 version: '3'
18 services:
19
20     rmr_receiver:
21         build: .
22         hostname: "rmr_receiver"
23         volumes:
24           - ./test_docker.rt:/opt/route/local.rt
25
26     rmr_delay_receiver:
27         build: .
28         hostname: "rmr_delay_receiver"
29         volumes:
30           - ./test_docker.rt:/opt/route/local.rt
31         environment:
32             # https://github.com/docker/compose/issues/3878
33             RMR_RCV_RETRY_INTERVAL: 500
34             RMR_RETRY_TIMES: 10
35             TEST_RCV_PORT: 4563
36             TEST_RCV_RETURN_MINT: 10001
37             TEST_RCV_SEC_DELAY: 5
38             TEST_RCV_RETURN_PAYLOAD: '{"ACK_FROM": "DELAYED_TEST", "status": "SUCCESS"}'
39
40 #    bombarder:
41 #        build:
42 #            context: .
43 #            dockerfile: Dockerfile-Bombard
44 #        hostname: "bombarder"
45 #        volumes:
46 #          - /tmp/local.rt:/opt/route/local.rt
47 #        environment:
48 #            BOMBARD_DELAY_MS: 100
49 #
50     a1:
51         image: a1:latest
52         build:
53             context: ..
54         hostname: "a1"
55         volumes:
56           - ./test_docker.rt:/opt/route/local.rt
57           - ./../tests/fixtures/ricmanifest.json:/opt/ricmanifest.json
58           - ./../tests/fixtures/rmr_string_int_mapping.txt:/opt/rmr_string_int_mapping.txt
59         ports:
60             - "10000:10000"
61         environment:
62             RMR_RCV_RETRY_INTERVAL: 500
63             RMR_RETRY_TIMES: 20