Sign inSign up

ehong/git-windows-server

By ehong

•Updated over 9 years ago

Chocolatey, git and posh-git for windowsservercore

Image
0

1.3K

ehong/git-windows-server repository overview

⁠Git for microsoft/windowsservercore

Added Chocolatey, git and posh-git modules based of microsoft/windowsservercore.
(You can only run this under Docker for Windows only)

⁠Reason

Currently, Docker Hub can't do Windows automated build so I build my own image and uploaded here. :-)

⁠Feature
  • microsoft/windowsservercore:latest
  • Chocolatey:latest
  • chocolatey's git:latest
  • NuGet
  • posh-git
⁠Dockerfile
#FROM microsoft/nanoserver:latest    
FROM microsoft/windowsservercore:latest    
MAINTAINER ehong

#ENV chocolateyVersion 0.10.3
ENV ChocolateyUseWindowsCompression false

# Set your PowerShell execution policy
RUN powershell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force

# Install Chocolatey
RUN powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

# Install Chocolatey packages
RUN choco install git.install -y 

# Install PowerShell modules
RUN powershell Install-PackageProvider NuGet -MinimumVersion '2.8.5.201' -Force
RUN powershell Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
RUN powershell Install-Module -Name 'posh-git'

Tag summary

Content type

Image

Digest

Size

5 GB

Last updated

over 9 years ago

docker pull ehong/git-windows-server