File tree Expand file tree Collapse file tree 5 files changed +910
-1
lines changed
Expand file tree Collapse file tree 5 files changed +910
-1
lines changed Original file line number Diff line number Diff line change 1+ ARG DISTRO
2+
3+ FROM scratch as bootstrap
4+ ARG CEPH_CTR_SRC=/usr/local/src/ceph
5+ COPY \
6+ src/script/lib-build.sh \
7+ src/script/run-make.sh \
8+ ${CEPH_CTR_SRC}/src/script/
9+ COPY debian ${CEPH_CTR_SRC}/debian
10+ COPY \
11+ ceph.spec.in \
12+ do_cmake.sh \
13+ install-deps.sh \
14+ run-make-check.sh \
15+ src/script/buildcontainer-setup.sh \
16+ ${CEPH_CTR_SRC}
17+
18+
19+ FROM $DISTRO
20+ ENV FOR_MAKE_CHECK=1
21+ ARG DISTRO
22+ ARG CEPH_CTR_SRC=/usr/local/src/ceph
23+ ARG CLEAN_DNF=yes
24+ ARG CEPH_BRANCH=main
25+ COPY --from=bootstrap ${CEPH_CTR_SRC} ${CEPH_CTR_SRC}
26+ # Note that we do not use ENV for the following. This is because we do not
27+ # want them permamently stored in the container's layer.
28+ RUN DISTRO=$DISTRO \
29+ CEPH_BRANCH=$CEPH_BRANCH \
30+ CLEAN_DNF=$CLEAN_DNF \
31+ CEPH_CTR_SRC=${CEPH_CTR_SRC} \
32+ bash -x ${CEPH_CTR_SRC}/buildcontainer-setup.sh
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ set -xe
2020base=${1:-/ tmp/ release}
2121releasedir=$base /$NAME /WORKDIR
2222rm -fr $( dirname $releasedir )
23- mkdir -p $releasedir
2423#
2524# remove all files not under git so they are not
2625# included in the distribution.
@@ -38,6 +37,7 @@ vers=$(git describe --match "v*" | sed s/^v//)
3837#
3938# rename the tarbal to match debian conventions and extract it
4039#
40+ mkdir -p $releasedir
4141mv ceph-$vers .tar.bz2 $releasedir /ceph_$vers .orig.tar.bz2
4242tar -C $releasedir -jxf $releasedir /ceph_$vers .orig.tar.bz2
4343#
You can’t perform that action at this time.
0 commit comments