Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Adding read only node #11

Merged
merged 1 commit into from
May 15, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:

build-and-push-ssi:
build-and-push-sidetree-ion:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The Dockerfile does the following:

## Building the Docker Image
```
docker buildx build --platform linux/amd64 -f ./Dockerfile -t ion:1.0.6 . --load
docker buildx build --platform linux/amd64 -f ./Dockerfile -t ion:1.0.x . --load
```

After building the image, you can run a container from it and test the application as needed.
Expand All @@ -37,5 +37,34 @@ To start ion with your local image running on the testnet run:
docker-compose -f docker-compose.yml -f docker-compose.testnet-override.yml up --build
```

---


To start ion with your local image running on the mainnet run:
```
docker-compose up --build
```

---

To have the local image running on the testnet run in read only mode:
change the config value in

```
# ion/docker/docker-compose.testnet-override.yml/
- ION_CORE_CONFIG_FILE_PATH=/config/docker-testnet-core-readonly-config.json
```
then start as normally


---

To start ion with your local image running on the mainnet run in read only mode:
change the config value in


```
# ion/docker/docker-compose.yml/
- ION_CORE_CONFIG_FILE_PATH=/config/docker-mainnet-core-readonly-config.json
```
then start as normally
11 changes: 11 additions & 0 deletions ion/config/docker-mainnet-core-readonly-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"batchingIntervalInSeconds": 0,
"blockchainServiceUri": "http://ion-bitcoin:3002",
"databaseName": "ion-mainnet-core",
"didMethodName": "ion",
"ipfsHttpApiEndpointUri": "http://ipfs:5001",
"maxConcurrentDownloads": 20,
"mongoDbConnectionString": "mongodb://mongo:27017/",
"observingIntervalInSeconds": 0,
"port": 3000
}
11 changes: 11 additions & 0 deletions ion/config/docker-testnet-core-readonly-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"batchingIntervalInSeconds": 0,
"blockchainServiceUri": "http://testnet-ion-bitcoin:3002",
"databaseName": "ion-testnet-core",
"didMethodName": "ion:test",
"ipfsHttpApiEndpointUri": "http://ipfs:5001",
"maxConcurrentDownloads": 20,
"mongoDbConnectionString": "mongodb://mongo:27017/",
"observingIntervalInSeconds": 0,
"port": 3000
}
11 changes: 5 additions & 6 deletions ion/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ services:

# Choose one of the following options to run ion-bitcoin
# Remote Image
image: nitroneal/ion:1.0.6
image: ghcr.io/tbd54566975/sidetree-ion:main

# Local Image
# image: ion:1.0.6
# image: <local-image-name>

# Local Build
# build: ../
Expand All @@ -59,14 +59,13 @@ services:

ion-core:
container_name: mainnet-ion-core
# image: nitroneal/ion:1.0.6


# Choose one of the following options to run ion-core
# Remote Image
image: nitroneal/ion:1.0.6
image: ghcr.io/tbd54566975/sidetree-ion:main

# Local Image
# image: ion:1.0.6
# image: <local-image-name>

# Local Build
# build: ../
Expand Down