You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the creport.json generated from the slim profile command as an input for the slim build. Keep only the file paths from the creport.json file
Actual Behavior
creport.json file is not picked up from the arguments
Steps to Reproduce the Problem
Perform image profiling using the slim profile command and generate artifacts in a local folder.
Command: slim profile --target <target_image> --env-file <env_file_path> --copy-meta-artifacts profile_artifacts
Number of file_paths in profile_artifacts/creport.json file = 44
Use the build command with the required arguments to build a slim image.
Command: slim build --image <target_image> --tag <slim_tag> --include-paths-creport-file profile_artifacts/creport.json --http-probe-off=true --copy-meta-artifacts build_artifacts --continue-after 5 --env-file <env_file>
Number of file_paths in profile_artifacts/creport.json file = 5503
size.original='961 MB' size.optimized='458 MB'
Expected slim image size: < 20 MB can be achieved with http-probe enabled. However, as http probing was already done during profiling, I don't want to redo it.
Specifications
Version: slim version linux/amd64|Transformer|1.40.11|1b271555882eacdfb4e6598d6d0552e9b9b1449b|2024-02-02_01:36:22PM
Platform: linux x64
The text was updated successfully, but these errors were encountered:
Expected Behavior
Use the
creport.json
generated from theslim profile
command as an input for theslim build
. Keep only the file paths from thecreport.json
fileActual Behavior
creport.json
file is not picked up from the argumentsSteps to Reproduce the Problem
Command:
slim profile --target <target_image> --env-file <env_file_path> --copy-meta-artifacts profile_artifacts
profile_artifacts/creport.json
file =44
Command:
slim build --image <target_image> --tag <slim_tag> --include-paths-creport-file profile_artifacts/creport.json --http-probe-off=true --copy-meta-artifacts build_artifacts --continue-after 5 --env-file <env_file>
profile_artifacts/creport.json
file =5503
Specifications
slim version linux/amd64|Transformer|1.40.11|1b271555882eacdfb4e6598d6d0552e9b9b1449b|2024-02-02_01:36:22PM
The text was updated successfully, but these errors were encountered: