Loading Makefile +2 −2 Original line number Diff line number Diff line Loading @@ -24,10 +24,10 @@ build: if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o _output/s3driver ./cmd/s3driver test: docker build -t $(TEST_IMAGE_TAG) -f test/Dockerfile.s3backer . docker build -t $(TEST_IMAGE_TAG) -f test/Dockerfile . docker run --rm --privileged -v $(PWD):$(PROJECT_DIR):ro -v /dev:/dev $(TEST_IMAGE_TAG) container: build docker build -t $(IMAGE_TAG) -f cmd/s3driver/Dockerfile.s3ql . docker build -t $(IMAGE_TAG) -f cmd/s3driver/Dockerfile . push: container docker push $(IMAGE_TAG) clean: Loading cmd/s3driver/Dockerfile +24 −2 Original line number Diff line number Diff line FROM debian:stretch FROM golang:stretch LABEL maintainers="Cyrill Troxler <cyrilltroxler@gmail.com>" LABEL description="s3 fuse csi plugin" RUN apt-get update && apt-get install -y s3fs && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y \ s3fs \ build-essential \ autoconf \ libcurl4-openssl-dev \ libfuse-dev \ libexpat1-dev \ libssl-dev \ zlib1g-dev \ xfsprogs \ psmisc \ git && \ rm -rf /var/lib/apt/lists/* # Compile & install s3backer RUN git clone https://github.com/archiecobbs/s3backer.git ./s3backer WORKDIR "./s3backer" RUN ./autogen.sh && \ ./configure && \ make && \ make install COPY ./_output/s3driver /s3driver ENTRYPOINT ["/s3driver"] test/Dockerfile +20 −14 Original line number Diff line number Diff line FROM golang:stretch LABEL maintainers="Cyrill Troxler <cyrilltroxler@gmail.com>" LABEL description="s3 fuse csi plugin" ARG S3QL_VERSION=release-2.28 RUN apt-get update && \ apt-get install -y \ s3fs wget psmisc procps python3 python3-setuptools \ python3-dev python3-pip python3-llfuse pkg-config \ sqlite3 libsqlite3-dev python3-apsw cython && \ RUN apt-get update && apt-get install -y \ s3fs \ build-essential \ autoconf \ libcurl4-openssl-dev \ libfuse-dev \ libexpat1-dev \ libssl-dev \ zlib1g-dev \ xfsprogs \ psmisc \ git && \ rm -rf /var/lib/apt/lists/* RUN pip3 install defusedxml dugong requests pycrypto RUN git clone https://github.com/archiecobbs/s3backer.git ./s3backer WORKDIR /usr/src RUN wget -q https://github.com/s3ql/s3ql/archive/${S3QL_VERSION}.tar.gz RUN tar -xzf ${S3QL_VERSION}.tar.gz WORKDIR /usr/src/s3ql-${S3QL_VERSION} RUN python3 setup.py build_cython build_ext --inplace RUN python3 setup.py install WORKDIR "./s3backer" RUN ["./autogen.sh"] RUN ["./configure"] RUN ["make"] RUN ["make", "install"] RUN go get -u github.com/minio/minio && go install github.com/minio/minio/cmd Loading test/Dockerfile.s3backer→test/Dockerfile.s3ql +24 −0 Original line number Diff line number Diff line FROM golang:stretch LABEL maintainers="Cyrill Troxler <cyrilltroxler@gmail.com>" LABEL description="s3 fuse csi plugin" ARG S3QL_VERSION=release-2.28 RUN apt-get update && apt-get install -y \ s3fs \ build-essential \ autoconf \ libcurl4-openssl-dev \ libfuse-dev \ libexpat1-dev \ libssl-dev \ zlib1g-dev \ xfsprogs \ psmisc \ git && \ RUN apt-get update && \ apt-get install -y \ s3fs wget psmisc procps python3 python3-setuptools \ python3-dev python3-pip python3-llfuse pkg-config \ sqlite3 libsqlite3-dev python3-apsw cython && \ rm -rf /var/lib/apt/lists/* RUN git clone https://github.com/archiecobbs/s3backer.git ./s3backer RUN pip3 install defusedxml dugong requests pycrypto WORKDIR "./s3backer" RUN ["./autogen.sh"] RUN ["./configure"] RUN ["make"] RUN ["make", "install"] WORKDIR /usr/src RUN wget -q https://github.com/s3ql/s3ql/archive/${S3QL_VERSION}.tar.gz RUN tar -xzf ${S3QL_VERSION}.tar.gz WORKDIR /usr/src/s3ql-${S3QL_VERSION} RUN python3 setup.py build_cython build_ext --inplace RUN python3 setup.py install RUN go get -u github.com/minio/minio && go install github.com/minio/minio/cmd Loading Loading
Makefile +2 −2 Original line number Diff line number Diff line Loading @@ -24,10 +24,10 @@ build: if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o _output/s3driver ./cmd/s3driver test: docker build -t $(TEST_IMAGE_TAG) -f test/Dockerfile.s3backer . docker build -t $(TEST_IMAGE_TAG) -f test/Dockerfile . docker run --rm --privileged -v $(PWD):$(PROJECT_DIR):ro -v /dev:/dev $(TEST_IMAGE_TAG) container: build docker build -t $(IMAGE_TAG) -f cmd/s3driver/Dockerfile.s3ql . docker build -t $(IMAGE_TAG) -f cmd/s3driver/Dockerfile . push: container docker push $(IMAGE_TAG) clean: Loading
cmd/s3driver/Dockerfile +24 −2 Original line number Diff line number Diff line FROM debian:stretch FROM golang:stretch LABEL maintainers="Cyrill Troxler <cyrilltroxler@gmail.com>" LABEL description="s3 fuse csi plugin" RUN apt-get update && apt-get install -y s3fs && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y \ s3fs \ build-essential \ autoconf \ libcurl4-openssl-dev \ libfuse-dev \ libexpat1-dev \ libssl-dev \ zlib1g-dev \ xfsprogs \ psmisc \ git && \ rm -rf /var/lib/apt/lists/* # Compile & install s3backer RUN git clone https://github.com/archiecobbs/s3backer.git ./s3backer WORKDIR "./s3backer" RUN ./autogen.sh && \ ./configure && \ make && \ make install COPY ./_output/s3driver /s3driver ENTRYPOINT ["/s3driver"]
test/Dockerfile +20 −14 Original line number Diff line number Diff line FROM golang:stretch LABEL maintainers="Cyrill Troxler <cyrilltroxler@gmail.com>" LABEL description="s3 fuse csi plugin" ARG S3QL_VERSION=release-2.28 RUN apt-get update && \ apt-get install -y \ s3fs wget psmisc procps python3 python3-setuptools \ python3-dev python3-pip python3-llfuse pkg-config \ sqlite3 libsqlite3-dev python3-apsw cython && \ RUN apt-get update && apt-get install -y \ s3fs \ build-essential \ autoconf \ libcurl4-openssl-dev \ libfuse-dev \ libexpat1-dev \ libssl-dev \ zlib1g-dev \ xfsprogs \ psmisc \ git && \ rm -rf /var/lib/apt/lists/* RUN pip3 install defusedxml dugong requests pycrypto RUN git clone https://github.com/archiecobbs/s3backer.git ./s3backer WORKDIR /usr/src RUN wget -q https://github.com/s3ql/s3ql/archive/${S3QL_VERSION}.tar.gz RUN tar -xzf ${S3QL_VERSION}.tar.gz WORKDIR /usr/src/s3ql-${S3QL_VERSION} RUN python3 setup.py build_cython build_ext --inplace RUN python3 setup.py install WORKDIR "./s3backer" RUN ["./autogen.sh"] RUN ["./configure"] RUN ["make"] RUN ["make", "install"] RUN go get -u github.com/minio/minio && go install github.com/minio/minio/cmd Loading
test/Dockerfile.s3backer→test/Dockerfile.s3ql +24 −0 Original line number Diff line number Diff line FROM golang:stretch LABEL maintainers="Cyrill Troxler <cyrilltroxler@gmail.com>" LABEL description="s3 fuse csi plugin" ARG S3QL_VERSION=release-2.28 RUN apt-get update && apt-get install -y \ s3fs \ build-essential \ autoconf \ libcurl4-openssl-dev \ libfuse-dev \ libexpat1-dev \ libssl-dev \ zlib1g-dev \ xfsprogs \ psmisc \ git && \ RUN apt-get update && \ apt-get install -y \ s3fs wget psmisc procps python3 python3-setuptools \ python3-dev python3-pip python3-llfuse pkg-config \ sqlite3 libsqlite3-dev python3-apsw cython && \ rm -rf /var/lib/apt/lists/* RUN git clone https://github.com/archiecobbs/s3backer.git ./s3backer RUN pip3 install defusedxml dugong requests pycrypto WORKDIR "./s3backer" RUN ["./autogen.sh"] RUN ["./configure"] RUN ["make"] RUN ["make", "install"] WORKDIR /usr/src RUN wget -q https://github.com/s3ql/s3ql/archive/${S3QL_VERSION}.tar.gz RUN tar -xzf ${S3QL_VERSION}.tar.gz WORKDIR /usr/src/s3ql-${S3QL_VERSION} RUN python3 setup.py build_cython build_ext --inplace RUN python3 setup.py install RUN go get -u github.com/minio/minio && go install github.com/minio/minio/cmd Loading