Copy operation is very slow during a build from Dockerfile with Buildah in OpenShift 4
Issue
Recently, the generation of the image by s2i using as imagestream
redhat-openjdk18-openshift: 1.4
from a binary is taking a long time , the average time before was 30 seconds, now it is more than 3 minutes
oc new-build --name=my_app --image-stream=redhat-openjdk18-openshift:1.4 --binary
oc start-build my_app --from-file=./my_app1.0.6.jar --follow
STEP 4: USER root
STEP 5: COPY upload/src /tmp/src
STEP 6: RUN chown -R 185:0 /tmp/src
STEP 7: USER 185
STEP 8: RUN /usr/local/s2i/assemble
Environment
- Red Hat OpenShift Container Platform
- 4.3
- 4.4
- 4.5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.