Skip to content

Commit

Permalink
update yq version
Browse files Browse the repository at this point in the history
  • Loading branch information
icodex committed Nov 17, 2021
1 parent 268d7c5 commit a17a7f8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile.os.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN yum install -q -y ${BUILD_TOOLS} \

WORKDIR /centos/$OS_VERSION/os
COPY packages.yaml .
COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq
RUN yq eval '.common[],.yum[],.centos7[],.kubespray.common[],.kubespray.yum[]' packages.yaml > packages.list

RUN ARCH=$(uname -m) \
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.os.centos8
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN ARCH=$(uname -m) \

WORKDIR /centos/$OS_VERSION/os
COPY packages.yaml .
COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq
RUN yq eval '.common[],.yum[],.centos8[],.kubespray.common[],.kubespray.yum[]' packages.yaml > packages.list

RUN ARCH=$(uname -m) \
Expand Down
3 changes: 1 addition & 2 deletions build/Dockerfile.os.debian10
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ RUN ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') \
WORKDIR /debian/${TARGETARCH}
COPY packages.yaml .

COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq
RUN yq eval '.common[],.apt[],.kubespray.common[],.kubespray.apt[],.debian10[]' packages.yaml > packages.list \
&& dpkg --get-selections | grep -v deinstall | cut -f1 | cut -d ':' -f1 >> packages.list \
&& sort -u packages.list | xargs apt-get install --reinstall --print-uris | awk -F "'" '{print $2}' | grep -v '^$' | sort -u > packages.urls
Expand Down
3 changes: 1 addition & 2 deletions build/Dockerfile.os.debian9
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ RUN ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') \
WORKDIR /debian/${TARGETARCH}
COPY packages.yaml .

COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq
RUN yq eval '.common[],.apt[],.kubespray.common[],.kubespray.apt[],.debian9[]' packages.yaml > packages.list \
&& dpkg --get-selections | grep -v deinstall | cut -f1 | cut -d ':' -f1 >> packages.list \
&& sort -u packages.list | xargs apt-get install --reinstall --print-uris | awk -F "'" '{print $2}' | grep -v '^$' | sort -u > packages.urls
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.os.ubuntu1804
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') \
WORKDIR /ubuntu/${TARGETARCH}
COPY packages.yaml .

COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq
RUN yq eval '.common[],.apt[],.kubespray.common[],.kubespray.apt[],.ubuntu[]' packages.yaml > packages.list \
&& dpkg --get-selections | grep -v deinstall | cut -f1 | cut -d ':' -f1 >> packages.list \
&& sort -u packages.list | xargs apt-get install --reinstall --print-uris | awk -F "'" '{print $2}' | grep -v '^$' | sort -u > packages.urls
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.os.ubuntu2004
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') \
WORKDIR /ubuntu/${TARGETARCH}
COPY packages.yaml .

COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq
RUN yq eval '.common[],.apt[],.kubespray.common[],.kubespray.apt[],.ubuntu[]' packages.yaml > packages.list \
&& dpkg --get-selections | grep -v deinstall | cut -f1 | cut -d ':' -f1 >> packages.list \
&& sort -u packages.list | xargs apt-get install --reinstall --print-uris | awk -F "'" '{print $2}' | grep -v '^$' | sort -u > packages.urls
Expand Down
2 changes: 1 addition & 1 deletion build/base/Dockerfile.fedora33
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN dnf install -q -y ${BUILD_TOOLS} \
&& dnf makecache -q

WORKDIR /fedora/$OS_VERSION/os
COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq
2 changes: 1 addition & 1 deletion build/base/Dockerfile.fedora34
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ RUN dnf install -q -y ${BUILD_TOOLS} \
&& dnf makecache -q

WORKDIR /fedora/$OS_VERSION/os
COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
COPY --from=mikefarah/yq:4.14.2 /usr/bin/yq /usr/bin/yq

0 comments on commit a17a7f8

Please sign in to comment.