-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore/remove db in offline mode (#256)
* stashing changes * chore: removed the need for a postgres in offline mode * docs: updated docs * chore: fixed integration test * chore: added comment to application-offline.yaml
- Loading branch information
Showing
18 changed files
with
108 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Using H2 database as a dummy db for offline mode | ||
spring: | ||
datasource: | ||
driver-class-name: org.h2.Driver | ||
username: ${DB_USER:rosetta_db_admin} | ||
password: ${DB_SECRET:weakpwd#123_d} | ||
url: jdbc:h2:mem:${DB_NAME:rosetta-java} | ||
jpa: | ||
hibernate: | ||
ddl-auto: create-drop | ||
|
||
cardano: | ||
rosetta: | ||
OFFLINE_MODE: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: '3.8' | ||
services: | ||
api: | ||
image: cardanofoundation/cardano-rosetta-java-api:${API_DOCKER_IMAGE_TAG} | ||
build: | ||
context: ./ | ||
dockerfile: ./api/Dockerfile | ||
ports: | ||
- ${API_PORT}:${API_PORT} | ||
environment: | ||
NETWORK: ${NETWORK} | ||
API_SPRING_PROFILES_ACTIVE: ${API_SPRING_PROFILES_ACTIVE} | ||
API_PORT: ${API_PORT} | ||
DB_HOST: ${DB_HOST} | ||
DB_PORT: ${DB_PORT} | ||
DB_NAME: ${DB_NAME} | ||
DB_USER: ${DB_USER} | ||
DB_SECRET: ${DB_SECRET} | ||
DB_SCHEMA: ${DB_SCHEMA} | ||
CARDANO_NODE_VERSION: ${CARDANO_NODE_VERSION} | ||
TOPOLOGY_FILEPATH: ${TOPOLOGY_FILEPATH} | ||
GENESIS_SHELLEY_PATH: ${GENESIS_SHELLEY_PATH} | ||
GENESIS_ALONZO_PATH: ${GENESIS_ALONZO_PATH} | ||
GENESIS_CONWAY_PATH: ${GENESIS_CONWAY_PATH} | ||
CARDANO_NODE_SUBMIT_HOST: ${CARDANO_NODE_SUBMIT_HOST} | ||
NODE_SUBMIT_API_PORT: ${NODE_SUBMIT_API_PORT} | ||
CARDANO_NODE_SOCKET_PATH: ${CARDANO_NODE_SOCKET_PATH} | ||
DEVKIT_ENABLED: ${DEVKIT_ENABLED} | ||
DEVKIT_URL: ${DEVKIT_URL} | ||
DEVKIT_PORT: ${DEVKIT_PORT} | ||
volumes: | ||
- ${CARDANO_CONFIG}:/config | ||
- ${CARDANO_NODE_DIR}:${CARDANO_NODE_DIR} | ||
healthcheck: | ||
test: [ "CMD-SHELL", "curl --fail http://localhost:${API_PORT}/network/options -H 'Content-Type: application/json' --data '{\"network_identifier\": {\"blockchain\": \"cardano\",\"network\": \"${NETWORK}\"},\"metadata\": {}}' -X POST" ] | ||
interval: 30s | ||
retries: 20 | ||
start_period: 20s | ||
timeout: 10s | ||
restart: always | ||
|
||
volumes: | ||
data: | ||
|
||
networks: | ||
default: | ||
name: cardano-rosetta-java-${NETWORK} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.