Created
September 18, 2017 13:35
-
-
Save flomotlik/774fa331e9f7d55c9b5e349d8b7ede44 to your computer and use it in GitHub Desktop.
AWSGit for pushing to CodeCommit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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