Created
November 6, 2018 03:53
-
-
Save informationsea/578e431d74b93f22004ddecd85453d66 to your computer and use it in GitHub Desktop.
Dockerfile to build fuse-zip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
RUN yum update -y | |
RUN yum install -y epel-release | |
RUN yum install -y gcc gcc-c++ make cmake3 cmake fuse-devel openssl-devel zlib-devel bzip2-devel chrpath patchelf | |
RUN mkdir -p /build | |
WORKDIR /build | |
RUN curl -OL https://libzip.org/download/libzip-1.5.1.tar.gz | |
RUN tar xzf libzip-1.5.1.tar.gz | |
WORKDIR /build/libzip-1.5.1 | |
ENV PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig LD_LIBRARY_PATH=/usr/local/lib64:/usr/lib64 | |
RUN cmake3 . && make && make install | |
WORKDIR /build | |
RUN curl -OL https://bitbucket.org/agalanin/fuse-zip/downloads/fuse-zip-0.4.5.tar.gz | |
RUN tar xzf fuse-zip-0.4.5.tar.gz | |
WORKDIR /build/fuse-zip-0.4.5 | |
RUN make && make install | |
RUN patchelf --set-rpath '$ORIGIN/' fuse-zip | |
WORKDIR /build | |
RUN curl -OL https://github.com/rpodgorny/unionfs-fuse/archive/v2.0.tar.gz && tar xzf v2.0.tar.gz | |
WORKDIR /build/unionfs-fuse-2.0 | |
RUN cmake . && make | |
WORKDIR /build | |
RUN mkdir -p fuse-zip-bin && cp fuse-zip-0.4.5/fuse-zip fuse-zip-bin/ && cp /usr/local/lib64/libzip.so.5 fuse-zip-bin/ && cp unionfs-fuse-2.0/src/unionfs unionfs-fuse-2.0/src/unionfsctl fuse-zip-bin/ | |
RUN tar czf fuse-zip-bin.tar.gz fuse-zip-bin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment