diff options
author | Patrick Donnelly <pdonnell@redhat.com> | 2018-06-25 22:06:02 +0200 |
---|---|---|
committer | Patrick Donnelly <pdonnell@redhat.com> | 2018-06-25 22:06:02 +0200 |
commit | fc41b9882249b4ad931731a772b29f4ea95ac706 (patch) | |
tree | 9d5a97983f1e0cb54c67c4903cd6e84469be68a1 /src | |
parent | Merge pull request #22693 from tspmelo/fix-lint-codelyzer (diff) | |
download | ceph-fc41b9882249b4ad931731a772b29f4ea95ac706.tar.xz ceph-fc41b9882249b4ad931731a772b29f4ea95ac706.zip |
scripts: add ceph-common-dbg to debug packages
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/script/ceph-debug-docker.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/script/ceph-debug-docker.sh b/src/script/ceph-debug-docker.sh index 083c0ef20c2..bac2cee71aa 100755 --- a/src/script/ceph-debug-docker.sh +++ b/src/script/ceph-debug-docker.sh @@ -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 |