*: fix crictl vendor

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-08-27 10:54:36 +02:00
parent a38419af88
commit 59ba89d64d
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
3 changed files with 26 additions and 25 deletions

View file

@ -77,7 +77,7 @@ RUN set -x \
&& rm -rf "$GOPATH"
# Install crictl
ENV CRICTL_COMMIT a2d0e8f7bc7e80111a7d79052ab9aca3469609aa
ENV CRICTL_COMMIT 16e6fe4d7199c5689db4630a9330e6a8a12cecd1
RUN set -x \
&& export GOPATH="$(mktemp -d)" \
&& git clone https://github.com/kubernetes-incubator/cri-tools.git "$GOPATH/src/github.com/kubernetes-incubator/cri-tools" \

View file

@ -131,6 +131,7 @@
git:
repo: https://github.com/kubernetes-incubator/cri-tools
dest: /root/src/github.com/kubernetes-incubator/cri-tools
version: 16e6fe4d7199c5689db4630a9330e6a8a12cecd1
async: 600
poll: 10
- name: git clone runc repo

View file

@ -236,14 +236,14 @@ function start_crio() {
"$CRIO_BINARY" --debug --config "$CRIO_CONFIG" & CRIO_PID=$!
wait_until_reachable
run crictl image status redis:alpine
run crictl inspecti redis:alpine
if [ "$status" -ne 0 ] ; then
crictl image pull redis:alpine
crictl pull redis:alpine
fi
REDIS_IMAGEID=$(crictl image status redis:alpine | head -1 | sed -e "s/ID: //g")
run crictl image status mrunalp/oom
REDIS_IMAGEID=$(crictl inspecti redis:alpine | head -1 | sed -e "s/ID: //g")
run crictl inspecti mrunalp/oom
if [ "$status" -ne 0 ] ; then
crictl image pull mrunalp/oom
crictl pull mrunalp/oom
fi
#
#
@ -256,63 +256,63 @@ function start_crio() {
#
#
REDIS_IMAGEID_DIGESTED="redis@sha256:03789f402b2ecfb98184bf128d180f398f81c63364948ff1454583b02442f73b"
run crictl image status $REDIS_IMAGEID_DIGESTED
run crictl inspecti $REDIS_IMAGEID_DIGESTED
if [ "$status" -ne 0 ]; then
crictl image pull $REDIS_IMAGEID_DIGESTED
crictl pull $REDIS_IMAGEID_DIGESTED
fi
#
#
#
run crictl image status runcom/stderr-test
run crictl inspecti runcom/stderr-test
if [ "$status" -ne 0 ] ; then
crictl image pull runcom/stderr-test:latest
crictl pull runcom/stderr-test:latest
fi
STDERR_IMAGEID=$(crictl image status runcom/stderr-test | head -1 | sed -e "s/ID: //g")
run crictl image status busybox
STDERR_IMAGEID=$(crictl inspecti runcom/stderr-test | head -1 | sed -e "s/ID: //g")
run crictl inspecti busybox
if [ "$status" -ne 0 ] ; then
crictl image pull busybox:latest
crictl pull busybox:latest
fi
BUSYBOX_IMAGEID=$(crictl image status busybox | head -1 | sed -e "s/ID: //g")
run crictl image status mrunalp/image-volume-test
BUSYBOX_IMAGEID=$(crictl inspecti busybox | head -1 | sed -e "s/ID: //g")
run crictl inspecti mrunalp/image-volume-test
if [ "$status" -ne 0 ] ; then
crictl image pull mrunalp/image-volume-test:latest
crictl pull mrunalp/image-volume-test:latest
fi
VOLUME_IMAGEID=$(crictl image status mrunalp/image-volume-test | head -1 | sed -e "s/ID: //g")
VOLUME_IMAGEID=$(crictl inspecti mrunalp/image-volume-test | head -1 | sed -e "s/ID: //g")
}
function cleanup_ctrs() {
run crictl ctr ls --quiet
run crictl ps --quiet
if [ "$status" -eq 0 ]; then
if [ "$output" != "" ]; then
printf '%s\n' "$output" | while IFS= read -r line
do
crictl ctr stop "$line"
crictl ctr rm "$line"
crictl stop "$line"
crictl rm "$line"
done
fi
fi
}
function cleanup_images() {
run crictl image ls --quiet
run crictl images --quiet
if [ "$status" -eq 0 ]; then
if [ "$output" != "" ]; then
printf '%s\n' "$output" | while IFS= read -r line
do
crictl image rm "$line"
crictl rmi "$line"
done
fi
fi
}
function cleanup_pods() {
run crictl sandbox ls --quiet
run crictl sandboxes --quiet
if [ "$status" -eq 0 ]; then
if [ "$output" != "" ]; then
printf '%s\n' "$output" | while IFS= read -r line
do
crictl sandbox stop "$line"
crictl sandbox rm "$line"
crictl stops "$line"
crictl rms "$line"
done
fi
fi