Skip to content

Commit ef8bb64

Browse files
committed
fix(ccbr_atacseq): rebase Dockerfile.v12 on v1.10 to avoid max layer depth
Combining all v11+v12 ops in one RUN layer keeps total overlay2 layer count identical to v11 (base_v1.10 + 5 layers) and avoids the 'failed to register layer: max depth exceeded' error seen when building on top of v11-feat. ⚡ generated using AI ⚡
1 parent 7a8962b commit ef8bb64

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

master_images/ccbr_atacseq/Dockerfile.v12

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nciccbr/ccbr_atacseq:v11-feat
1+
FROM nciccbr/ccbr_atacseq:v1.10
22

33
LABEL maintainer="Vishal Koparde *(kopardev on GitHub)*"
44
LABEL github_handle="kopardev"
@@ -17,11 +17,17 @@ ENV IMAGENAME=${IMAGENAME}
1717
ARG BASEIMAGENAME="000000"
1818
ENV BASEIMAGENAME=${BASEIMAGENAME}
1919

20-
# Install BiocT2T and TxDb.Hsapiens.NCBI.CHM13v2 for hs1/hs1_chrR T2T genome support
21-
RUN Rscript -e 'if (!requireNamespace("BiocManager", quietly=TRUE)) install.packages("BiocManager"); BiocManager::install("BiocT2T", ask=FALSE)' && \
20+
# Re-apply v11 tools (bedToGenePred, genePredToGtf) and add v12 BiocT2T/T2T TxDb
21+
# in a single RUN layer to stay within overlay2 max-depth limit
22+
WORKDIR /opt2
23+
RUN wget -q -O bedToGenePred http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64.v385/bedToGenePred && \
24+
chmod a+x bedToGenePred && \
25+
wget -q -O genePredToGtf http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64.v385/genePredToGtf && \
26+
chmod a+x /opt2/genePredToGtf && \
27+
Rscript -e 'if (!requireNamespace("BiocManager", quietly=TRUE)) install.packages("BiocManager"); BiocManager::install("BiocT2T", ask=FALSE)' && \
2228
Rscript -e 'BiocT2T::install_early_t2t_txdb()'
2329

24-
# Copy Dockerfile and other files in a single layer
30+
# Copy Dockerfile and set permissions in a single layer
2531
COPY ${DOCKERFILE} /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}
2632
RUN chmod -R a+rx /opt2 && chmod a+r /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}
2733

0 commit comments

Comments
 (0)