為何我的工具鏈套件太大?
當您嘗試建立工具鏈時,它會在 Containerize 階段失敗。
您會收到一則訊息,指出您的套件太大。 您的訊息類似於下列範例。
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.
當 Code Engine 從本端來源建置原始碼時,會壓縮來源並載入至 IBM Cloud Container Registry。 如果壓縮檔的大小超過 100 MB,則會拒絕套件。
您可以透過為本端目錄建立 .ceignore 檔案來解決此問題。 若要找出套件中包含哪些檔案,請將 pipeline-debug 環境內容設為 1 來啟用追蹤,重新執行工具鏈,然後檢查日誌檔。
如需設定 pipeline-debug 環境內容的相關資訊,請參閱 建立管線的除錯日誌檔。
如需建立 .ceignore 檔案的相關資訊,請參閱 準備來源位置。