{"id":13471277,"url":"https://github.com/fullstack-development/cardano-testnet-env","last_synced_at":"2025-03-05T12:18:48.065Z","repository":{"id":96694755,"uuid":"492334366","full_name":"fullstack-development/cardano-testnet-env","owner":"fullstack-development","description":"This repo contains docker infrastructure necessary to set up and run cardano-node, cardano-wallet and plutus-chain-index","archived":false,"fork":false,"pushed_at":"2023-03-30T03:58:01.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-16T00:57:36.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fullstack-development.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-14T22:05:12.000Z","updated_at":"2024-02-05T15:16:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"2202aacb-8e8f-4159-b901-7409a256f5ad","html_url":"https://github.com/fullstack-development/cardano-testnet-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-development%2Fcardano-testnet-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-development%2Fcardano-testnet-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-development%2Fcardano-testnet-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-development%2Fcardano-testnet-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullstack-development","download_url":"https://codeload.github.com/fullstack-development/cardano-testnet-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023207,"owners_count":20059300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:00:42.557Z","updated_at":"2025-03-05T12:18:47.938Z","avatar_url":"https://github.com/fullstack-development.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# Dockerized cardano testnet environment\nThis repo contains docker infrastructure necessary to set up and run\n[`cardano-node`](https://hub.docker.com/r/inputoutput/cardano-node),\n[`cardano-wallet`](https://hub.docker.com/r/inputoutput/cardano-wallet) and\n[`plutus-chain-index`](https://github.com/input-output-hk/plutus-apps/tree/main/plutus-chain-index).\n\n## Before running\nDownload preprod configs to `./preprod-configs` directory\n\n## Running\n```sh\ndocker-compose up -d\n```\n\n## Using\n`cardano-wallet` and `plutus-chain-index` are available on ports `8090` and `9083` respectively. `cardano-node`, on the other hand is only available via socket, in order to access it remotely you can use `socat`. Run this command on your local machine:\n```\nsocat UNIX-LISTEN:${CARDANO_NODE_SOCKET_PATH},fork,reuseaddr,unlink-early, TCP:${HOST_IP_ADDR}:1234\n```\n\n### Wrapping socat in systemd service\nFor developers convenience it may make sense to wrap it into the custom service for `systemd`.\n\nWrite this to `~/.config/systemd/user/some-concrete-cardano-node.service`:\n```systemd\n[Unit]\nDescription=Some concrete cardano testnet node tunnel\n\n[Service]\nType=simple\nSyslogIdentifier=some-concrete-cardano-node-tunnel\nRestart=always\nRestartSec=5\nKillSignal=SIGINT\nLimitNOFILE=32768\nExecStart=socat UNIX-LISTEN:${CARDANO_NODE_SOCKET_PATH},fork,reuseaddr,unlink-early, TCP:${HOST_IP_ADDR}:1234\nEnvironment=\"CARDANO_NODE_SOCKET_PATH=/tmp/node.socket\"\nEnvironment=\"HOST_IP_ADDR=\u003cIP HERE\u003e\"\n\n[Install]\nWantedBy=default.target\n```\n\nMake sure you specify correct `CARDANO_NODE_SOCKET_PATH` and `HOST_IP_ADDR`.\n\nStart and enable the service:\n```sh\nsystemctl --user daemon-reload\nsystemctl --user enable some-concrete-cardano-node\nsystemctl --user start some-concrete-cardano-node\n```\n\nCheck if it's up and running:\n```sh\nsystemctl --user status some-concrete-cardano-node\n```\n\nNow you don't need to start `socat` each time after reboot.\n\n### \"Connection lost with the node. Couldn't connect to node (x999). Retrying in a bit...\"\n\n`cardano-wallet` may spam such warnings in its output. There is no cause for panic, this happens during normal operation due to a bug within cardano-wallet itself: [Rework the \"Local Tx Submission\" node client. #3487](https://github.com/input-output-hk/cardano-wallet/pull/3487).\n\n\n### NOTE\n\nIf you want to deploy testnet on the same machine with PAB, you can use node socket strightly without `socat`. `production-env` branch contains the version without socat.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstack-development%2Fcardano-testnet-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullstack-development%2Fcardano-testnet-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstack-development%2Fcardano-testnet-env/lists"}