Sign inSign up

viktor90/heketi

By viktor90

Updated almost 8 years ago

ubuntu:latest based image for heketi

Image
0

451

viktor90/heketi repository overview

#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:

https://github.com/vgeorgiev90/Python-bash-scripts/blob/master/heketi-entry-for-dockerfile.sh

##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

Tag summary

Content type

Image

Digest

Size

115 MB

Last updated

almost 8 years ago

docker pull viktor90/heketi