Skip to content

Commit

Permalink
Install the yq package
Browse files Browse the repository at this point in the history
Fedora 40 has a recent enough version of yq for our purposes; this
switches to the package instead of using go to install it.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and dfarrell07 committed Oct 7, 2024
1 parent 8dbf9c5 commit ed96522
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package/Dockerfile.shipyard-dapper-base
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH} PATH=/go/bin:/root/.l
# - Any unnecessary packages and executables
RUN dnf -y install --nodocs --setopt=install_weak_deps=False \
gcc git-core curl moby-engine make golang kubernetes-client \
findutils moreutils upx jq gitlint procps-ng pip\
qemu-user-static python3-jinja2-cli skopeo file unzip gh && \
findutils moreutils upx jq gitlint procps-ng pip \
qemu-user-static python3-jinja2-cli skopeo file unzip gh yq && \
rpm -e --nodeps containerd && \
rpm -qa "selinux*" | xargs -r rpm -e --nodeps && \
dnf -y clean all && \
Expand All @@ -64,8 +64,6 @@ RUN LINT_VERSION=$(awk '/golangci-lint/ { print $2 }' /tools.mod) && \
mv linux-${ARCH}/helm /go/bin/ && chmod a+x /go/bin/helm && rm -rf linux-${ARCH} && \
KIND_VERSION=$(awk '/sigs.k8s.io.kind/ { print $2 }' /tools.mod) && \
curl -Lo /go/bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-${ARCH}" && chmod a+x /go/bin/kind && \
YQ_VERSION=$(awk '/mikefarah.yq.v4/ { print $2 }' /tools.mod) && \
GOFLAGS="" go install -v github.com/mikefarah/yq/v4@${YQ_VERSION} && \
mkdir -p /usr/local/libexec/docker/cli-plugins && \
BUILDX_VERSION=$(awk '/docker.buildx/ { print $2 }' /tools.mod) && \
curl -L "https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-${ARCH}" -o /usr/local/libexec/docker/cli-plugins/docker-buildx && \
Expand Down

0 comments on commit ed96522

Please sign in to comment.