X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fscript%2Fceph-debug-docker.sh;fp=src%2Fceph%2Fsrc%2Fscript%2Fceph-debug-docker.sh;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=0fb4d2726a8ed180118ed84fd45dbf962816d1f9;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/script/ceph-debug-docker.sh b/src/ceph/src/script/ceph-debug-docker.sh deleted file mode 100755 index 0fb4d27..0000000 --- a/src/ceph/src/script/ceph-debug-docker.sh +++ /dev/null @@ -1,114 +0,0 @@ -#!/bin/bash - -# This can be run from e.g. the senta machines which have docker available. You -# may need to run this script with sudo. -# -# Once you have booted into the image, you should be able to debug the core file: -# $ gdb -q /ceph/teuthology-archive/.../coredump/1500013578.8678.core -# -# You may want to install other packages (yum) as desired. -# -# Once you're finished, please delete old images in a timely fashion. - -set -e - -CACHE="" - -function run { - printf "%s\n" "$*" - "$@" -} - -function main { - eval set -- $(getopt --name "$0" --options 'h' --longoptions 'help,no-cache' -- "$@") - - while [ "$#" -gt 0 ]; do - case "$1" in - -h|--help) - printf '%s: [--no-cache] \n' "$0" - exit 0 - ;; - --no-cache) - CACHE="--no-cache" - shift - ;; - --) - shift - break - ;; - esac - done - - if [ -z "$1" ]; then - printf "specify the branch [default \"master\"]: " - read branch - if [ -z "$branch" ]; then - branch=master - fi - else - branch="$1" - fi - printf "branch: %s\n" "$branch" - - if [ -z "$2" ]; then - printf "specify the build environment [default \"centos:7\"]: " - read env - if [ -z "$env" ]; then - env=centos:7 - fi - else - env="$2" - fi - printf "env: %s\n" "$env" - - if [ -n "$SUDO_USER" ]; then - user="$SUDO_USER" - elif [ -n "$USER" ]; then - user="$USER" - else - user="$(whoami)" - fi - - image="${user}/ceph-ci:${branch}-${env/:/-}" - - T=$(mktemp -d) - pushd "$T" - if grep ubuntu <<<"$env" > /dev/null 2>&1; then - # Docker makes it impossible to access anything outside the CWD : / - cp -- /ceph/shaman/cephdev.asc . - cat > Dockerfile <