Code Pipes is designed to seamlessly integrate with various container sources, providing flexibility and convenience in managing containerized applications. It supports a wide range of popular Docker registries, including Dockerhub, GCR (Google Container Registry), ECR (Amazon Elastic Container Registry), and ACR (Azure Container Registry).
To use Dockerhub as a container source in Code Pipes, you need to set up your Dockerhub credentials. Follow these steps:
- Go to the Dockerhub website (https://hub.docker.com/) and sign in or create a new account if you don't have one.
- Once logged in, go to your account settings.
- Navigate to the "Security" or "Account Settings" section and find the "Access Tokens" or "API Keys" option.
- Generate a new access token or API key. Give it a name and optionally specify any necessary permissions.
- Once the token is generated, securely copy it. This token will serve as your Dockerhub credentials.
If you haven't created a GCR container repository, follow these steps:
- Go to the Google Cloud Console (https://console.cloud.google.com/) and select or create the project where you want to create the GCR repository.
- In the navigation menu, click on "Container Registry."
- Click on the "CREATE REPOSITORY" button.
- Provide a name for your repository.
- Optionally, you can specify a region for the repository.
- Click on the "CREATE" button to create the repository.
To use GCR as a container source in Code Pipes, you need to configure GCR credentials by creating a service account. This service account should have the following permissions assigned:
- Cloud Source Repositories: The service account should have at least "Cloud Source Repositories Viewer" role assigned to access the GCR repositories.
- Container Registry: The service account should have at least "Storage Object Viewer" role assigned to pull container images from GCR repositories.
By using the same service account with these permissions, you can seamlessly access GCR repositories and other Google Cloud Platform resources within Code Pipes.
If you haven't created an ECR container repository, follow these steps:
- Go to the AWS Management Console (https://console.aws.amazon.com/) and navigate to the ECR service.
- In the navigation pane, click on "Repositories."
- Click on the "CREATE REPOSITORY" button.
- Enter a name for your repository.
- Optionally, you can define a tag immutability setting or repository permissions.
- Click on the "CREATE REPOSITORY" button to create the repository.
To use ECR as a container source in Code Pipes, you can utilize the same AWS cloud credentials with the following permissions assigned to the IAM user or role:
- AmazonEC2ContainerRegistryReadOnly: The IAM user or role should have this policy attached to grant read-only access to ECR repositories.
These credentials will allow Code Pipes to authenticate and access your ECR repositories.
If you haven't created an ACR container repository (optional), follow these steps:
- Go to the Azure portal (https://portal.azure.com) and select or create the Azure subscription and resource group where you want to create the ACR.
- In the Azure portal, search for "Container registries" and select it.
- Click on the "+ Add" button to create a new container registry.
- Provide a name for your registry.
- Select the subscription, resource group, and region.
- Choose the pricing tier and SKU for the registry.
- Set the admin user access or enable Azure Active Directory authentication.
- Click on the "Review + Create" button and then click on "Create" to create the registry.
To use ACR as a container source in Code Pipes, you can utilize the same Azure cloud credentials with the following permissions assigned:
- AcrPull: The user or service principal should have this role assigned to grant read access to ACR repositories.
- AcrPush: The user or service principal should have this role assigned to grant read and write access to ACR repositories.
These credentials will enable Code Pipes to authenticate and access your ACR repositories.
By following these steps and assigning the specific permissions mentioned, you can acquire the necessary credentials for Dockerhub, GCR, ECR, and ACR, allowing you to authenticate and access these container sources within Code Pipes.
Updated 3 months ago