This file contains 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 | |
aws ecr describe-repositories | jq '.repositories[].repositoryName' | xargs -I {} aws ecr put-lifecycle-policy --repository-name {} --lifecycle-policy-text "file://policy.json" |
This file contains 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 | |
aws ecr list-images --repository-name $1 | jq '.imageIds | unique_by(.imageDigest) | length' |
This file contains 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
{ | |
"rules": [ | |
{ | |
"rulePriority": 10, | |
"description": "Cap production images at 25.", | |
"selection": { | |
"tagStatus": "tagged", | |
"countType": "imageCountMoreThan", | |
"tagPrefixList": [ | |
"prod" |
This file contains 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 | |
for i in `seq 1 10`; do | |
echo $i | |
if [ "$i" = "5" ]; then | |
>&2 echo "Error!" | |
exit 1 | |
fi |
This file contains 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 | |
grep -Hni $1 ${JENKINS_HOME:-/var/jenkins_home}/**/*/config.xml |
This file contains 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 | |
git log --pretty=format:'%h;%an;%ad;%s' --author='Sherwood Callaway' > ~/log.csv |
This file contains 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 ubuntu | |
RUN apt-get update && apt-get install --assume-yes make wget gcc zlib1g:amd64 zlib1g-dev:amd64 | |
# Uncomment the following line to make 'import curses' work | |
# RUN apt-get update && apt-get install -y libncursesw5-dev | |
ENV PYTHON_VERSION 3.6.1 | |
RUN wget --quiet https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz && \ | |
tar xzvf Python-$PYTHON_VERSION.tgz && \ | |
cd Python-$PYTHON_VERSION && \ |
This file contains 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
0xCb412a89385F3bBD16545Ee767030bFfB3e1B6Df |
This file contains 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
0xCb412a89385F3bBD16545Ee767030bFfB3e1B6Df |
NewerOlder