Skip to content

Commit 4244480

Browse files
authored
Merge pull request ceph#59841 from phlogistonjohn/jjm-containerized-build-pyalt
containerized build tools [V2]
2 parents 2ba09cd + f276cc5 commit 4244480

File tree

5 files changed

+910
-1
lines changed

5 files changed

+910
-1
lines changed

Dockerfile.build

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

make-debs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ set -xe
2020
base=${1:-/tmp/release}
2121
releasedir=$base/$NAME/WORKDIR
2222
rm -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
4141
mv ceph-$vers.tar.bz2 $releasedir/ceph_$vers.orig.tar.bz2
4242
tar -C $releasedir -jxf $releasedir/ceph_$vers.orig.tar.bz2
4343
#

0 commit comments

Comments
 (0)