-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed all inline tests * added notary * fixed WORKDIR * fixed bosh issue * removed extra periods * updated version
- Loading branch information
Showing
12 changed files
with
33 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
FROM ubuntu:bionic | ||
LABEL maintainer="James Bowling <jbowling@vmware.com>" \ | ||
version="1.0" \ | ||
version="1.1" \ | ||
description="This creates an image with all the cli binaries used in a Enterprise PKS environment." | ||
|
||
ENV BOSH_VERSION=6.0.0 | ||
ENV NOTARY_VERSION=0.6.1 | ||
|
||
WORKDIR / | ||
WORKDIR /root | ||
|
||
# Copy support files | ||
COPY bosh /root/bosh | ||
COPY scripts /root/scripts | ||
COPY bosh ./bosh | ||
COPY scripts ./scripts | ||
|
||
# Setup needed repositories and install base dependencies | ||
RUN chmod +x /root/scripts/*.sh && /root/scripts/setRepos.sh | ||
RUN chmod +x ./scripts/*.sh && ./scripts/setRepos.sh | ||
|
||
# Install utilities | ||
RUN /root/scripts/installAwsCli.sh | ||
RUN /root/scripts/installAzureCli.sh | ||
RUN /root/scripts/installBoshcli.sh && \ | ||
/root/scripts/installOmCli.sh && \ | ||
/root/scripts/installPKScli.sh && \ | ||
/root/scripts/installUaac.sh | ||
RUN /root/scripts/installGoogleSDK.sh | ||
RUN /root/scripts/installHelm.sh | ||
RUN /root/scripts/installKubectl.sh | ||
RUN /root/scripts/installVKE.sh | ||
RUN ./scripts/installAwsCli.sh | ||
RUN ./scripts/installAzureCli.sh | ||
RUN ./scripts/installBoshcli.sh && \ | ||
./scripts/installOmCli.sh && \ | ||
./scripts/installNotary.sh && \ | ||
./scripts/installPKScli.sh && \ | ||
./scripts/installUaac.sh | ||
RUN ./scripts/installGoogleSDK.sh | ||
RUN ./scripts/installHelm.sh | ||
RUN ./scripts/installKubectl.sh | ||
RUN ./scripts/installVKE.sh | ||
|
||
# Create Aliases | ||
RUN echo "source <(kubectl completion bash)" >> ~/.bashrc \ | ||
&& echo "alias k=kubectl" >> /root/.profile \ | ||
&& echo "alias p=pks" >> /root/.profile | ||
&& echo "alias k=kubectl" >> /.profile \ | ||
&& echo "alias p=pks" >> /.profile | ||
|
||
# Expose ports for kube-proxy demo | ||
EXPOSE 8001/tcp |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Installing AWS CLI | ||
echo "Installing AWS CLI" \ | ||
&& pip3 install awscli \ | ||
&& which aws \ | ||
&& aws --version | ||
&& pip3 install awscli |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Install Azure CLI | ||
echo "Installing Azure CLI" \ | ||
&& apt-get install -q -y --no-install-recommends azure-cli \ | ||
&& which az \ | ||
&& az --version | ||
&& apt-get install -q -y --no-install-recommends azure-cli |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Install Google Cloud SDK | ||
echo "Installing Google Cloud SDK" \ | ||
&& apt-get install -q -y --no-install-recommends google-cloud-sdk \ | ||
&& which gcloud \ | ||
&& gcloud version | ||
&& apt-get install -q -y --no-install-recommends google-cloud-sdk |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# Install Kubectl | ||
echo "Installing Kubectl" \ | ||
&& apt-get -q install -y --no-install-recommends kubectl \ | ||
&& kubectl version --short --client | ||
&& apt-get -q install -y --no-install-recommends kubectl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
echo "Installing notary" \ | ||
&& wget -q https://github.com/theupdateframework/notary/releases/download/v${NOTARY_VERSION}/notary-Linux-amd64 \ | ||
&& chmod +x notary-Linux-amd64 \ | ||
&& mv notary-Linux-amd64 /usr/local/bin/notary |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Install Operations Manager CLI | ||
echo "Installing om cli" \ | ||
&& apt-get install -q -y --no-install-recommends om \ | ||
&& which om \ | ||
&& om --version | ||
&& apt-get install -q -y --no-install-recommends om |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Install Cloud Foundry UAAC | ||
echo "Installing uaac" \ | ||
&& gem install cf-uaac \ | ||
&& which uaac \ | ||
&& uaac --version | ||
&& gem install cf-uaac |
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