Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
98 additions
and
144 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,61 @@ | ||
############################################################ | ||
# Dockerfile to create SolidFire PowerShell Container | ||
# From Jenkins DEVELOP branch | ||
# Based on Ubuntu Image | ||
############################################################ | ||
|
||
# Set the base image to use to Ubuntu | ||
FROM ubuntu | ||
|
||
# Set the file maintainer (your name - the file's author) | ||
MAINTAINER NetApp SolidFire Host Integrations | ||
|
||
# Add security to apt sources list | ||
# RUN echo "deb http://security.ubuntu.com/ubuntu trusty-security main" >> /etc/apt/sources.list | ||
|
||
# Update the default application repository sources list | ||
RUN apt-get update | ||
|
||
# Install sudo | ||
RUN apt-get install sudo -y | ||
|
||
# Install WGET | ||
RUN apt-get install wget -y | ||
|
||
# Install CURL | ||
RUN apt-get install curl -y | ||
|
||
# Use a non-root account | ||
# RUN useradd -ms /bin/bash posh | ||
# USER posh | ||
# WORKDIR /home/posh | ||
# RUN whoami | ||
|
||
# Install Powershell dependencies | ||
RUN sudo apt-get install libcurl3 libunwind8 libicu55 -y | ||
|
||
# Download Powershell for Ubuntu | ||
RUN wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.13/powershell_6.0.0-alpha.13-1ubuntu1.16.04.1_amd64.deb | ||
|
||
# Install Powershell | ||
RUN sudo dpkg -i powershell_6.0.0-alpha.13-1ubuntu1.16.04.1_amd64.deb | ||
RUN sudo apt-get install -f | ||
|
||
# Install Powershell | ||
# RUN curl -fsSL https://raw.githubusercontent.com/PowerShell/PowerShell/v6.0.0-alpha.13/tools/download.sh | bash -s | ||
|
||
# Setup Module Directory | ||
RUN mkdir -p /usr/local/share/powershell/Modules/SolidFire | ||
|
||
# Download the SolidFire PowerShell module files | ||
#RUN wget -P /usr/local/share/powershell/Modules/SolidFire/ http://hi-jenkins.eng.solidfire.net:8080/view/SDK/job/solidfire-sdk-dotnet-DEVELOP/lastSuccessfulBuild/artifact/src/DotNetSdk/bin/Debug/netstandard1.6/DotNetSdk.dll | ||
|
||
#RUN wget -P /usr/local/share/powershell/Modules/SolidFire/ http://hi-jenkins.eng.solidfire.net:8080/view/SDK/job/solidfire-sdk-dotnet-DEVELOP/lastSuccessfulBuild/artifact/src/DotNetSdk/bin/Debug/net46/Newtonsoft.Json.dll | ||
|
||
#RUN wget -P /usr/local/share/powershell/Modules/SolidFire/ http://hi-jenkins.eng.solidfire.net:8080/view/PowerShell/job/PowerShell%20Build%20Develop/lastSuccessfulBuild/artifact/src/PowerShellModule/bin/Debug/netstandard1.6/SolidFire.dll | ||
|
||
#RUN wget -P /usr/local/share/powershell/Modules/SolidFire/ http://hi-jenkins.eng.solidfire.net:8080/view/PowerShell/job/PowerShell%20Build%20Develop/lastSuccessfulBuild/artifact/src/PowerShellModule/SolidFire.psd1 | ||
|
||
|
||
# Set the entrypoint to powershell command | ||
ENTRYPOINT powershell |
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
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
Binary file not shown.
Binary file not shown.