#example run command: docker run --name heketi -d -e CLUSTER_SIZE=3 -p 8080:8080 viktor90/heketi:v1
#example run command with volumes: docker run --name heketi -v /tmp/heketi:/etc/heketi -v /tmp/heketi-data:/var/lib/heketi -d -e CLUSTER_SIZE=3 -p 8080:8080 viktor90/heketi:v1
#CLUSTER_SIZE env var is used to generate heketi topology file
#Post run - add heketi public_key to all glusterfs hosts #docker exec -it heketi cat /root/.ssh/id_rsa.pub #modify /etc/heketi/topology.json to reflect the actual hosts that will be managed #load the topology file #(to be automated in future)
##heketi-entry.sh script used:
##Dockerfile used:
FROM ubuntu:latest
RUN apt-get update; apt-get install wget openssh-client vim -y RUN ssh-keygen -N "" -f ~/.ssh/id_rsa COPY heketi-entry.sh /root/heketi-entry.sh RUN wget https://github.com/heketi/heketi/releases/download/v8.0.0/heketi-v8.0.0.linux.amd64.tar.gz -P /root && tar -xzf /root/heketi-v8.0.0.linux.amd64.tar.gz -C /root && mv /root/heketi/heketi* /usr/bin/ && chmod +x /usr/bin/heketi* && chmod +x /root/heketi-entry.sh
EXPOSE 8080 8081
VOLUME /var/lib/heketi VOLUME /etc/heketi
ENTRYPOINT /root/heketi-entry.sh $CLUSTER_SIZE
Content type
Image
Digest
Size
115 MB
Last updated
almost 8 years ago
docker pull viktor90/heketi