{"id":37027292,"url":"https://github.com/bjoernjacobs/csup","last_synced_at":"2026-01-14T03:14:14.429Z","repository":{"id":57719594,"uuid":"67580797","full_name":"bjoernjacobs/csup","owner":"bjoernjacobs","description":"csup performs asynchronous initialization of a Cassandra database and completes a Future, when it finished.","archived":false,"fork":false,"pushed_at":"2017-03-13T10:15:39.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-24T09:46:55.231Z","etag":null,"topics":["cassandra-database","initializer","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bjoernjacobs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-07T06:59:59.000Z","updated_at":"2017-03-11T09:46:21.000Z","dependencies_parsed_at":"2022-09-02T12:31:23.539Z","dependency_job_id":null,"html_url":"https://github.com/bjoernjacobs/csup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bjoernjacobs/csup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernjacobs%2Fcsup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernjacobs%2Fcsup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernjacobs%2Fcsup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernjacobs%2Fcsup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjoernjacobs","download_url":"https://codeload.github.com/bjoernjacobs/csup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernjacobs%2Fcsup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cassandra-database","initializer","scala"],"created_at":"2026-01-14T03:14:13.930Z","updated_at":"2026-01-14T03:14:14.421Z","avatar_url":"https://github.com/bjoernjacobs.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csup\ncsup (Cassandra Up) performs initialization of a Cassandra database given a contact-point, optional credentials, a keyspace name to be created and cql scripts for table creation. The initialization is performed async in a Future and completes with the status of the initalization.\n\nThe main use-case of this is when you have an application in a Docker container that is linked with a Cassandra container. When you start-up the containers using e.g. docker-compose, the csup-tool will retry to connect to Cassandra until connection succeeds. Then it will perform the initialization procedure. When the initialization completes, your main application will be notified by the completion of the Future and you can start it up with a ready-to-use Cassandra database.\n\n## How to use\nConfigure your environment using your own `application.conf` and `cassandra_init_statements.conf`.\n\n```\npackage com.github.bjoernjacobs.csup\n\nimport monix.execution.Scheduler.Implicits.global\n\nimport scala.concurrent.Await\nimport scala.concurrent.duration.Duration\nimport scala.util.{Failure, Success}\n\nobject Test extends App {\n  val init = CsUp().initGetCluster()\n\n  init.onComplete({\n    case Success(cluster) =\u003e println(s\"Everything cool, here is your cluster: ${cluster.getClusterName}\")\n    case Failure(ex) =\u003e ex.printStackTrace()\n  })\n\n  Await.ready(init, Duration.Inf)\n  sys.exit()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjoernjacobs%2Fcsup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjoernjacobs%2Fcsup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjoernjacobs%2Fcsup/lists"}