Used to find instances that contain user data which matches the provided grep_pattern.
This was created because I needed an easy way to search all hosts for specific user data.
#!/usr/bin/env bash | |
set -e | |
#:-{Define Functions Ya'll}-------------------------------------------------------------------------------> | |
function install_brew { | |
# install xcode cli tools. (required dependency for homebrew and life in general) | |
if [ ! $(pkgutil --pkgs=com.apple.pkg.CLTools_Executables) ]; then |
docker run --rm \
FROM ubuntu:16.04 | |
RUN echo "[INFO]::[installing]::[base packages]" \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends --no-install-suggests \ | |
software-properties-common libssl-dev libmcrypt-dev openssl ca-certificates \ | |
git ntp curl tzdata bzip2 libfontconfig1 phantomjs mysql-client sudo jq \ | |
&& apt-get autoclean && apt-get clean && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* | |
RUN echo "[INFO]::[installing]::[java packages]" \ |