Skip to content
Snippets Groups Projects
Commit 5fe26ab4 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

initial

parents
No related branches found
No related tags found
No related merge requests found
FROM centos:7
COPY ceph.repo /etc/yum.repos.d
RUN yum install -y epel-release && \
yum install -y \
git \
ceph-common \
librados-devel \
bzip2 \
centos-release-scl
RUN yum install -y devtoolset-7-gcc-c++
RUN git clone -b mimic https://github.com/ceph/ceph.git /ceph
ENV PATH "/miniconda/bin:$PATH"
RUN curl -so installer.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash installer.sh -b -p /miniconda && \
rm installer.sh && \
/miniconda/bin/conda clean -y --all && \
rm -rf /var/tmp/* ~/.cache/* /miniconda/pkg/*
WORKDIR /ceph/src/pybind/rados
RUN mkdir -p /wheelhouse
COPY build.sh .
RUN conda create -n py27 "python <3" cython wheel && \
rm -rf build dist && \
scl enable devtoolset-7 "./build.sh py27"
RUN conda create -n py36 "python >=3.6,<3.7" cython wheel && \
rm -rf build dist && \
scl enable devtoolset-7 "./build.sh py36"
RUN conda create -n py37 "python >=3.7" cython wheel && \
rm -rf build dist && \
scl enable devtoolset-7 "./build.sh py37"
# Ceph Rados Python lib build
Crap for building `rados` python package external to Ceph distro.
```
docker build -t rados-build .
docker run -v $PWD:/out --rm rados-build bash -c "cp /wheelhouse/* /out"
```
#!/usr/bin/env bash
source activate $1
python setup.py bdist_wheel
cp dist/*.whl /wheelhouse
[Ceph]
name=Ceph packages for $basearch
baseurl=http://download.ceph.com/rpm-mimic/el7/$basearch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
[Ceph-noarch]
name=Ceph noarch packages
baseurl=http://download.ceph.com/rpm-mimic/el7/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
[ceph-source]
name=Ceph source packages
baseurl=http://download.ceph.com/rpm-mimic/el7/SRPMS
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment