Creating a Container Registry
The following link shows how to setup an AWS ECR registry:
https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-create.html
Once the container registry is created, push your TDV images to that location. Refer to the chapter TDV Docker Container for more information on how to build your TDV image and push it to the registry. You may also refer to the following AWS ECR documentation for more details about how to push an image to a container registry:
https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html
Example:
| 1. | Login to AWS management console with appropriate IAM role/permissions to create an AWS ECR resource. |
| 2. | Create a private registry <ID>.dkr.ecr.<REGION>.amazonaws.com in region us-west-2 with repository name "tibco/tdvk8s". |
| 3. | Push TDV docker_k8s image to private registry. |
Login to the console on the Docker Server that has the "tibco/tdvk8s:8.6.0" image locally.
a. Configure local AWS CLI config files (i.e. $HOME/.aws/config and $HOME/.aws/credentials) with AWS Access Key ID and AWS Secret Access Key.
b. Run the following commands:
$docker login --username AWS -p $(aws ecr get-login-password --region us-west-2) <ID>.dkr.ecr.<REGION>.amazonaws.com
$docker tag tibco/tdvk8s:8.6.0 <ID>.dkr.ecr.<REGION>.amazonaws.com/tibco/tdvk8s:8.6.0
$docker push <ID>.dkr.ecr.<REGION>.amazonaws.com/tibco/tdvk8s:8.6.0
| 4. | Validate "tibco/tdvk8s:8.6.0" image now exists on |
https://<REGION>.console.aws.amazon.com/ecr/repositories/private/<ID>/tibco/tdvk8s?region=<REGION>