Skip to content

Commit b821291

Browse files
authored
Merge pull request #143 from ErikJiang/update_os_pkg_build
Remove the xarg way to traverse the package list
2 parents 012451e + 365cfa0 commit b821291

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/os-packages/Dockerfile.centos7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY --from=mikefarah/yq:4.27.2 /usr/bin/yq /usr/bin/yq
1212
RUN yq eval '.base[],.extras[],.docker.centos7[]' packages.yml > packages.list
1313

1414
RUN ARCH=$(uname -m) \
15-
&& sort -u packages.list | xargs repotrack -p ${ARCH} \
15+
&& while read -r line; do repotrack -p ${ARCH} ${line}; done <<<"$(sort -u packages.list)" \
1616
&& createrepo -d ${ARCH}
1717

1818
FROM scratch

build/os-packages/Dockerfile.centos8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ COPY --from=mikefarah/yq:4.27.2 /usr/bin/yq /usr/bin/yq
1616
RUN yq eval '.base[],.extras[],.docker.centos8[]' packages.yml > packages.list
1717

1818
RUN ARCH=$(uname -m) \
19-
&& sort -u packages.list | xargs repotrack --destdir ${ARCH} \
19+
&& while read -r line; do repotrack --destdir ${ARCH} ${line}; done <<<"$(sort -u packages.list)" \
2020
&& createrepo_c ${ARCH} \
2121
&& repo2module -s stable ${ARCH} ${ARCH}/modules.yaml \
2222
&& modifyrepo_c --mdtype=modules ${ARCH}/modules.yaml ${ARCH}/repodata

0 commit comments

Comments
 (0)