Skip to content

Instantly share code, notes, and snippets.

@flomotlik
Created September 18, 2017 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flomotlik/774fa331e9f7d55c9b5e349d8b7ede44 to your computer and use it in GitHub Desktop.
Save flomotlik/774fa331e9f7d55c9b5e349d8b7ede44 to your computer and use it in GitHub Desktop.
AWSGit for pushing to CodeCommit
FROM alpine:latest
RUN apk add --no-cache --update \
python \
python-dev \
py-pip \
build-base \
git
RUN pip install awscli
COPY gitconfig /root/.gitconfig
COPY gitconfig /.gitconfig
LABEL io.whalebrew.name 'awsgit'
LABEL io.whalebrew.config.environment '["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "AWS_DEFAULT_REGION", "AWS_DEFAULT_PROFILE", "AWS_CONFIG_FILE"]'
LABEL io.whalebrew.config.volumes '["~/.aws:/.aws"]'
ENTRYPOINT ["git"]
[credential]
helper = !aws codecommit credential-helper $@
UseHttpPath = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment