Skip to content

Commit

Permalink
ci: prevent cri-o installation script fail.
Browse files Browse the repository at this point in the history
Fix:
- The script does not fetch before checkout.
- It fails if go-md2man symlink already exist.

Fixes: clearcontainers#961

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
  • Loading branch information
jcvenegas committed Apr 3, 2018
1 parent 0ff37fa commit 6fcfdd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/install_crio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [ ! -d "$GOBIN" ]
then
mkdir -p "$GOBIN"
fi
ln -s $(command -v go-md2man) "$GOBIN"
ln -sf $(command -v go-md2man) "$GOBIN"

echo "Get CRI Tools"
critools_repo="github.com/kubernetes-incubator/cri-tools"
Expand Down Expand Up @@ -62,6 +62,7 @@ popd
echo "Install runc for CRI-O"
go get -d github.com/opencontainers/runc
pushd "${GOPATH}/src/github.com/opencontainers/runc"
git fetch
git checkout "$runc_version"
make
sudo -E install -D -m0755 runc "/usr/local/bin/crio-runc"
Expand Down

0 comments on commit 6fcfdd6

Please sign in to comment.