Skip to content

Commit

Permalink
use standard unix path to crictl and remove unnecessary version env var
Browse files Browse the repository at this point in the history
Signed-off-by: Kate Goldenring <[email protected]>
  • Loading branch information
kate-goldenring committed Nov 15, 2021
1 parent db9270e commit 60743e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build/containers/Dockerfile.agent
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends libssl-dev open
COPY ./target/${CROSS_BUILD_TARGET}/${BUILD_TYPE}/agent /agent

# Install crictl
RUN VERSION="v1.17.0" && \
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.17.0/crictl-v1.17.0-linux-amd64.tar.gz --output crictl-v1.17.0-linux-amd64.tar.gz &&\
RUN curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.17.0/crictl-v1.17.0-linux-amd64.tar.gz --output crictl-v1.17.0-linux-amd64.tar.gz &&\
tar zxvf crictl-v1.17.0-linux-amd64.tar.gz -C /usr/local/bin && \
rm -f crictl-v1.17.0-linux-amd64.tar.gz && \
apt-get remove -y curl ca-certificates && apt-get clean
Expand Down
3 changes: 1 addition & 2 deletions build/containers/Dockerfile.agent-full
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ LABEL org.opencontainers.image.source https://github.com/project-akri/akri
RUN apt-get update && apt-get install -y --no-install-recommends libssl-dev openssl curl ca-certificates && apt-get clean

# Install crictl
RUN VERSION="v1.17.0" && \
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.17.0/crictl-v1.17.0-linux-amd64.tar.gz --output crictl-v1.17.0-linux-amd64.tar.gz &&\
RUN curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.17.0/crictl-v1.17.0-linux-amd64.tar.gz --output crictl-v1.17.0-linux-amd64.tar.gz &&\
tar zxvf crictl-v1.17.0-linux-amd64.tar.gz -C /usr/local/bin && \
rm -f crictl-v1.17.0-linux-amd64.tar.gz && \
apt-get remove -y curl ca-certificates && apt-get clean
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/templates/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
value: {{ .Values.debugEcho.configuration.shared | quote }}
{{- end }}
- name: HOST_CRICTL_PATH
value: unix:///usr/local/bin/crictl
value: /usr/local/bin/crictl
- name: HOST_RUNTIME_ENDPOINT
value: unix:///host/var/run/dockershim.sock
- name: HOST_IMAGE_ENDPOINT
Expand Down

0 comments on commit 60743e4

Please sign in to comment.