-
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.
Merge pull request #1 from stakater-docker/init
Add docker file and jenkins file
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 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 |
---|---|---|
@@ -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"] |
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,6 @@ | ||
#!/usr/bin/env groovy | ||
@Library('github.com/stakater/[email protected]') _ | ||
|
||
pushDockerImage { | ||
dockerRepositoryURL = "docker.io" | ||
} |