This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
/
sabre_test.yaml
89 lines (82 loc) · 2.49 KB
/
sabre_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Copyright 2018 Cargill Incorporated
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: "2.1"
services:
intkey-tp-python:
image: hyperledger/sawtooth-intkey-tp-python:1.1
container_name: sawtooth-intkey-tp-python-default
depends_on:
- validator
entrypoint: intkey-tp-python -vv -C tcp://validator:9704
shell:
image: hyperledger/sawtooth-shell:1.1
container_name: sabre-shell
entrypoint: "bash -c \"\
sleep 10 && \
sawtooth keygen && \
intkey set C 10 --url http://rest-api:9708 && \
intkey set B 40 --url http://rest-api:9708 && \
tail -f /dev/null \
\""
build_intkey_multiply:
image: build_intkey_multiply:${ISOLATION_ID}
container_name: build_intkey_multiply
volumes:
- .:/project
entrypoint: "bash -c \"\
cargo build --target wasm32-unknown-unknown --release && \
tail -f /dev/null \
\""
build:
context: integration
build_pike:
image: build_pike:${ISOLATION_ID}
container_name: build_pike
volumes:
- .:/project
entrypoint: "bash -c \"\
cd /project/contracts/sawtooth-pike/tp && \
cargo build --target wasm32-unknown-unknown --release && \
tail -f /dev/null \
\""
build:
context: integration
build_intkey:
image: build_intkey:${ISOLATION_ID}
container_name: build_intkey
volumes:
- .:/project
entrypoint: "bash -c \"\
cd /project/contracts/sawtooth-pike/examples/intkey && \
cargo build --target wasm32-unknown-unknown --release && \
tail -f /dev/null \
\""
build:
context: integration
test_sabre:
image: test_sabre:${ISOLATION_ID}
container_name: test_sabre
depends_on:
- rest-api
entrypoint: "bash -c \"\
sleep 180 && \
cargo build && \
cd /project/integration && \
cargo test -- --nocapture
\""
volumes:
- .:/project
- ./keys:/root/.sawtooth/keys
build:
context: cli