riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

Add ability to configure archive repository locations via ~/.ccm/config #675

Closed tolbertam closed 6 years ago

tolbertam commented 6 years ago

This adds the capability to override the repository locations for downloading cassandra, DSE, and OpsCenter. This is useful for situations such as when CCM is used as part of a continuous integration workflow where a local mirror is set up so downloads can be done quickly over the local network.

Repositories can be configured via the [repositories] section of the ~/.ccm/config file which was already defined for git aliases. For example:

[repositories]
cassandra = http://mirror.awesomeco.intranet/apache/cassandra
dse = http://mirror.awesomeco.intranet/tar/dse/dse-%s-bin.tar.gz
opscenter = http://mirror.awesomeco.intranet/tar/opscenter/opscenter-%s.tar.gz