Skip to content

Commit 2db692b

Browse files
committed
Merge branch 'develop' into feat/rename-leader
2 parents 690e9ca + 2e38dca commit 2db692b

File tree

4 files changed

+26
-30
lines changed

4 files changed

+26
-30
lines changed

.github/workflows/ci-test-cvat-recording-oracle.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
paths:
66
- 'packages/examples/cvat/recording-oracle/**'
7-
- 'packages/sdk/python/human-protocol-sdk/**'
7+
- 'packages/core/**'
88

99
jobs:
1010
cvat-exo-test:

packages/examples/cvat/recording-oracle/docker-compose.test.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,26 @@ services:
77
POSTGRES_USER: 'test'
88
POSTGRES_DB: 'recording_oracle_test'
99
PGDATA: '/var/lib/postgresql/data/pgdata'
10-
ports:
11-
- 5434:5432
1210
command: ["postgres", "-c", "log_statement=all"]
1311
networks:
1412
- test-network
1513

1614
blockchain-node:
1715
build:
18-
context: ./
19-
dockerfile: dockerfiles/blockchain-node.Dockerfile
16+
context: ../../../../
17+
dockerfile: packages/examples/cvat/recording-oracle/dockerfiles/blockchain-node.Dockerfile
2018
healthcheck:
2119
# Using a magic nubmer of 23 here because this is a block number when blockchain-node container is ready to use
22-
test: if [ $(( $(wget -q --post-data='{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' -O- http://blockchain-node:8545 | grep -o '"result":"[^"]*"' | awk -F'"' '{print $4}' ) )) -ge 23 ]; then exit 0; else exit 1; fi
20+
test: if [ $(( $(wget -q --post-data='{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' -O- http://localhost:8545 | grep -o '"result":"[^"]*"' | awk -F'"' '{print $4}' ) )) -ge 23 ]; then exit 0; else exit 1; fi
2321
interval: 15s
2422
timeout: 5s
25-
retries: 15
23+
retries: 5
2624
networks:
2725
- test-network
2826

2927
minio:
3028
container_name: minio
3129
image: minio/minio:RELEASE.2022-05-26T05-48-41Z
32-
ports:
33-
- 9001:9001
34-
- 9000:9000
3530
environment:
3631
MINIO_ROOT_USER: dev
3732
MINIO_ROOT_PASSWORD: devdevdev
@@ -64,7 +59,6 @@ services:
6459
networks:
6560
- test-network
6661

67-
6862
test:
6963
build:
7064
context: ./
Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
FROM node:18-alpine
1+
# TODO: make this shared and part of local setup
2+
FROM node:18-slim
23

3-
RUN apk add git
4+
# wget is needed for healthcheck
5+
RUN apt-get update && apt-get install -y wget
46

5-
RUN git clone https://github.com/humanprotocol/human-protocol.git
7+
WORKDIR /usr/src/app
68

7-
WORKDIR /human-protocol
8-
9-
EXPOSE 8545
9+
# Copy expected yarn dist
10+
COPY .yarn ./.yarn
11+
COPY .yarnrc ./
12+
# Copy files for deps installation
13+
COPY package.json yarn.lock ./
1014

15+
COPY tsconfig.json ./
16+
COPY packages/core ./packages/core
1117
RUN yarn workspace @human-protocol/core install --ignore-scripts
12-
CMD yarn workspace @human-protocol/core local
18+
RUN yarn workspace @human-protocol/core build
19+
20+
EXPOSE 8545
21+
CMD yarn workspace @human-protocol/core local

yarn.lock

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4260,12 +4260,12 @@
42604260
undici "^6.11.1"
42614261

42624262
"@openzeppelin/upgrades-core@^1.32.2", "@openzeppelin/upgrades-core@^1.41.0":
4263-
version "1.42.1"
4264-
resolved "https://registry.yarnpkg.com/@openzeppelin/upgrades-core/-/upgrades-core-1.42.1.tgz#a2784e8d9c09f4a79b7e5cbb11933062ad709835"
4265-
integrity sha512-8qnz2XfQrco8R8u9NjV+KiSLrVn7DnWFd+3BuhTUjhVy0bzCSu2SMKCVpZLtXbxf4f2dpz8jYPQYRa6s23PhLA==
4263+
version "1.41.0"
4264+
resolved "https://registry.yarnpkg.com/@openzeppelin/upgrades-core/-/upgrades-core-1.41.0.tgz#3a5e044cf53acd50c392f3297e7c37e4ff8f8355"
4265+
integrity sha512-+oryinqZnxkiZvg7bWqWX4Ki/CNwVUZEqC6Elpi5PQoahpL3/6Sq9xjIozD5AiI2O61h8JHQ+A//5NtczyavJw==
42664266
dependencies:
42674267
"@nomicfoundation/slang" "^0.18.3"
4268-
cbor "^10.0.0"
4268+
cbor "^9.0.0"
42694269
chalk "^4.1.0"
42704270
compare-versions "^6.0.0"
42714271
debug "^4.1.1"
@@ -9041,13 +9041,6 @@ caseless@^0.12.0, caseless@~0.12.0:
90419041
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
90429042
integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==
90439043

9044-
cbor@^10.0.0:
9045-
version "10.0.3"
9046-
resolved "https://registry.yarnpkg.com/cbor/-/cbor-10.0.3.tgz#202d79cd696f408700af51b0c9771577048a860e"
9047-
integrity sha512-72Jnj81xMsqepqdcSdf2+fflz/UDsThOHy5hj2MW5F5xzHL8Oa0KQ6I6V9CwVUPxg5pf+W9xp6W2KilaRXWWtw==
9048-
dependencies:
9049-
nofilter "^3.0.2"
9050-
90519044
cbor@^8.1.0:
90529045
version "8.1.0"
90539046
resolved "https://registry.yarnpkg.com/cbor/-/cbor-8.1.0.tgz#cfc56437e770b73417a2ecbfc9caf6b771af60d5"
@@ -15913,7 +15906,7 @@ node-stdlib-browser@^1.2.0:
1591315906
util "^0.12.4"
1591415907
vm-browserify "^1.0.1"
1591515908

15916-
nofilter@^3.0.2, nofilter@^3.1.0:
15909+
nofilter@^3.1.0:
1591715910
version "3.1.0"
1591815911
resolved "https://registry.yarnpkg.com/nofilter/-/nofilter-3.1.0.tgz#c757ba68801d41ff930ba2ec55bab52ca184aa66"
1591915912
integrity sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g==

0 commit comments

Comments
 (0)