Skip to content

Commit c825848

Browse files
committed
Add tests for umask to Dockerfile.test
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
1 parent f60cce5 commit c825848

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

images/base-glibc-busybox-bash/Dockerfile.test

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN [ "$( sh -lc 'printf world' )" = 'world' ] \
1717
printf '' \
1818
> /usr/local/env-activate.sh
1919

20+
# Check that the umask allows others to read+execute someoneelse's folders
21+
RUN [ "$( umask )" = '0022' ]
22+
2023
RUN arch=$(uname -m) \
2124
&& \
2225
wget --quiet \

images/base-glibc-debian-bash/Dockerfile.test

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN [ "$( sh -lc 'printf world' )" = 'world' ] \
1717
printf '' \
1818
> /usr/local/env-activate.sh
1919

20+
# Check that the umask allows others to read+execute someoneelse's folders
21+
RUN [ "$( umask )" = '0022' ]
22+
2023
# Check if all desired locales are there.
2124
RUN locale -a | grep -i 'c\.utf-\?8' \
2225
&& \

images/create-env/Dockerfile.test

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ RUN set -x && \
2929
>&2 printf 'found static libraries\n' ; exit 1 \
3030
; fi
3131

32+
# Check that the umask allows others to read+execute someoneelse's folders
33+
RUN [ "$( umask )" = '0022' ]
3234

3335
FROM "${base}" as build_bioconda_package
3436
RUN set -x && \

0 commit comments

Comments
 (0)