github.com/cs3org/reva/v2@v2.27.7/Dockerfile.revad-ceph (about) 1 # Copyright 2018-2021 CERN 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 # 15 # In applying this license, CERN does not waive the privileges and immunities 16 # granted to it by virtue of its status as an Intergovernmental Organization 17 # or submit itself to any jurisdiction. 18 19 FROM quay.io/ceph/ceph:v18 20 21 # replace repo url with one that allows downloading the repo metadata 22 # if http://download.ceph.com/rpm-reef/el8/x86_64/repodata/repomd.xml works again this can be dropped 23 # RUN sed -i 's/download.ceph.com/de.ceph.com/' /etc/yum.repos.d/ceph.repo 24 # RUN mkdir -p /etc/selinux/config 25 # 26 # RUN dnf update --exclude=ceph-iscsi,chrony -y && dnf install -y \ 27 # git \ 28 # gcc \ 29 # make \ 30 # libcephfs-devel \ 31 # librbd-devel \ 32 # librados-devel 33 34 RUN dnf upgrade --nobest -y && dnf install -y \ 35 git \ 36 gcc \ 37 make \ 38 libcephfs-devel \ 39 librbd-devel \ 40 librados-devel 41 42 ADD https://go.dev/dl/go1.22.8.linux-amd64.tar.gz \ 43 go1.22.8.linux-amd64.tar.gz 44 45 RUN rm -rf /usr/local/go && \ 46 tar -C /usr/local -xzf go1.22.8.linux-amd64.tar.gz && \ 47 rm go1.22.8.linux-amd64.tar.gz 48 49 ENV PATH /go/bin:/usr/local/go/bin:$PATH 50 ENV GOPATH /go 51 52 WORKDIR /go/src/github/cs3org/reva 53 COPY . . 54 55 ARG GIT_COMMIT 56 ARG VERSION 57 ENV GIT_COMMIT=$GIT_COMMIT 58 ENV VERSION=$VERSION 59 RUN mkdir -p /go/bin && \ 60 make build-revad-cephfs-docker && \ 61 cp /go/src/github/cs3org/reva/cmd/revad/revad /usr/bin/revad 62 63 RUN cp -r examples/ceph /etc/ 64 65 RUN mkdir -p /etc/revad/ && touch /etc/revad/revad.toml 66 67 EXPOSE 9999 10000 68 69 ENTRYPOINT [ "/usr/bin/revad" ] 70 CMD [ "-c", "/etc/revad/revad.toml", "-p", "/var/run/revad.pid" ]