IBM Cloud Docs
Why is my toolchain package too large?

Why is my toolchain package too large?

When you try to create a toolchain, it fails at the Containerize stage.

You receive a message that your package is too large. Your message is similar to the following example.

Unable to upload packaged files. Package is too large. For details on how to ignore certain file patterns from within your source code by using the '.ceignore' file, visit https://cloud.ibm.com/docs/codeengine?topic=codeengine-plan-build#build-plan-repo.

When Code Engine builds source code from a local source, the source is compressed and loaded into IBM Cloud Container Registry. If the size of the compressed file is more than 100 MB, the package is rejected.

You can resolve this issue by creating a .ceignore file for your local directory. To find out what files are being included in your package, enable traces by setting pipeline-debug environment property to 1, run your toolchain again, and then check the log files.

For more information about setting the pipeline-debug environment property, see Creating a debug log file for your pipeline.

For more information about creating a .ceignore file, see Prepare your source location.