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>
19 lines
562 B
Docker
19 lines
562 B
Docker
FROM ubuntu:14.04
|
|
RUN sudo apt-get update
|
|
RUN sudo apt-get install -y wget dnsutils
|
|
RUN sudo wget -O /etc/apt/sources.list.d/scylla.list http://downloads.scylladb.com/deb/ubuntu/scylla.list
|
|
RUN sudo apt-get update
|
|
RUN sudo apt-get install -y scylla-server scylla-jmx scylla-tools --force-yes
|
|
|
|
USER root
|
|
COPY start-scylla /start-scylla
|
|
RUN chown -R scylla:scylla /etc/scylla
|
|
RUN chown -R scylla:scylla /etc/scylla.d
|
|
RUN chown -R scylla:scylla /start-scylla
|
|
|
|
USER scylla
|
|
EXPOSE 10000 9042 9160 7000 7001
|
|
VOLUME /var/lib/scylla
|
|
|
|
CMD /start-scylla && /bin/bash
|