-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finding out what packages are exploding the build #24
Comments
Removing tensorflow only slims things down another half gig ➜ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ohw-no-py-tensorflow latest 200d425d469f 52 seconds ago 5.3GB
ohw-cache-apt latest c646a0031f14 9 hours ago 5.81GB
ohw-cache latest 274e85773a32 9 hours ago 5.81GB
ohw latest d2014651c42b 10 hours ago 8.27GB |
What do you mean by exploding? We are not able to upload that? PS: let's remove tensorflow! |
I meant size in this case, but also didn't have permissions for uploading to Docker Hub. |
I'll remove tensorflow in #23 |
import json
from pathlib import Path
import pandas as pd
pkg_files = Path("/opt/conda/conda-meta/").glob("*.json")
paths = []
for pkg_file in pkg_files:
with pkg_file.open() as f:
pkg = json.load(f)
paths += pkg["paths_data"]["paths"]
df = pd.DataFrame(paths)
df = df.drop(
[
"path_type",
"sha256",
"sha256_in_prefix",
# "no_link",
"file_mode",
"prefix_placeholder",
],
axis=1,
)
df = df.dropna()
df = df.sort_values("size_in_bytes", ascending=False)
df It's also useful to include mamba in the environment for |
Here's a way to start analyzing what packages are causing the build to explode.
Caching some of the build with #23
@ocefpaf
The text was updated successfully, but these errors were encountered: