]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
scripts: add ceph-common-dbg to debug packages 22626/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 25 Jun 2018 20:06:02 +0000 (13:06 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 25 Jun 2018 20:06:02 +0000 (13:06 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/script/ceph-debug-docker.sh

index 083c0ef20c2bc5c882ae4b291a7d7cc9dd50fc90..bac2cee71aae4e67edb7ca34936ace31fe0e4eaa 100755 (executable)
@@ -48,8 +48,9 @@ function main {
     else
         branch="$1"
     fi
-    sha=${branch##*:}
-    if [ -z "$sha" ]; then
+    if [ "${branch%%:*}" != "${branch}" ]; then
+        sha=${branch##*:}
+    else
         sha=latest
     fi
     branch=${branch%%:*}
@@ -86,12 +87,12 @@ FROM ${env}
 
 WORKDIR /root
 RUN apt-get update --yes --quiet && \
-    apt-get install --yes --quiet screen wget gdb software-properties-common python-software-properties apt-transport-https
+    apt-get install --yes --quiet screen gdb software-properties-common apt-transport-https curl
 COPY cephdev.asc cephdev.asc
-RUN apt-key add cephdev.asc
-RUN add-apt-repository "\$(wget --quiet -O - https://shaman.ceph.com/api/repos/ceph/${branch}/${sha}/${env/://}/repo)" && \
+RUN apt-key add cephdev.asc && \
+    curl -L https://shaman.ceph.com/api/repos/ceph/${branch}/${sha}/${env/://}/repo | tee /etc/apt/sources.list.d/ceph_dev.list && \
     apt-get update --yes && \
-    apt-get install --yes --allow-unauthenticated ceph ceph-osd-dbg ceph-mds-dbg ceph-mgr-dbg ceph-mon-dbg ceph-fuse-dbg ceph-test-dbg radosgw-dbg
+    DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get --assume-yes -q --no-install-recommends install -o Dpkg::Options::=--force-confnew --allow-unauthenticated ceph ceph-osd-dbg ceph-mds-dbg ceph-mgr-dbg ceph-mon-dbg ceph-common-dbg ceph-fuse-dbg ceph-test-dbg radosgw-dbg
 EOF
         time run docker build $CACHE --tag "$tag" .
     else # try RHEL flavor