Skip to content

Commit

Permalink
btrfs-progs: ci: update Dockerfile CMD syntax
Browse files Browse the repository at this point in the history
Docker warns about CMD syntax, which is harmless in our case but let's
fix the warning by using the json (quoted strings in array) syntax.

  JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 29)

Explained in https://docs.docker.com/reference/build-checks/json-args-recommended .

Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kdave committed Feb 11, 2025
1 parent 27d2b28 commit dccd2f6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ci/images/ci-centos-7-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ COPY ./test-build .
COPY ./run-tests .
COPY ./devel.tar.gz .

CMD ./test-build devel --disable-documentation --disable-libudev
CMD ["./test-build", "devel", "--disable-documentation", "--disable-libudev"]

# Continue with:
# cd /tmp
Expand Down
2 changes: 1 addition & 1 deletion ci/images/ci-centos-8-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY ./test-build .
COPY ./run-tests .
COPY ./devel.tar.gz .

CMD ./test-build devel --disable-documentation --disable-libudev --disable-zoned
CMD ["./test-build", "devel", "--disable-documentation", "--disable-libudev", "--disable-zoned"]

# Continue with:
# cd /tmp
Expand Down
2 changes: 1 addition & 1 deletion ci/images/ci-musl-i386/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN apk add wget
COPY ./test-build .
COPY ./devel.tar.gz .

CMD ./test-build devel --disable-documentation --disable-backtrace --disable-libudev
CMD ["./test-build", "devel", "--disable-documentation", "--disable-backtrace", "--disable-libudev"]
2 changes: 1 addition & 1 deletion ci/images/ci-musl-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN apk add wget
COPY ./test-build .
COPY ./devel.tar.gz .

CMD ./test-build devel --disable-documentation --disable-backtrace --disable-libudev
CMD ["./test-build", "devel", "--disable-documentation", "--disable-backtrace", "--disable-libudev"]
2 changes: 1 addition & 1 deletion ci/images/ci-openSUSE-Leap-15.3-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ COPY ./run-tests .
COPY ./devel.tar.gz .

# The blkzoned.h exists but blk_zone.capacity is missing, disable zoned mode explicitly
CMD ./test-build devel --disable-documentation --disable-zoned
CMD ["./test-build", "devel", "--disable-documentation", "--disable-zoned"]

# Continue with:
# cd /tmp
Expand Down
2 changes: 1 addition & 1 deletion ci/images/ci-openSUSE-Leap-15.6-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ COPY ./run-tests .
COPY ./devel.tar.gz .

# The blkzoned.h exists but blk_zone.capacity is missing, disable zoned mode explicitly
CMD ./test-build devel --disable-documentation --disable-zoned
CMD ["./test-build", "devel", "--disable-documentation", "--disable-zoned"]

# Continue with:
# cd /tmp
Expand Down
2 changes: 1 addition & 1 deletion ci/images/ci-openSUSE-tumbleweed-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY ./test-build .
COPY ./run-tests .
COPY ./devel.tar.gz .

CMD ./test-build devel --disable-documentation
CMD ["./test-build", "devel", "--disable-documentation"]

# Continue with:
# cd /tmp
Expand Down
2 changes: 1 addition & 1 deletion ci/images/ci-rockylinux-9-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ COPY ./test-build .
COPY ./run-tests .
COPY ./devel.tar.gz .

CMD ./test-build devel --disable-documentation
CMD ["./test-build", "devel", "--disable-documentation"]

# Continue with:
# cd /tmp
Expand Down

0 comments on commit dccd2f6

Please sign in to comment.