Sign inSign up

nikrofill/docker-aws-cli

By nikrofill

Updated 10 months ago

Image
0

858

nikrofill/docker-aws-cli repository overview

That image includes:

  1. Docker latest
  2. AWS Cli

It was made to make the process of building images through the pipeline more easy. It will help to make a build and push to your container registry. You can include it in your GitLab pipeline with a sample of code above:

.Build:
    stage: build
    services:
	    - docker:dind
    image:
	    name: nikrofill/docker-aws-cli:latest
	    entrypoint: [""]
    variables:
	    DOCKER_HOST: tcp://docker:2375
	    DOCKER_TLS_CERTDIR: ""
	    GIT_STRATEGY: fetch
	    GIT_SUBMODULE_STRATEGY: recursive
    script:
	    - aws ecr get-login-password --region AWS_REGION | docker login --username AWS --password-stdin REGISTRY_HOST
	    - docker build --tag IMAGE_TAG .
	    - docker push IMAGE_TAG
    tags:
	    - gitlab-org-docker
	   

Do not forget update:

  • AWS_REGION
  • REGISTRY_HOST
  • IMAGE_TAG

Tag summary

Content type

Image

Digest

sha256:fd2ab6ed7

Size

195.6 MB

Last updated

10 months ago

docker pull nikrofill/docker-aws-cli