Skip to content

Instantly share code, notes, and snippets.

@flomotlik flomotlik/Dockerfile
Created Sep 18, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.