Skip to content

Commit d75f8cd

Browse files
authored
ci: fix sudo in build image (cvmfs#3816)
Rebuilding the build images caused sudo to fail, with an error reminiscent of apptainer/apptainer#2756 (although gh uses docker): ``` [100%] Built target auto.cvmfs sudo: PAM account management error: Authentication service cannot retrieve authentication info sudo: a password is required ``` The chmod fixes this issue, although it's not yet clear to me why.
1 parent 81633f0 commit d75f8cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/common/container/Dockerfile-dev

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ FROM gitlab-registry.cern.ch/cernvm/build-images/centos_x86_64:9
22

33
USER root
44

5+
# This is a workaround for a sudo error that started after an
6+
# upgrade to the build image. Similar to https://github.com/apptainer/apptainer/issues/2756 but not quite clear
7+
RUN chmod 0400 /etc/shadow
8+
59
RUN dnf install -y sudo autofs fuse fuse3 httpd wget lsof \
610
python python3-pip attr nc sqlite python3-mod_wsgi jq usbutils
711

0 commit comments

Comments
 (0)