reduce size of AB, AthAB, and atlasos images
As title says, migrate all RUN
commands into a single layer. As far as I can tell from the docker history
-- we can probably get the containers down to 2 gigs with these changes.
Lord Stark:~/ATLASSITDocker (master)$ docker history atlas/analysisbase:21.2.4
IMAGE CREATED CREATED BY SIZE COMMENT
b0dd63f54d92 9 days ago 1.08GB merge sha256:0f4a52429a005fa225b30f7999b278e68869002450186337bad10f9a706c1ed5 to sha256:32fe9f30a48a1001d0d12f0b83b2f3dd50e220046817b877768014c94e5e8fdd
<missing> 9 days ago /bin/sh -c #(nop) CMD ["/bin/sh" "-c" "ca... 0B
<missing> 9 days ago /bin/sh -c #(nop) COPY file:e5729bffe8f244... 0B
<missing> 9 days ago /bin/sh -c #(nop) COPY file:f61bbacf84c3aa... 0B
<missing> 9 days ago /bin/sh -c #(nop) WORKDIR /home/atlas 0B
<missing> 9 days ago /bin/sh -c #(nop) USER [atlas] 0B
<missing> 9 days ago |2 ANALYSISRELEASE=AnalysisBase_21.2.4_x86... 0B
<missing> 9 days ago |2 ANALYSISRELEASE=AnalysisBase_21.2.4_x86... 0B
<missing> 9 days ago /bin/sh -c #(nop) WORKDIR /root 0B
<missing> 9 days ago /bin/sh -c #(nop) USER [root] 0B
<missing> 9 days ago /bin/sh -c #(nop) ARG ANALYSISRELEASE=Ana... 0B
<missing> 9 days ago /bin/sh -c #(nop) ARG RELEASE=21.2.3 0B
<missing> 9 days ago 1.78GB merge sha256:454d2aa8d15a4d35198871de791caea11f2f3c4bb9b7511ac8f29e3e5e128a42 to sha256:0741567439608abbe3b24637be517c8290e2b324376aeb36e4c7ad8c5a6cc43a
<missing> 9 days ago /bin/sh -c #(nop) CMD ["/bin/sh" "-c" "/b... 0B
<missing> 9 days ago /bin/sh -c #(nop) COPY file:48d96d5c6184e4... 0B
<missing> 9 days ago /bin/sh -c wget https://cmake.org/files/v3... 0B
<missing> 9 days ago /bin/sh -c yum -y install which git wget t... 0B
<missing> 9 days ago /bin/sh -c #(nop) COPY multi:e5c3cca0a3b54... 0B
<missing> 9 days ago /bin/sh -c #(nop) WORKDIR /root 0B
<missing> 9 days ago /bin/sh -c #(nop) USER [root] 0B
<missing> 5 weeks ago 223MB Created by Image Factory
but I suspect most of the changes will need to be in the slc6-base image provided by CERN and I think that could be reduced in size. This is at least a first step in that direction?