diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..05fa97b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git +.idea +.vscode diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e1a3ed1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +.git +.idea +.vscode + +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* +*.terraform.lock.hcl* + +# Crash log files +crash.log + +# Ignore any .tfvars files that are generated automatically for each Terraform run. Most +# .tfvars files are managed as part of configuration and so should be included in +# version control. +# +# example.tfvars + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ec29d45 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM docker:19.03.12 + +DEBIAN_FRONTEND=noninteractive + +ADD config.json /root/.docker/config.json +# ADD docker-credential-ecr-login /usr/bin/docker-credential-ecr-login + +RUU sudo apt-get update && apt-get install -y \ + amazon-ecr-credential-helper \ + && rm -rf /var/lib/apt/lists/* + +RUN chmod a+x /usr/bin/docker-credential-ecr-login + +CMD ["echo", "This is a 'Purpose Built Image', It is not meant to be ran directly"] diff --git a/config.json b/config.json new file mode 100644 index 0000000..14a3d4e --- /dev/null +++ b/config.json @@ -0,0 +1,9 @@ +{ + "credHelpers" : { + "public.ecr.aws": "ecr-login", + "109318180537.dkr.ecr.us-east-1.amazonaws.com": "ecr-login", + "109318180537.dkr.ecr.us-west-2.amazonaws.com": "ecr-login", + "916025176607.dkr.ecr.us-east-1.amazonaws.com": "ecr-login", + "916025176607.dkr.ecr.us-west-2.amazonaws.com": "ecr-login" + } +}