Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1464] Enable future genesis in DBSync config #1609

Merged

Commits on Jul 22, 2024

  1. Make Haskell artifacts exclusion more generic in .gitignore

    Updated the .gitignore file to make the exclusion of Haskell build
    artifacts more generic. Instead of specifying paths based on project
    structure (e.g., `govtool/backend/dist-newstyle/` and
    `govtool/backend/.stack-work/`), the patterns now use `dist-newstyle/`
    and `.stack-work/` to exclude these directories regardless of their
    location within the repository. This change enhances the flexibility of
    the `.gitignore` file and ensures that Haskell build artifacts are
    consistently ignored across different projects and directories within
    the repository.
    placek committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    687dfd6 View commit details
    Browse the repository at this point in the history
  2. EnableFutureGenesis option added to dbsync config

    Updated the dbsync configuration to include the "EnableFutureGenesis"
    option. Modified the `scripts/govtool/config.mk` file to add
    `db-sync-config.json` under the `cardano_configs` list. Also included a
    new command to download the `db-sync-config.json` file and append the
    "EnableFutureGenesis" configuration to it. This change allows the
    synchronization process to support future genesis blocks, making the
    system more adaptable to upcoming updates in the Cardano blockchain.
    placek committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    ba21289 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Apply DBSync configuration to the DBSync container

    Updated the Docker Compose template `docker-compose.yml.tpl` for the
    DBSync container to include the new configuration. Added a command to
    specify the path to the `db-sync-config.json` file and also included a
    volume mount to provide the configuration file to the container. This
    change ensures the DBSync process uses the correct settings, allowing it
    to adapt to future updates and ensuring better synchronization with the
    Cardano blockchain.
    placek committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    7970bad View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Enable future genesis in dbsync configuration

    Updated the DBSync configuration to support future genesis blocks by
    adding the `DB_SYNC_ENABLE_FUTURE_GENESIS` environment variable to
    `docker-compose.yml.tpl`. This ensures the DBSync process is
    forward-compatible with future updates to the Cardano blockchain,
    enhancing its adaptability and long-term functionality.
    
    This change ensures the DBSync process uses the correct settings,
    allowing it to adapt to future updates and ensuring better
    synchronization with the Cardano blockchain.
    placek committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    ea89bb0 View commit details
    Browse the repository at this point in the history
  2. Add missing ENV variable for PDF API in workflow

    Updated the GitHub Actions workflow to include the `PDF_API_URL`
    environment variable. This ensures that the resync process has access to
    the necessary endpoint for generating PDFs, improving the overall
    functionality and integration of the resync process within the Cardano
    node and DBSync synchronization workflow. This change addresses the
    missing configuration and enhances the reliability of the workflows.
    
    Additionally, this commit introduces the recent adjustments made to the
    workflow that deploys dev environment.
    placek committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    dfa69cb View commit details
    Browse the repository at this point in the history
  3. Add ECR registry for custom Cardano DB Sync image

    Added a new ECR module for storing the custom Cardano DB Sync Docker
    image. This change involved updating the `infra/terraform/main.tf` file
    to include the new `govtool-ecr-custom-cardano-db-sync` module. Adjusted
    the IAM policy to grant access to this new repository. Additionally,
    included output configurations for retrieving the repository URL. This
    update supports the transition towards storing and deploying custom
    Cardano DB Sync images, ensuring better version control and deployment
    reliability.
    placek committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7126599 View commit details
    Browse the repository at this point in the history
  4. Prepare Makefile to build Cardano DB Sync image with custom entrypoint

    Updated `scripts/govtool/Makefile` to include the new custom Cardano DB
    Sync module by adding `custom-cardano-db-sync.mk`. Created new files:
    - `scripts/govtool/custom-cardano-db-sync.Dockerfile` to define the
      Docker image with a custom entrypoint.
    - `scripts/govtool/custom-cardano-db-sync.entrypoint.sh` to provide the
      custom entrypoint script.
    - `scripts/govtool/custom-cardano-db-sync.mk` to manage the build and
      push processes of the custom Cardano DB Sync Docker image.
    
    These changes ensure that we can build and deploy a custom Cardano DB
    Sync image with a specific entrypoint, allowing for custom logic
    execution during container startup.
    placek committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    78a591c View commit details
    Browse the repository at this point in the history
  5. Add entrypoint that customizes DBSync configuration

    Updated the custom entrypoint script for the Cardano DB Sync container
    to include advanced configuration capabilities. Changes were made to
    `scripts/govtool/custom-cardano-db-sync.entrypoint.sh` to set up
    necessary environment variables, handle PostgreSQL authentication via a
    `pgpass` file, and include the path to `db-sync-config.json`. The
    `scripts/govtool/Makefile` and
    `scripts/govtool/config/templates/docker-compose.yml.tpl` files were
    adjusted to support these changes by implementing new build and
    deployment targets for the custom Cardano DB Sync image and updating the
    Docker Compose template.
    
    These changes ensure the DBSync process uses the correct settings,
    allowing it to adapt to future updates and ensuring better
    synchronization with the Cardano blockchain.
    placek committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    c51f482 View commit details
    Browse the repository at this point in the history