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
2 changes: 1 addition & 1 deletion .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: cloudstruct/cardano-db-sync
IMAGE_NAME: blinklabs/cardano-db-sync

jobs:
build-amd64:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
concurrency: ${{ github.ref }}

env:
IMAGE_NAME: cloudstruct/cardano-db-sync
IMAGE_NAME: blinklabs/cardano-db-sync

jobs:

Expand All @@ -23,7 +23,7 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: cloudstruct
username: blinklabs
password: ${{ secrets.DOCKER_PASSWORD }} # uses token
- name: Login to GHCR
uses: docker/login-action@v2
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: cloudstruct
username: blinklabs
password: ${{ secrets.DOCKER_PASSWORD }} # uses token
- name: Login to GHCR
uses: docker/login-action@v2
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: cloudstruct
username: blinklabs
password: ${{ secrets.DOCKER_PASSWORD }} # uses token
- name: Login to GHCR
uses: docker/login-action@v2
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
name: Metadata - GHCR
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ env.IMAGE_NAME }}
images: ghcr.io/${{ github.repository }}
flavor: |
latest=false
tags: |
Expand All @@ -208,7 +208,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ env.IMAGE_NAME }}
ghcr.io/${{ github.repostory }}
flavor: |
latest=false
tags: |
Expand All @@ -224,7 +224,7 @@ jobs:
run: docker manifest create ${{ env.IMAGE_NAME }}:latest --amend ${{ steps.meta-dockerhub.outputs.tags }}-amd64 --amend ${{ steps.meta-dockerhub.outputs.tags }}-arm64v8
if: startsWith(github.ref, 'refs/tags/')
- name: manifest-ghcr-latest
run: docker manifest create ghcr.io/${{ env.IMAGE_NAME }}:latest --amend ${{ steps.meta-ghcr.outputs.tags }}-amd64 --amend ${{ steps.meta-ghcr.outputs.tags }}-arm64v8
run: docker manifest create ghcr.io/${{ github.repository }}:latest --amend ${{ steps.meta-ghcr.outputs.tags }}-amd64 --amend ${{ steps.meta-ghcr.outputs.tags }}-arm64v8
if: startsWith(github.ref, 'refs/tags/')
# Optional manifest for tag versions (includes revisions)
- name: manifest-dockerhub-tags
Expand All @@ -242,7 +242,7 @@ jobs:
run: docker manifest push ${{ env.IMAGE_NAME }}:latest
if: startsWith(github.ref, 'refs/tags/')
- name: push-ghcr-latest
run: docker manifest push ghcr.io/${{ env.IMAGE_NAME }}:latest
run: docker manifest push ghcr.io/${{ github.repository }}:latest
if: startsWith(github.ref, 'refs/tags/')
- name: push-dockerhub-tags
run: docker manifest push ${{ steps.meta-dockerhub-tag.outputs.tags }}
Expand All @@ -254,7 +254,7 @@ jobs:
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: cloudstruct
username: blinklabs
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ env.IMAGE_NAME }}
readme-filepath: ./README.md
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# docker-cardano-db-sync

Builds a Cardano DB sync container from source on Debian. This image attempts
to keep interface compatibility with `inputoutput/cardano-db-sync`, but may
diverge slightly, particularly with any Nix-specific paths.

## Running

To run a Cardano DB sync on mainnet, attached to a local Cardano full node
container running:

```bash
docker run --detach \
--name cardano-db-sync \
-v dbsync-state:/var/lib/cexplorer \
-v node-ipc:/node-ipc \
ghcr.io/cloudstruct/cardano-db-sync
ghcr.io/blinklabs-io/cardano-db-sync
```

DB sync logs can be followed:

```bash
docker logs -f cardano-db-sync
```