Skip to content

Commit 989b666

Browse files
matiwinnetouMateusz CzeladkaVladislavKudrin
authored
chore: prepare 1.2.9 release (#433)
* feat: ubuntu 24.04 upgrade. (#419) Co-authored-by: Mateusz Czeladka <[email protected]> * chore: spring boot upgrade for yaci-indexer (#425) Co-authored-by: Mateusz Czeladka <[email protected]> * feat: docker compose build from source (#420) * feat: postgres dockerfile * feat: build node from source * feat: build postgres from source * feat: adjust integration tests * feat: sync status in the network service response. (#429) Co-authored-by: Mateusz Czeladka <[email protected]> * chore: 1.2.8 version updated. * fix: postgres container locale (#438) * refactor: streamline spring boot configuration. (#424) Co-authored-by: Mateusz Czeladka <[email protected]> * chore: OpenJDK 24 LTS for api and indexer. (#368) Co-authored-by: Mateusz Czeladka <[email protected]> * fix: postgres missing port and cnode socket path (#442) * chore: cardano-node 10.3.1 (#443) Co-authored-by: Mateusz Czeladka <[email protected]> * fix: preprod config typo fix. * fix: revert back to 10.2.1 * chore: adjusted port for db on pre-prod config. * fix: do not redirect logs to a file but to sysout. (#454) Co-authored-by: Mateusz Czeladka <[email protected]> * chore: path adjusted. * chore: cardano-node: 10.3.1, cabal: 3.12.1.0, ghc: 9.6.7 (#452) Co-authored-by: Mateusz Czeladka <[email protected]> * chore: 1.2.9 bump for develop branch. * feat: oldest_block reported on network status when configuration remove_spent_utxos parameter is enabled and renaming and removal of configuration variables related to removal or spent utxos. (#448) Co-authored-by: Mateusz Czeladka <[email protected]> * chore: removed sanochnet. * fix: cardano node db path / mithril version / tags (#460) * feat: split cardano-node and cardano-submit-api (#464) * feat: rosetta java images dockerhub (#465) * feat: split cardano-node and cardano-submit-api * feat: adjust node / mithril tags * feat: add cardano-rosetta-java-cardano-node image to dockerhub * feat: add mithril / postgres to dockerhub * feat: adjust tags * feat: retry mechanism for node (#468) * feat: retry mechanism for node dependencies - single docker image * feat: retry mechanism for node dependencies - docker compose image * fix: wrong escaping of string text in yaci-indexer configuration, fixes: #472. * fix: single docker build fix related to java-builder (#475) Co-authored-by: Mateusz Czeladka <[email protected]> * feat: postgres source building single docker (#481) * feat: postgres buiding from source - single docker image * feat: add missing jdk to the main image * feat: env --------- Co-authored-by: Mateusz Czeladka <[email protected]> Co-authored-by: VladislavKudrin <[email protected]>
1 parent 0f28089 commit 989b666

File tree

80 files changed

+1580
-626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1580
-626
lines changed

.env.IntegrationTest

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ NETWORK=devkit
44
PROTOCOL_MAGIC=42
55

66
## Postgres image
7-
DB_IMAGE_NAME=postgres
8-
DB_IMAGE_TAG=latest
7+
PG_VERSION_TAG=REL_14_11
98

109
## Yaci image
1110
YACI_VERSION=0.10.5
@@ -41,6 +40,8 @@ SNAPSHOT_DIGEST=latest
4140
AGGREGATOR_ENDPOINT=
4241
# if not set standard values will be used
4342
GENESIS_VERIFICATION_KEY=
43+
ANCILLARY_VERIFICATION_KEY=
44+
4445

4546
## Api env
4647
API_DOCKER_IMAGE_TAG=main
@@ -59,11 +60,9 @@ SEARCH_PAGE_SIZE=100
5960

6061
## Yaci Indexer env
6162
INDEXER_DOCKER_IMAGE_TAG=main
62-
PRUNING_ENABLED=false
63+
REMOVE_SPENT_UTXOS=false
6364
#The number of safe blocks to keep in the store. 2160 blocks *(20 seconds/block in average)=4320 seconds=12 hours.
64-
PRUNING_SAFE_BLOCKS=2160
65-
#Run transaction pruning every 600 seconds or 10 minutes.
66-
PRUNING_INTERVAL=600
65+
REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT=2160
6766

6867
YACI_SPRING_PROFILES=postgres,n2c-socat
6968
# database profiles: h2, h2-testdata, postgres
@@ -138,4 +137,6 @@ DB_POSTGRES_MAX_PARALLEL_WORKERS=4
138137
DB_POSTGRES_SEQ_PAGE_COST=1.0
139138
DB_POSTGRES_JIT=off
140139
DB_POSTGRES_BGWRITER_LRU_MAXPAGES=50
141-
DB_POSTGRES_BGWRITER_DELAY=500ms
140+
DB_POSTGRES_BGWRITER_DELAY=500ms
141+
142+
SYNC_GRACE_SLOTS_COUNT=100

.env.docker-compose

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
API_SPRING_PROFILES_ACTIVE=online
33
LOG=INFO
44
NETWORK=mainnet
5-
# mainnet, preprod, preview, sanchonet, devkit
5+
# mainnet, preprod, preview, devkit
66
PROTOCOL_MAGIC=764824073
7-
# mainnet 764824073, preprod 1, preview 2, sanchonet 4, devkit 42
7+
# mainnet 764824073, preprod 1, preview 2, devkit 42
88

99
## Postgres image
10-
DB_IMAGE_NAME=postgres
11-
DB_IMAGE_TAG=14.11-bullseye
10+
PG_VERSION_TAG=REL_14_11
1211

1312
## Postgres variables
1413
DB_NAME=rosetta-java
@@ -35,11 +34,13 @@ CARDANO_CONFIG=./config/${NETWORK}
3534

3635
## Mithril
3736
MITHRIL_SYNC=true
37+
MITHRIL_VERSION=2517.1
3838
SNAPSHOT_DIGEST=latest
3939
# if not set standard values will be used
4040
AGGREGATOR_ENDPOINT=
4141
# if not set standard values will be used
4242
GENESIS_VERIFICATION_KEY=
43+
ANCILLARY_VERIFICATION_KEY=
4344

4445
## Api env
4546
API_DOCKER_IMAGE_TAG=main
@@ -49,6 +50,7 @@ PRINT_EXCEPTION=true
4950

5051
ROSETTA_VERSION=1.4.13
5152
TOPOLOGY_FILEPATH=/config/topology.json
53+
5254
GENESIS_SHELLEY_PATH=/config/shelley-genesis.json
5355
GENESIS_BYRON_PATH=/config/byron-genesis.json
5456
GENESIS_ALONZO_PATH=/config/alonzo-genesis.json
@@ -57,11 +59,9 @@ SEARCH_PAGE_SIZE=100
5759

5860
## Yaci Indexer env
5961
INDEXER_DOCKER_IMAGE_TAG=main
60-
PRUNING_ENABLED=false
62+
REMOVE_SPENT_UTXOS=false
6163
#The number of safe blocks to keep in the store. 2160 blocks *(20 seconds/block in average)=4320 seconds=12 hours.
62-
PRUNING_SAFE_BLOCKS=2160
63-
#Run transaction pruning every 600 seconds or 10 minutes.
64-
PRUNING_INTERVAL=600
64+
REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT=2160
6565

6666
YACI_SPRING_PROFILES=postgres,n2c-socket
6767
# database profiles: h2, h2-testdata, postgres
@@ -92,3 +92,5 @@ API_DB_POOL_MAX_LIFETIME_MS=2000000
9292
API_DB_POOL_CONNECTION_TIMEOUT_MS=100000
9393
API_DB_KEEP_ALIVE_MS=60000
9494
API_DB_LEAK_CONNECTIONS_WARNING_MS=60000
95+
96+
SYNC_GRACE_SLOTS_COUNT=100

.env.docker-compose-preprod

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
## Main variables
2+
API_SPRING_PROFILES_ACTIVE=online
3+
LOG=INFO
4+
NETWORK=preprod
5+
# mainnet, preprod, preview, devkit
6+
PROTOCOL_MAGIC=1
7+
# mainnet 764824073, preprod 1, preview 2, devkit 42
8+
9+
## Postgres image
10+
PG_VERSION_TAG=REL_14_11
11+
12+
## Postgres variables
13+
DB_NAME=rosetta-java
14+
DB_USER=rosetta_db_admin
15+
DB_SECRET=weakpwd#123_d
16+
DB_HOST=db
17+
# Service name in docker-compose or local db
18+
DB_PORT=5432
19+
DB_SCHEMA=${NETWORK}
20+
DB_PATH=/opt/rosetta-java-preprod/sql_data
21+
22+
## Cardano Node variables
23+
CARDANO_NODE_HOST=cardano-node
24+
# Service name in docker-compose or local cardano node
25+
CARDANO_NODE_PORT=3001
26+
# Uncomment if you are using local cardano node
27+
CARDANO_NODE_VERSION=10.3.1
28+
CARDANO_NODE_SUBMIT_HOST=cardano-submit-api
29+
NODE_SUBMIT_API_PORT=8090
30+
CARDANO_NODE_DIR=/opt/rosetta-java-preprod/node_data
31+
CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_DIR}/node.socket
32+
CARDANO_NODE_DB=${CARDANO_NODE_DIR}/db
33+
CARDANO_CONFIG=./config/${NETWORK}
34+
35+
## Mithril
36+
MITHRIL_SYNC=true
37+
MITHRIL_VERSION=2517.1
38+
SNAPSHOT_DIGEST=latest
39+
# if not set standard values will be used
40+
AGGREGATOR_ENDPOINT=
41+
# if not set standard values will be used
42+
GENESIS_VERIFICATION_KEY=
43+
ANCILLARY_VERIFICATION_KEY=
44+
45+
## Api env
46+
API_DOCKER_IMAGE_TAG=main
47+
# staging, h2, test. Additional profiles: mempool (if mempool should be activated)
48+
API_PORT=8082
49+
PRINT_EXCEPTION=true
50+
51+
ROSETTA_VERSION=1.4.13
52+
TOPOLOGY_FILEPATH=/config/topology.json
53+
54+
GENESIS_SHELLEY_PATH=/config/shelley-genesis.json
55+
GENESIS_BYRON_PATH=/config/byron-genesis.json
56+
GENESIS_ALONZO_PATH=/config/alonzo-genesis.json
57+
GENESIS_CONWAY_PATH=/config/conway-genesis.json
58+
SEARCH_PAGE_SIZE=100
59+
60+
## Yaci Indexer env
61+
INDEXER_DOCKER_IMAGE_TAG=main
62+
REMOVE_SPENT_UTXOS=false
63+
#The number of safe blocks to keep in the store. 2160 blocks *(20 seconds/block in average)=4320 seconds=12 hours.
64+
REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT=2160
65+
66+
YACI_SPRING_PROFILES=postgres,n2c-socket
67+
# database profiles: h2, h2-testdata, postgres
68+
MEMPOOL_ENABLED=false
69+
70+
## Devkit env
71+
DEVKIT_ENABLED=false
72+
DEVKIT_URL=yaci-cli
73+
DEVKIT_PORT=3333
74+
75+
## Logger Config
76+
LOG_FILE_PATH=/var/log/rosetta-java
77+
LOG_FILE_NAME=/var/log/rosetta-java/rosetta-java.log
78+
LOG_FILE_MAX_SIZE=10MB
79+
LOG_FILE_MAX_HISTORY=10
80+
81+
YACI_HTTP_BASE_URL=http://yaci-indexer:9095/api/v1
82+
YACI_INDEXER_PORT=9095
83+
HTTP_CONNECT_TIMEOUT_SECONDS=5
84+
HTTP_REQUEST_TIMEOUT_SECONDS=5
85+
86+
## DB tuning / debugging
87+
API_DB_SHOW_SQL=false
88+
API_DB_MONITOR_PERFORMANCE=false #only needed for debugging and diagnostics
89+
90+
## Basic db pool tuning, generally should not be changed but can be changed rarely if needed
91+
API_DB_POOL_MAX_LIFETIME_MS=2000000
92+
API_DB_POOL_CONNECTION_TIMEOUT_MS=100000
93+
API_DB_KEEP_ALIVE_MS=60000
94+
API_DB_LEAK_CONNECTIONS_WARNING_MS=60000
95+
96+
SYNC_GRACE_SLOTS_COUNT=100

.env.h2

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## Main variables
22
LOG=INFO
33
NETWORK=devkit
4-
# mainnet, preprod, preview, sanchonet, devkit
4+
# mainnet, preprod, preview, devkit
55
PROTOCOL_MAGIC=42
6-
# mainnet 764824073, preprod 1, preview 2, sanchonet 4, devkit 42
6+
# mainnet 764824073, preprod 1, preview 2, devkit 42
77

88
## H2 image
99
DB_IMAGE_NAME=h2
@@ -19,7 +19,7 @@ CARDANO_NODE_HOST=localhost
1919
# Service name in docker-compose or local cardano node
2020
CARDANO_NODE_PORT=3001
2121
# Uncomment if you are using local cardano node
22-
CARDANO_NODE_VERSION=10.2.1
22+
CARDANO_NODE_VERSION=10.3.1
2323
CARDANO_NODE_SUBMIT_HOST=localhost
2424
NODE_SUBMIT_API_PORT=8090
2525

@@ -40,11 +40,8 @@ SEARCH_PAGE_SIZE=100
4040

4141
## Yaci Indexer env
4242
INDEXER_DOCKER_IMAGE_TAG=main
43-
PRUNING_ENABLED=false
44-
#The number of safe blocks to keep in the store. 2160 blocks *(20 seconds/block in average)=4320 seconds=12 hours.
45-
PRUNING_SAFE_BLOCKS=2160
46-
#Run transaction pruning every 600 seconds or 10 minutes.
47-
PRUNING_INTERVAL=600
43+
REMOVE_SPENT_UTXOS=false
44+
REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT=2160
4845
YACI_SPRING_PROFILES=h2,n2c-socket
4946
# database profiles: h2, h2-testdata, postgres
5047
MEMPOOL_ENABLED=false
@@ -94,4 +91,6 @@ DB_POSTGRES_BGWRITER_LRU_MAXPAGES=50
9491
DB_POSTGRES_BGWRITER_DELAY=500ms
9592

9693
# Path to local cardano node socket (Yaci DevKit)
97-
CARDANO_NODE_SOCKET_PATH=${HOME}/.yaci-cli/local-clusters/default/node/node.sock
94+
CARDANO_NODE_SOCKET_PATH=${HOME}/.yaci-cli/local-clusters/default/node/node.sock
95+
96+
SYNC_GRACE_SLOTS_COUNT=100

.env.h2-testdata

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## Main variables
22
LOG=INFO
33
NETWORK=devkit
4-
# mainnet, preprod, preview, sanchonet, devkit
4+
# mainnet, preprod, preview, devkit
55
PROTOCOL_MAGIC=42
6-
# mainnet 764824073, preprod 1, preview 2, sanchonet 4, devkit 42
6+
# mainnet 764824073, preprod 1, preview 2, devkit 42
77

88
## H2 image
99
DB_IMAGE_NAME=h2
@@ -19,7 +19,7 @@ CARDANO_NODE_HOST=localhost
1919
# Service name in docker-compose or local cardano node
2020
CARDANO_NODE_PORT=3001
2121
# Uncomment if you are using local cardano node
22-
CARDANO_NODE_VERSION=10.2.1
22+
CARDANO_NODE_VERSION=10.3.1
2323
CARDANO_NODE_SUBMIT_HOST=localhost
2424
NODE_SUBMIT_API_PORT=8090
2525

@@ -40,11 +40,10 @@ SEARCH_PAGE_SIZE=100
4040

4141
## Yaci Indexer env
4242
INDEXER_DOCKER_IMAGE_TAG=main
43-
PRUNING_ENABLED=false
43+
REMOVE_SPENT_UTXOS=false
4444
#The number of safe blocks to keep in the store. 2160 blocks *(20 seconds/block in average)=4320 seconds=12 hours.
45-
PRUNING_SAFE_BLOCKS=2160
46-
#Run transaction pruning every 600 seconds or 10 minutes.
47-
PRUNING_INTERVAL=600
45+
REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT=2160
46+
4847
YACI_SPRING_PROFILES=h2-testdata,n2c-socket
4948
# database profiles: h2, h2-testdata, postgres
5049
MEMPOOL_ENABLED=false
@@ -94,4 +93,6 @@ DB_POSTGRES_BGWRITER_LRU_MAXPAGES=50
9493
DB_POSTGRES_BGWRITER_DELAY=500ms
9594

9695
# Path to local cardano node socket (Yaci DevKit)
97-
CARDANO_NODE_SOCKET_PATH=${HOME}/.yaci-cli/local-clusters/default/node/node.sock
96+
CARDANO_NODE_SOCKET_PATH=${HOME}/.yaci-cli/local-clusters/default/node/node.sock
97+
98+
SYNC_GRACE_SLOTS_COUNT=100

.github/actions/build_docker_images/action.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,51 @@ runs:
4949
file: ./yaci-indexer/Dockerfile
5050
tags: cardanofoundation/cardano-rosetta-java-indexer:latest
5151
push: true
52+
- name: Cardano Node - Build and push Docker ${{ inputs.tag }} image
53+
uses: docker/build-push-action@v4
54+
with:
55+
context: .
56+
file: ./docker/node/Dockerfile
57+
tags: cardanofoundation/cardano-rosetta-java-cardano-node:${{ inputs.tag }}
58+
push: true
59+
- name: Cardano Node - Build and push Docker latest image
60+
uses: docker/build-push-action@v4
61+
if: ${{ inputs.isRelease == 'true' }}
62+
with:
63+
context: .
64+
file: ./docker/node/Dockerfile
65+
tags: cardanofoundation/cardano-rosetta-java-cardano-node:latest
66+
push: true
67+
- name: Postgres - Build and push Docker ${{ inputs.tag }} image
68+
uses: docker/build-push-action@v4
69+
with:
70+
context: .
71+
file: ./docker/postgres/Dockerfile
72+
tags: cardanofoundation/cardano-rosetta-java-postgres:${{ inputs.tag }}
73+
push: true
74+
- name: Postgres - Build and push Docker latest image
75+
uses: docker/build-push-action@v4
76+
if: ${{ inputs.isRelease == 'true' }}
77+
with:
78+
context: .
79+
file: ./docker/postgres/Dockerfile
80+
tags: cardanofoundation/cardano-rosetta-java-postgres:latest
81+
push: true
82+
- name: Mithril - Build and push Docker ${{ inputs.tag }} image
83+
uses: docker/build-push-action@v4
84+
with:
85+
context: .
86+
file: ./docker/mithril/Dockerfile
87+
tags: cardanofoundation/cardano-rosetta-java-mithril:${{ inputs.tag }}
88+
push: true
89+
- name: Mithril - Build and push Docker latest image
90+
uses: docker/build-push-action@v4
91+
if: ${{ inputs.isRelease == 'true' }}
92+
with:
93+
context: .
94+
file: ./docker/mithril/Dockerfile
95+
tags: cardanofoundation/cardano-rosetta-java-mithril:latest
96+
push: true
5297
- name: All-in-one - Build and push Docker image
5398
uses: docker/build-push-action@v4
5499
with:

.github/workflows/feature-mvn-build.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v3
1212

13-
- name: Set up JDK 21
14-
uses: actions/setup-java@v3
13+
# - name: Set up JDK 21
14+
# uses: actions/setup-java@v3
15+
# with:
16+
# java-version: '21'
17+
# distribution: 'temurin'
18+
# cache: maven
19+
20+
- name: Set up Amazon Corretto
21+
uses: actions/setup-java@v4
1522
with:
16-
java-version: '21'
17-
distribution: 'temurin'
23+
distribution: 'corretto'
24+
java-version: 24
1825
cache: maven
1926

2027
- name: Build project

.github/workflows/sonar-cloud-report.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,20 @@ jobs:
1313
- uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16-
- name: Set up JDK 21
17-
uses: actions/setup-java@v3
16+
# - name: Set up JDK 21
17+
# uses: actions/setup-java@v3
18+
# with:
19+
# java-version: '21'
20+
# distribution: 'temurin'
21+
# cache: maven
22+
23+
- name: Set up Amazon Corretto
24+
uses: actions/setup-java@v4
1825
with:
19-
java-version: '21'
20-
distribution: 'temurin'
26+
distribution: 'corretto'
27+
java-version: 24
2128
cache: maven
29+
2230
- name: Build
2331
env:
2432
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ settings.xml
4646
!.env.h2
4747
!.env.h2-testdata
4848
!.env.docker-compose
49+
!.env.docker-compose-preprod
4950
!.env.docker-compose-profile-entry-level
5051
!.env.docker-compose-profile-mid-level
5152

0 commit comments

Comments
 (0)