standalone build error: permission denied
On Ubuntu 22.04 (for me anyway) standalone builds fail. For example:
make standalone SCRAM_ARCH=slc6_amd64_gcc472 CMSSW_VERSION=CMSSW_5_3_32
Step 14/29 : RUN wget -O /opt/cms/bootstrap.sh http://cmsrep.cern.ch/cmssw/repos/bootstrap.sh && sh /opt/cms/bootstrap.sh setup -r cms -architecture ${SCRAM_ARCH} -server cmsrep.cern.ch -path ${CMS_INSTALL_DIR} && if [[ $SCRAM_ARCH = "slc5"* ]] || [[ $SCRAM_ARCH = "slc6"* ]]; then ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} install -y cms+local-cern-siteconf+sm111124; else wget -q https://github.com/cms-sw/siteconf/archive/master.tar.gz && tar -xzf master.tar.gz && mv siteconf-master SITECONF; fi && if [[ $CMSSW_VERSION = *"patch"* ]]; then export BASE_VERSION=$(echo "${CMSSW_VERSION}"| cut -d '_' -f -4); else export BASE_VERSION=${CMSSW_VERSION}; fi && ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw+${BASE_VERSION} && if [[ $CMSSW_VERSION = *"patch"* ]]; then ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw-patch+${CMSSW_VERSION}; fi && ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} clean
---> Running in 00d1a29a4445
--2022-11-16 16:39:31-- http://cmsrep.cern.ch/cmssw/repos/bootstrap.sh
Resolving cmsrep.cern.ch... 188.184.102.160
Connecting to cmsrep.cern.ch|188.184.102.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52781 (52K) [application/x-sh]
Saving to: `/opt/cms/bootstrap.sh'
0K .......... .......... .......... .......... .......... 97% 5.70M 0s
50K . 100% 2945G=0.009s
2022-11-16 16:39:31 (5.88 MB/s) - `/opt/cms/bootstrap.sh' saved [52781/52781]
mkdir: cannot create directory `/cvmfs/cms.cern.ch': Permission denied
The command '/bin/sh -c wget -O /opt/cms/bootstrap.sh http://cmsrep.cern.ch/cmssw/repos/bootstrap.sh && sh /opt/cms/bootstrap.sh setup -r cms -architecture ${SCRAM_ARCH} -server cmsrep.cern.ch -path ${CMS_INSTALL_DIR} && if [[ $SCRAM_ARCH = "slc5"* ]] || [[ $SCRAM_ARCH = "slc6"* ]]; then ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} install -y cms+local-cern-siteconf+sm111124; else wget -q https://github.com/cms-sw/siteconf/archive/master.tar.gz && tar -xzf master.tar.gz && mv siteconf-master SITECONF; fi && if [[ $CMSSW_VERSION = *"patch"* ]]; then export BASE_VERSION=$(echo "${CMSSW_VERSION}"| cut -d '_' -f -4); else export BASE_VERSION=${CMSSW_VERSION}; fi && ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw+${BASE_VERSION} && if [[ $CMSSW_VERSION = *"patch"* ]]; then ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw-patch+${CMSSW_VERSION}; fi && ${CMS_INSTALL_DIR}/common/cmspkg -a ${SCRAM_ARCH} clean' returned a non-zero code: 1
make: *** [Makefile:105: docker_build_standalone] Error 1