Skip to content

Commit 06e9c95

Browse files
committed
btrfs-progs: ci: update Dockerfile CMD syntax
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]>
1 parent 8f580ad commit 06e9c95

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

ci/images/ci-centos-7-x86_64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COPY ./test-build .
2929
COPY ./run-tests .
3030
COPY ./devel.tar.gz .
3131

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

3434
# Continue with:
3535
# cd /tmp

ci/images/ci-centos-8-x86_64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ COPY ./test-build .
3232
COPY ./run-tests .
3333
COPY ./devel.tar.gz .
3434

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

3737
# Continue with:
3838
# cd /tmp

ci/images/ci-musl-i386/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN apk add wget
1616
COPY ./test-build .
1717
COPY ./devel.tar.gz .
1818

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

ci/images/ci-musl-x86_64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN apk add wget
1616
COPY ./test-build .
1717
COPY ./devel.tar.gz .
1818

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

ci/images/ci-openSUSE-Leap-15.3-x86_64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COPY ./run-tests .
2626
COPY ./devel.tar.gz .
2727

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

3131
# Continue with:
3232
# cd /tmp

ci/images/ci-openSUSE-Leap-15.6-x86_64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COPY ./run-tests .
2626
COPY ./devel.tar.gz .
2727

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

3131
# Continue with:
3232
# cd /tmp

ci/images/ci-openSUSE-tumbleweed-x86_64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ COPY ./test-build .
3333
COPY ./run-tests .
3434
COPY ./devel.tar.gz .
3535

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

3838
# Continue with:
3939
# cd /tmp

ci/images/ci-rockylinux-9-x86_64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COPY ./test-build .
2929
COPY ./run-tests .
3030
COPY ./devel.tar.gz .
3131

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

3434
# Continue with:
3535
# cd /tmp

0 commit comments

Comments
 (0)