Skip to content

Commit

Permalink
Implement ImageManager trait for docker use
Browse files Browse the repository at this point in the history
- Changed docker.rs to contain the implementation of ImageManager trait.
  The DockerImageManager struct uses the old logic with shiplift.
- Changed lib.rs to use a runtime-set image manager, which can be oci or
  docker, depending if the new --oci-uri flag is used or not.
- Refactored the 'inspect_image' method to return OCI-compliant image
  metadata in case OciImageManager is used, instead of a Docker-specific one.
- Changed enclave_build/src/main.rs to include the new additions.
- Matched the OCI behavior by pulling or building the Docker image on
  manager creation based on the present arguments.

Signed-off-by: Calin-Alexandru Coman <calincom@amazon.com>
Signed-off-by: Raul-Ovidiu Moldovan <raulmldv@amazon.com>
  • Loading branch information
Calin-Alexandru Coman authored and root committed May 26, 2023
1 parent 5476ff4 commit d9057c5
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 270 deletions.
Loading

0 comments on commit d9057c5

Please sign in to comment.