Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.IntegrationTest
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CARDANO_NODE_VERSION=0.0.0
CARDANO_NODE_DIR=/Users/thkammer/Documents/dev/cardano/cardano-rosetta-java/node
CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_DIR}/node.socket
CARDANO_NODE_DB=${CARDANO_NODE_DIR}/db
CARDANO_CONFIG=./config/${NETWORK}
CARDANO_CONFIG=./config/node/${NETWORK}

MITHRIL_SYNC=true
SNAPSHOT_DIGEST=latest
Expand All @@ -41,7 +41,7 @@ AGGREGATOR_ENDPOINT=
# if not set standard values will be used
GENESIS_VERIFICATION_KEY=
ANCILLARY_VERIFICATION_KEY=


## Api env
API_DOCKER_IMAGE_TAG=main
Expand Down
9 changes: 7 additions & 2 deletions .env.docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ NODE_SUBMIT_API_PORT=8090
CARDANO_NODE_DIR=/node
CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_DIR}/node.socket
CARDANO_NODE_DB=${CARDANO_NODE_DIR}/db
CARDANO_CONFIG=./config/${NETWORK}
CARDANO_CONFIG=./config/node/${NETWORK}

## Mithril
MITHRIL_SYNC=true
Expand Down Expand Up @@ -94,4 +94,9 @@ API_DB_POOL_CONNECTION_TIMEOUT_MS=100000
API_DB_KEEP_ALIVE_MS=60000
API_DB_LEAK_CONNECTIONS_WARNING_MS=60000

SYNC_GRACE_SLOTS_COUNT=100
SYNC_GRACE_SLOTS_COUNT=100

## Monitoring variables
PROMETHEUS_PORT=9090
GRAFANA_PORT=3000
POSTGRESQL_EXPORTER_PORT=9187
7 changes: 6 additions & 1 deletion .env.docker-compose-preprod
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,9 @@ API_DB_POOL_CONNECTION_TIMEOUT_MS=100000
API_DB_KEEP_ALIVE_MS=60000
API_DB_LEAK_CONNECTIONS_WARNING_MS=60000

SYNC_GRACE_SLOTS_COUNT=100
SYNC_GRACE_SLOTS_COUNT=100

## Monitoring variables
PROMETHEUS_PORT=9090
GRAFANA_PORT=3000
POSTGRESQL_EXPORTER_PORT=9187
4 changes: 4 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/resources/config/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ management:
endpoints:
web:
exposure:
include: "info"
include: health,info,prometheus
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TopologyConfigServiceTest {
@BeforeEach
void setup() {
ReflectionTestUtils.setField(topologyConfigService, "topologyFilepath",
"../config/devkit/topology.json");
"../config/node/devkit/topology.json");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ cardano:
version:
${ROSETTA_VERSION}
middleware-version: '@revision@'
TOPOLOGY_FILEPATH: ${TOPOLOGY_FILEPATH:../config/devkit/topology.json}
GENESIS_SHELLEY_PATH: ${GENESIS_SHELLEY_PATH:../config/devkit/shelley-genesis.json}
GENESIS_ALONZO_PATH: ${GENESIS_ALONZO_PATH:../config/devkit/alonzo-genesis.json}
GENESIS_CONWAY_PATH: ${GENESIS_CONWAY_PATH:../config/devkit/conway-genesis.json}
TOPOLOGY_FILEPATH: ${TOPOLOGY_FILEPATH:../config/node/devkit/topology.json}
GENESIS_SHELLEY_PATH: ${GENESIS_SHELLEY_PATH:../config/node/devkit/shelley-genesis.json}
GENESIS_ALONZO_PATH: ${GENESIS_ALONZO_PATH:../config/node/devkit/alonzo-genesis.json}
GENESIS_CONWAY_PATH: ${GENESIS_CONWAY_PATH:../config/node/devkit/conway-genesis.json}
CARDANO_NODE_VERSION: ${CARDANO_NODE_VERSION:10.3.1}
CARDANO_NODE_SUBMIT_HOST: ${CARDANO_NODE_SUBMIT_HOST:localhost}
NODE_SUBMIT_API_PORT: ${NODE_SUBMIT_API_PORT:8090}
Expand Down
Loading