trajano / docker-volume-plugins

Managed docker volume plugins
Eclipse Public License 2.0
141 stars 61 forks source link

raspberry pi version of volume plugin #14

Closed lukicsl closed 5 years ago

lukicsl commented 5 years ago

I would need some hint how to create a raspberry pi version of the plugin. running build.sh does not succeed. thanks

trajano commented 5 years ago

what's the output?

lukicsl commented 5 years ago

Error: No such plugin: trajano/glusterfs-volume-plugin Error: No such image: rootfsimage Sending build context to Docker daemon 13.82kB Step 1/3 : FROM centos:7 ---> 696a2a326214 Step 2/3 : RUN yum install -q -y centos-release-gluster312 && yum install -q -y go git glusterfs glusterfs-fuse attr ---> Running in 49b2c841cdf6

lukicsl commented 5 years ago

Error: Nothing to do The command '/bin/sh -c yum install -q -y centos-release-gluster312 && yum install -q -y go git glusterfs glusterfs-fuse attr' returned a non-zero code: 1

trajano commented 5 years ago

Hmm, it may be that centos has changed their packages, (happens quite often)

trajano commented 5 years ago

Yah just confirmed, there's no more centos-release-gluster312 anymore. This would mean that we are forced to use Gluster 4.x at least.

centos-release-gluster-legacy.noarch : Disable unmaintained Gluster repositories from the CentOS Storage SIG centos-release-gluster40.x86_64 : Gluster 4.0 (Short Term Stable) packages from the CentOS Storage SIG repository centos-release-gluster41.noarch : Gluster 4.1 (Long Term Stable) packages from the CentOS Storage SIG repository centos-release-gluster5.noarch : Gluster 5 packages from the CentOS Storage SIG repository centos-release-nfv-common.noarch : Common release file to establish shared metadata for CentOS NFV SIG

lukicsl commented 5 years ago

but it seems that there are just x86 pakages, true. I would need arm packages.

trajano commented 5 years ago

True, I am not sure how to build "ARM" images.

lukicsl commented 5 years ago

Thanks, have to look for an alternative volume plugin

lukicsl commented 5 years ago

I build a arm version. Getting when installing: Error response from daemon: manifest for lukics/glusterfs-mvd:latest not found

lukicsl commented 5 years ago

Dockerfile:FROM debian RUN apt-get update && apt-get install -qq -y golang git glusterfs-server ENV GOPATH $HOME/go RUN go get github.com/trajano/docker-volume-plugins/glusterfs-volume-plugin && \ mv $GOPATH/bin/glusterfs-volume-plugin / && \ rm -rf $GOPATH && \ apt-get autoremove -y && \ rm -rf /var/lib/apt/lists/*

trajano commented 5 years ago

The basic objective of the plugin is to have a docker image with GlusterFS and Gluster FS-FUSE plugin installed so that mount command will run.

Secondly it just needs the go lang environment to build the executable. #15 will address the need for that golang environment because we can build it separately and just copy the final executable.

jmb12686 commented 4 years ago

I published an ARM compatible image of the glusterfs volume plugins, source is @ https://github.com/jmb12686/docker-multiarch-glusterfs-plugin

Docker plugin image: https://hub.docker.com/r/jmb12686/glusterfs-volume-plugin

I currently use this on my cluster of Raspberry Pis

nerdily commented 3 years ago

@jmb12686

You beautiful bastard. Thank you.