Skip to content

Commit

Permalink
Update Dockerfile, fix yq
Browse files Browse the repository at this point in the history
  • Loading branch information
leodotcloud committed Mar 24, 2022
1 parent e631ac4 commit eb33297
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:18.04
RUN sed -i 's:^path-exclude=/usr/share/man:#path-exclude=/usr/share/man:' /etc/dpkg/dpkg.cfg.d/excludes
RUN apt-get update && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get install --no-install-recommends -y \
arping \
arptables \
Expand All @@ -18,7 +19,6 @@ RUN apt-get update && \
iptables \
iputils-ping \
jq \
yq \
kmod \
ldap-utils \
less \
Expand Down Expand Up @@ -52,7 +52,9 @@ RUN apt-get update && \
curl -sLf https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl > /usr/local/bin/kubectl-1.18 && \
chmod +x /usr/local/bin/kubectl* && \
ln -s /usr/local/bin/kubectl-1.18 /usr/local/bin/kubectl && \
mkdir /root/.kube
wget https://github.com/mikefarah/yq/releases/download/v4.23.1/yq_linux_amd64 -O /usr/bin/yq && \
chmod +x /usr/bin/yq && \
mkdir -p /root/.kube

ENV LOGLEVEL_TAG v0.1
RUN curl -sfSL https://github.com/rancher/loglevel/releases/download/${LOGLEVEL_TAG}/loglevel-amd64-${LOGLEVEL_TAG}.tar.gz | tar xvzf - -C /usr/bin
Expand Down

0 comments on commit eb33297

Please sign in to comment.