Open abudavis opened 6 months ago
Hi,
In terms of the issue around layers, I would recommend putting multiple of your commands onto a single RUN command - this will enable you to perform a number of your commands in a single layer. This is a great blog all around developing effecting images - https://emmer.dev/blog/reducing-docker-layers.
The size of the image is something we are looking at in the future. As you will see in this repo we have got some experimental work around reducing the image sizes in https://github.com/ot4i/ace-docker/tree/main/experimental/ace-minimal. Is there a size of image that you think is the max target. For this issue I would recommend raising an Idea l in https://integration-development.ideas.ibm.com/ideas/?project=APPC.
Note this repo is not designed for support tickets for CP4I or ACE, it's purely for the samples provided in this repo.
Hi,
In terms of the issue around layers, I would recommend putting multiple of your commands onto a single RUN command - this will enable you to perform a number of your commands in a single layer. This is a great blog all around developing effecting images - https://emmer.dev/blog/reducing-docker-layers.
The size of the image is something we are looking at in the future. As you will see in this repo we have got some experimental work around reducing the image sizes in https://github.com/ot4i/ace-docker/tree/main/experimental/ace-minimal. Is there a size of image that you think is the max target. For this issue I would recommend raising an Idea l in https://integration-development.ideas.ibm.com/ideas/?project=APPC.
Note this repo is not designed for support tickets for CP4I or ACE, it's purely for the samples provided in this repo.
Thank you for the quick reply and suggestions. The image size is starting to become a big problem especially since the ACE + ACE Manufacturing pack (now supports container deployments) image is large with our EDGE sites having very limited local storage/ephemeral storage. I would think the image size would be within 500MB at the most which isn't the case with ACE at the moment.
Platform: CP4I 2022.2.1 on Openshift 4.12 ACE: 12.0.11.2 LTS
@trevor-dolby-at-ibm-com
We are a customer based out of Europe and have been using ACE on Cloud Pak since 2019 on Openshift where we run 100's of ACE pods. Our main concern is the size of the ACE docker image. The image actually becomes much larger in our production as we use a docker file to install drivers, scripts and other stuff, and there seems to be a limit on the number of docker instructions (we hit upon an error), we think the docker layers have a limit in combination with the image size. I know there exists a feature of switching off stuff you dont need but that doesn't seem to make dramatic change to the image size.
Since IBM acquired web methods, I'd like to say for comparison, webmethods has a docker image size of 350MB. I would like to know if there is some way of reducing the already large ACE image smaller (may be 100's of MB instead of 1GB+) while still being supported by IBM or if this may be in the future roadmap?
Please find a sample docker instructions we use in our build config attached, any suggestions to improve these docker instructions would also be great!
https://hub.docker.com/layers/softwareag/webmethods-microservicesruntime/10.15.0.1/images/sha256-a0eba62e2f580591aa18d6202f58087b2c6a01c25609846b285e2fb5dfd99828