Commit d9057c5
Implement ImageManager trait for docker use
- 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 <[email protected]>
Signed-off-by: Raul-Ovidiu Moldovan <[email protected]>1 parent 5476ff4 commit d9057c5
File tree
5 files changed
+340
-270
lines changed- enclave_build/src
- src
5 files changed
+340
-270
lines changed
0 commit comments