Created
September 1, 2015 19:25
-
-
Save remh/7bc04afe840617733081 to your computer and use it in GitHub Desktop.
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 node | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
python \ | |
python-setuptools \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
RUN easy_install requests | |
RUN npm install -g sprinter | |
ENV GH_USERNAME "YOUR_GITHUB_USER" | |
ENV GH_PASSWORD "AN_API_TOKEN" | |
ENV GH_TEAM_ID "YOUR_TEAM_ID" | |
ENV SPRINTER_REPOS "/repo" | |
COPY entrypoint.sh /entrypoint.sh | |
ENTRYPOINT ["/entrypoint.sh"] | |
CMD ["--help"] |
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
#!/bin/bash | |
#set -e | |
python -c "import requests; print '\n'.join(['DataDog/{0}'.format(k['name']) for k in requests.get('https://api.github.com/teams/$YOUR_TEAM_ID/repos', auth=('$GH_USERNAME', '$GH_PASSWORD')).json()])" > /repo | |
sprinter $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment