From: Sébastien Han Date: Wed, 17 May 2017 16:32:46 +0000 (+0200) Subject: ceph-docker-lint: start docker and use sudo X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f24200a5e292620ab763f863b9ae4f8dee942da;p=ceph-build.git ceph-docker-lint: start docker and use sudo yum does not start services after installation, so starting it and using sudo to call docker command. Signed-off-by: Sébastien Han --- diff --git a/ceph-docker-lint/build/build b/ceph-docker-lint/build/build index 9682e476..50b7bfc9 100755 --- a/ceph-docker-lint/build/build +++ b/ceph-docker-lint/build/build @@ -25,7 +25,7 @@ function check(){ while read -r filename; do pushd "$(dirname "$filename")" file=$(basename "$filename") - docker run -v "$(pwd)"/"$file":/"$file" koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file" + sudo docker run -v "$(pwd)"/"$file":/"$file" koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file" popd done return $? @@ -37,6 +37,7 @@ function main() { then sudo yum -y install epel-release sudo yum -y install docker jq + sudo systemctl start docker pull_request_id=${ghprbPullId:-$2} workspace=${WORKSPACE:-$1} else