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 uri in wave inpect json output #70

Merged
merged 3 commits into from
May 21, 2024

Conversation

munishchouhan
Copy link
Member

This PR will add adapter in moshi to fix the serialization of LayerRef object

@munishchouhan munishchouhan linked an issue May 21, 2024 that may be closed by this pull request
@munishchouhan munishchouhan self-assigned this May 21, 2024
@munishchouhan
Copy link
Member Author

uri is present in json now:


munish.chouhan@Munishs-MacBook-Pro wave-cli % ./app/build/native/nativeCompile/wave -i ubuntu --inspect | jq
{
  "container": {
    "config": {
      "architecture": "amd64",
      "config": {
        "attachStderr": false,
        "attachStdin": false,
        "attachStdout": false,
        "cmd": [
          "/bin/bash"
        ],
        "entrypoint": [],
        "env": [
          "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "image": "sha256:2d6aba5b416f4e6f32e4a251566b93269dad188c03f609fe73cf00e69ae616ea",
        "tty": false
      },
      "container": "4329d013a36a05ea91cd3564d99c1f06eac0a753e4155730e274f7a87aa8bb4e",
      "created": "2024-04-29T16:38:03.122210017Z",
      "rootfs": {
        "diff_ids": [
          "sha256:80098e3d304cd7858ad97b310cd16083fbe6fab2968be7a988fc6894cb85dc25"
        ],
        "type": "layers"
      }
    },
    "digest": "sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15",
    "hostName": "https://registry-1.docker.io",
    "imageName": "library/ubuntu",
    "manifest": {
      "config": {
        "digest": "sha256:bf3dc08bfed031182827888bb15977e316ad797ee2ccb63b4c7a57fdfe7eb31d",
        "mediaType": "application/vnd.oci.image.config.v1+json",
        "size": 2297
      },
      "layers": [
        {
          "digest": "sha256:49b384cc7b4aa0dfd16ff7817ad0ea04f1d0a8072e62114efcd99119f8ceb9ed",
          "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
          "size": 28867545,
          "uri": "https://registry-1.docker.io/v2/library/ubuntu/blobs/sha256:49b384cc7b4aa0dfd16ff7817ad0ea04f1d0a8072e62114efcd99119f8ceb9ed"
        }
      ],
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "schemaVersion": 2
    },
    "reference": "latest",
    "registry": "docker.io"
  }
}

@munishchouhan munishchouhan requested a review from pditommaso May 21, 2024 16:06
Copy link
Contributor

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tricky!

@pditommaso pditommaso merged commit 08b17e4 into master May 21, 2024
2 checks passed
@pditommaso pditommaso deleted the 66-inspect-option-does-not-render-layer-uri branch May 21, 2024 18:08
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.

Inspect option does not render layer URI
2 participants