Skip to content

Commit

Permalink
don't use go install to install cri-tools
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hunt <pehunt@redhat.com>
  • Loading branch information
haircommander committed Nov 7, 2019
1 parent 23680d6 commit 4e85ef7
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions contrib/test/integration/build/cri-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@
version: "{{ cri_tools_git_version }}"
force: "{{ force_clone | default(False) | bool}}"

- name: install crictl
command: "/usr/bin/go install github.com/kubernetes-sigs/cri-tools/cmd/crictl"
- name: build cri-tools
make:
chdir: "{{ ansible_env.GOPATH }}/src/github.com/kubernetes-sigs/cri-tools"

- name: install critest
command: "/usr/bin/go test -c github.com/kubernetes-sigs/cri-tools/cmd/critest -o {{ ansible_env.GOPATH }}/bin/critest"

- name: link crictl
file:
src: "{{ ansible_env.GOPATH }}/bin/crictl"
dest: /usr/bin/crictl
state: link

- name: link critest
- name: link crictl and critest
file:
src: "{{ ansible_env.GOPATH }}/bin/critest"
dest: /usr/bin/critest
src: "{{ ansible_env.GOPATH }}/src/github.com/kubernetes-sigs/cri-tools/_output/{{ item }}"
dest: "/usr/bin/{{ item }}"
state: link
loop:
- "critest"
- "crictl"

0 comments on commit 4e85ef7

Please sign in to comment.