Skip to content

Commit

Permalink
Merge pull request #1 from stakater-docker/init
Browse files Browse the repository at this point in the history
Add docker file and jenkins file
  • Loading branch information
kahootali authored Mar 12, 2020
2 parents af81b27 + 1db3df9 commit 06426ca
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
54 changes: 54 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM vmware/powerclicore:ubuntu18.04

RUN apt-get update

RUN apt-get install -y wget jq git

# Update Modules
#RUN pwsh -c "\$ProgressPreference = \"SilentlyContinue\"; Update-Module -Force -AcceptLicense -Confirm:\$false"

RUN pwsh -c "Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCEIP \$false -Confirm:\$false | Out-Null" && \
pwsh -c "Import-Module VMware.VimAutomation.Core | Out-Null" && \
pwsh -c "Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:\$false | Out-Null"

ARG OPENSHIFT_VERSION="4.3.5"

RUN cd /tmp && \
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OPENSHIFT_VERSION}/openshift-install-linux-${OPENSHIFT_VERSION}.tar.gz && \
tar -xvf openshift-install-linux-${OPENSHIFT_VERSION}.tar.gz && \
chmod +x openshift-install && \
mv openshift-install /usr/local/bin/ && \
rm -rf ./*

RUN cd /tmp && \
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OPENSHIFT_VERSION}/openshift-client-linux-${OPENSHIFT_VERSION}.tar.gz && \
tar -xvf openshift-client-linux-${OPENSHIFT_VERSION}.tar.gz && \
chmod +x oc kubectl && \
mv oc kubectl /usr/local/bin/ && \
rm -rf ./*

ARG TERRAFORM_VERSION="0.12.20"

RUN cd /tmp && \
wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
chmod +x terraform && \
mv terraform /usr/local/bin/ && \
rm -rf ./*

RUN mv /usr/bin/jq /usr/local/bin/

ARG HELM_VERSION="3.0.3"

RUN cd /tmp && \
wget https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
tar -xvf helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
chmod +x linux-amd64/helm && \
mv linux-amd64/helm /usr/local/bin/ && \
rm -rf ./*

RUN mkdir -p /terraform

#ADD . /terraform/

CMD ["/bin/bash"]
6 changes: 6 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env groovy
@Library('github.com/stakater/[email protected]') _

pushDockerImage {
dockerRepositoryURL = "docker.io"
}

0 comments on commit 06426ca

Please sign in to comment.