]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
calamari: Fix-up deb and rpm builds 533/head
authorBoris Ranto <branto@redhat.com>
Wed, 2 Nov 2016 16:16:41 +0000 (17:16 +0100)
committerBoris Ranto <branto@redhat.com>
Wed, 2 Nov 2016 16:26:42 +0000 (17:26 +0100)
Signed-off-by: Boris Ranto <branto@redhat.com>
calamari/build/build_deb
calamari/build/build_rpm
calamari/config/definitions/calamari.yml

index 9f5d2e570d8debd2bfa35083b07c489e30aa8b11..826d9c4652fc43d33bb261059c4c8a639d7b10b6 100644 (file)
@@ -9,12 +9,12 @@ fi
 
 ## Install any setup-time deps
 # We need this for mk-build-deps
-sudo apt-get install equivs
+sudo apt-get install -y equivs
 
 # Run the install-deps.sh upstream script if it exists
 if [ -x install-deps.sh ]; then
     echo "Ensuring dependencies are installed"
-    ./install-deps.sh
+    sudo ./install-deps.sh
 fi
 
 
index df2c57394052ae3a3dba3314e15551492cac756b..494609dc1be6ccb8178799ee2717ba3ba729b610 100644 (file)
@@ -9,12 +9,12 @@ fi
 
 ## Install any setup-time deps (to make dist package)
 # We need this to get the major version from lsb_release
-yum install -y redhat-lsb-core
+sudo yum install -y redhat-lsb-core mock
 
 # Run the install-deps.sh upstream script if it exists
 if [ -x install-deps.sh ]; then
     echo "Ensuring dependencies are installed"
-    ./install-deps.sh
+    sudo ./install-deps.sh
 fi
 
 
@@ -36,7 +36,7 @@ sed -e "s/@VERSION@/${VERSION}/g" -e "s/@RELEASE@/${RPM_RELEASE}/g" < calamari-s
 
 
 ## Install the build-time dependencies (for rpmbuild -bs)
-sudo yum-builddep -y dist/calamari.spec
+sudo yum-builddep -y dist/calamari-server.spec
 
 
 ## Create the source rpm
@@ -56,7 +56,7 @@ SRPM=$(readlink -f *.src.rpm)
 
 ## Build the binaries with mock
 echo "Building RPMs"
-sudo mock -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --resultdir=./dist/rpm/"%(dist)s"/"%(target_arch)s"/ ${SRPM}
+sudo mock -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --resultdir=./dist/rpm/ ${SRPM}
 
 
 ## Upload the created RPMs to chacra
@@ -65,7 +65,7 @@ chacra_endpoint="calamari/${BRANCH}/${GIT_COMMIT}/${DISTRO}/${RELEASE}"
 [ "$FORCE" = true ] && chacra_flags="--force" || chacra_flags=""
 
 # push binaries to chacra
-find ~/rpmbuild/ | egrep '\.rpm$' | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/$ARCH/
+find ./dist/rpm/ | egrep '\.rpm$' | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/$ARCH/
 
 # start repo creation
 $VENV/chacractl repo update ${chacra_endpoint}
index 68dda8711a6cf494a91252ef1601f5fed0592cac..1a2c0416de82d32c9bf6f78ccdee3be1a786c85d 100644 (file)
@@ -14,7 +14,7 @@
       - string:
           name: DISTROS
           description: "A list of distros to build for. Available options are: xenial, centos7, centos6, trusty, precise, wheezy, and jessie"
-          default: "centos7 precise xenial"
+          default: "centos7 xenial"
 
       - string:
           name: ARCHS