Skip to content

Commit

Permalink
Update .dockerignore, .gitignore, Dockerfile, config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Romero committed Jan 24, 2022
1 parent 67329bc commit ddebe10
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
.idea
.vscode
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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*

14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit ddebe10

Please sign in to comment.