mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 11:00:35 +00:00
In order to allow Scylla’s docker container to handle multiple network interfaces, the start-scylla script was refactored: - `$IP` is now called `$SCYLLA_LISTEN_ADDRESS`, so it is less likely to be confused or interfere with other environment variables. - `$SCYLLA_LISTEN_ADDRESS` now checks its value and also tries to resolve a hostname, if no IP was set to it. - `$SCYLLA_LISTEN_DEVICE` can now be set as environment variable and contain any available NIC device name (e.g. `eth0`). The script automatically retrieves the IP address from the device. Usage: 1. With `$SCYLLA_LISTEN_ADDRESS` as IP: `docker run -t -i --rm --name scylla -e SCYLLA_LISTEN_ADDRESS=192.168.1.100 scylladb/scylla` 2. With `$SCYLLA_LISTEN_ADDRESS` as hostname: `docker run -t -i --rm --name scylla -e SCYLLA_LISTEN_ADDRESS=containername.network.lan scylladb/scylla` 3. With `$SCYLLA_LISTEN_DEVICE`: `docker run -t -i --rm --name scylla -e SCYLLA_LISTEN_DEVICE=eth0 scylladb/scylla` Message-Id: <20161003151230.67672-1-marius@twostairs.com>