Created
March 23, 2017 14:30
-
-
Save cholick/4d9c4e24dd197e84216e8173c1582ead to your computer and use it in GitHub Desktop.
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:14.04 | |
WORKDIR /tmp | |
#Update dist | |
RUN apt-get update | |
#Add Reqs for all CLI tool installs | |
RUN apt-get install -yq build-essential \ | |
ruby ruby-dev \ | |
libxml2-dev \ | |
libxml2-utils \ | |
libsqlite3-dev \ | |
libxslt1-dev \ | |
libpq-dev \ | |
libmysqlclient-dev \ | |
prips \ | |
wget \ | |
gcc \ | |
gcc-multilib \ | |
git \ | |
uuid \ | |
uuid-dev \ | |
perl \ | |
curl \ | |
jq \ | |
unzip \ | |
libssl-dev \ | |
perl-doc \ | |
liburi-perl \ | |
libxml-libxml-perl \ | |
libcrypt-ssleay-perl \ | |
python-pip \ | |
python-dev \ | |
zlib1g-dev && \ | |
apt-get clean | |
# Upgrade PIP & Install shyaml | |
RUN pip install --upgrade pip | |
RUN pip install --upgrade virtualenv | |
RUN pip install shyaml | |
# Install latest BOSH cli & UAAC cli | |
RUN gem install bosh_cli --no-ri --no-rdoc | |
RUN gem install cf-uaac | |
# Install latest BOSH Init | |
RUN wget $(wget -q -O- https://bosh.io/docs/install-bosh-init.html | grep "bosh-init for Linux (amd64)" | awk -F "\'" '{print$2}') -O /sbin/bosh-init | |
RUN chmod 755 /sbin/bosh-init | |
# Install latest GCLOUD SDK | |
RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list | |
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
RUN sudo apt-get -y update && sudo apt-get -y install google-cloud-sdk | |
# Install Terraform cli | |
RUN wget $(wget -q -O- https://www.terraform.io/downloads.html | grep linux_amd64 | awk -F '"' '{print$2}') -O /tmp/terraform.zip | |
RUN mkdir -p /opt/terraform && cd /opt/terraform && unzip /tmp/terraform.zip | |
RUN echo "PATH=/opt/terraform:$PATH" >> /etc/bash.bashrc | |
# Install latest CF CLI | |
RUN wget "https://cli.run.pivotal.io/stable?release=debian64&source=github" -O /tmp/cf-cli.deb && dpkg --install /tmp/cf-cli.deb | |
# Install latest OMG-CLI | |
RUN wget https://github.com$(wget -q -O- https://github.com/enaml-ops/omg-cli/releases/latest | grep omg-linux | awk -F '"' '{print$2}') -O /sbin/omg-cli | |
RUN chmod 755 /sbin/omg-cli | |
# Install pdftotexttool | |
RUN sudo apt-get -y install poppler-utils | |
# Install DNS Utils | |
RUN sudo apt-get -y update | |
RUN sudo apt-get -y install dnsutils | |
# Install jq 1.5 | |
RUN sudo wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -O /usr/bin/jq | |
RUN sudo chmod 755 /usr/bin/jq | |
# Install golang | |
RUN sudo curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | |
RUN sudo tar -xvf go1.6.linux-amd64.tar.gz | |
RUN sudo mv go /usr/local | |
# Install Azure CLI | |
RUN sudo apt-get -y install nodejs npm | |
RUN npm install -g azure-cli | |
RUN sudo ln -s "$(which nodejs)" /usr/bin/node | |
RUN yes | azure | |
# Exec cmd for Docker container | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment