Skip to content
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

Add --no-cache option in lume pull #67

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

aktech
Copy link
Contributor

@aktech aktech commented Mar 24, 2025

This implements #66

@aktech aktech changed the title Add --no-cache option in lume pull Add --no-cache option in lume pull Mar 24, 2025
@aktech
Copy link
Contributor Author

aktech commented Mar 24, 2025

Works fine:

With "noCache": false

[2025-03-24T19:45:20Z] INFO: Parsed request method=POST path=/lume/pull body={
    "image": "macos-sequoia-vanilla:latest",
    "name": "my-vm-name",
    "registry": "ghcr.io",
    "organization": "trycua",
    "noCache": false
  } headers=["Host": "localhost:3000", "User-Agent": "curl/8.7.1", "Content-Length": "154", "Accept": "*/*", "Content-Type": "application/json"]
[2025-03-24T19:45:20Z] INFO: Pulling image registry=ghcr.io image=macos-sequoia-vanilla:latest name=my-vm-name organization=trycua
[2025-03-24T19:45:20Z] INFO: Getting registry authentication token
[2025-03-24T19:45:20Z] INFO: Fetching Image manifest
[2025-03-24T19:45:21Z] INFO: Pulling image repository=macos-sequoia-vanilla manifest_id=sha256_76f244a3090566b02220da75b66c6239e44550b6b06537ca39b1939ccdb0735d
[2025-03-24T19:45:21Z] INFO: Checking cache for manifest ID: sha256_76f244a3090566b02220da75b66c6239e44550b6b06537ca39b1939ccdb0735d
[2025-03-24T19:45:21Z] INFO: Checking for old versions of image to clean up image=macos-sequoia-vanilla current_manifest_id=sha256_76f244a3090566b02220da75b66c6239e44550b6b06537ca39b1939ccdb0735d
[2025-03-24T19:45:21Z] INFO: Cache miss or invalid cache, setting up new cache
[2025-03-24T19:45:21Z] INFO: Total download size: 42.98 GB
[2025-03-24T19:45:21Z] INFO: Processing Image layers
[2025-03-24T19:45:21Z] INFO: This may take several minutes depending on the image size and your internet connection. Please wait...
[2025-03-24T19:45:36Z] INFO: Downloading Image Progress: 1%
[2025-03-24T19:45:39Z] INFO: Downloading Image Progress: 2%
[2025-03-24T19:45:48Z] INFO: Downloading Image Progress: 3%
[2025-03-24T19:45:49Z] INFO: Downloading Image Progress: 4%

With "noCache": true

(and checked ~/.lume/cache/ghcr/trycua, was empty)

[2025-03-24T19:40:42Z] INFO: Parsed request method=POST body={
    "image": "macos-sequoia-vanilla:latest",
    "name": "my-vm-name",
    "registry": "ghcr.io",
    "organization": "trycua",
    "noCache": true
  } path=/lume/pull headers=["Content-Length": "153", "Host": "localhost:3000", "Content-Type": "application/json", "User-Agent": "curl/8.7.1", "Accept": "*/*"]
[2025-03-24T19:40:42Z] INFO: Pulling image organization=trycua name=my-vm-name registry=ghcr.io image=macos-sequoia-vanilla:latest
[2025-03-24T19:40:42Z] INFO: Getting registry authentication token
[2025-03-24T19:40:43Z] INFO: Fetching Image manifest
[2025-03-24T19:40:43Z] INFO: Pulling image repository=macos-sequoia-vanilla manifest_id=sha256_76f244a3090566b02220da75b66c6239e44550b6b06537ca39b1939ccdb0735d
[2025-03-24T19:40:43Z] INFO: Checking cache for manifest ID: sha256_76f244a3090566b02220da75b66c6239e44550b6b06537ca39b1939ccdb0735d
[2025-03-24T19:40:43Z] INFO: Skipping cache setup due to noCache option
[2025-03-24T19:40:43Z] INFO: Total download size: 42.98 GB
[2025-03-24T19:40:43Z] INFO: Processing Image layers
[2025-03-24T19:40:43Z] INFO: This may take several minutes depending on the image size and your internet connection. Please wait...
[2025-03-24T19:40:54Z] INFO: Downloading Image Progress: 1%
[2025-03-24T19:41:07Z] INFO: Downloading Image Progress: 2%
[2025-03-24T19:41:15Z] INFO: Downloading Image Progress: 3%
[2025-03-24T19:41:17Z] INFO: Downloading Image Progress: 4%

Same for the CLI.

@f-trycua f-trycua merged commit ca4cc90 into trycua:main Mar 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants