The Harbor Satellite project is currently in the Proof of Concept (PoC) stage. The primary functionality involves fetching images from a remote registry, transferring them to a local registry included with the Harbor Satellite, and then logging the transfer process. The goal of this issue is to develop comprehensive end-to-end (E2E) tests using the Dagger Go SDK to validate the workflow and ensure reliability.
Current Status:
[x] The Harbor Satellite build process has been successfully integrated with Dagger.
[x] Creating a Dagger container for dynamically generated example images.
[x] Setting up a temporary registry and uploading the images.
[x] Testing the Harbor Satellite's ability to fetch and store these images.
Implementation Details:
Create Example Images:
Use Dagger Go SDK to generate three container images on the fly.
Store these images.
Set Up Harbor Registry:
Use Dagger to instantiate a temporary Harbor registry container.
Ensure the registry is accessible for image storage and retrieval.
Build and Run Harbor Satellite:
Build and execute the Harbor Satellite within a Dagger container for consistency.
Fetch and Store Images:
Configure the Harbor Satellite to pull images from the temporary registry.
Store the fetched images in the satellite’s local registry.
Steps to Implement E2E Tests:
Generate Example Images:
Create a container environment using Dagger.
Generate Dockerfiles for three images and build them.
Set Up Harbor Registry:
Launch a Harbor registry container using Dagger.
Ensure it's accessible for image operations.
Push Images to Harbor Registry:
Push generated images to the Harbor registry.
Run Harbor Satellite:
Build and run the Harbor Satellite using Dagger.
Configure it to pull images from the registry.
Fetch and Store Images:
Pull images using the Harbor Satellite.
Store the images in the local registry and log the process.
Clean Up:
Tear down the Dagger environment and remove temporary containers and registries.
Expected Outcome:
By the end of this issue, we should have a set of E2E tests that validate the Harbor Satellite's ability to fetch and store images from a remote registry. These tests will ensure that the project is reliable and ready for further development and integration.
Background:
The Harbor Satellite project is currently in the Proof of Concept (PoC) stage. The primary functionality involves fetching images from a remote registry, transferring them to a local registry included with the Harbor Satellite, and then logging the transfer process. The goal of this issue is to develop comprehensive end-to-end (E2E) tests using the Dagger Go SDK to validate the workflow and ensure reliability.
Current Status:
Implementation Details:
Create Example Images:
Set Up Harbor Registry:
Build and Run Harbor Satellite:
Fetch and Store Images:
Steps to Implement E2E Tests:
Generate Example Images:
Set Up Harbor Registry:
Push Images to Harbor Registry:
Run Harbor Satellite:
Fetch and Store Images:
Clean Up:
Expected Outcome:
By the end of this issue, we should have a set of E2E tests that validate the Harbor Satellite's ability to fetch and store images from a remote registry. These tests will ensure that the project is reliable and ready for further development and integration.
References: