This file contains hidden or 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
| docker pull k8s.gcr.io/kube-proxy-amd64:v1.10.11 | |
| docker pull k8s.gcr.io/kube-apiserver-amd64:v1.10.11 | |
| docker pull k8s.gcr.io/kube-controller-manager-amd64:v1.10.11 | |
| docker pull k8s.gcr.io/kube-scheduler-amd64:v1.10.11 | |
| docker pull k8s.gcr.io/etcd-amd64:3.1.12 | |
| docker pull k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.8 | |
| docker pull k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.8 | |
| docker pull k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.8 | |
| docker pull k8s.gcr.io/pause-amd64:3.1 |
This file contains hidden or 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
| 1. https://redis.io | |
| 2. https://github.com/MicrosoftArchive/redis | |
| 3. https://github.com/ServiceStack/redis-windows | |
| 4. https://github.com/tporadowski/redis |
This file contains hidden or 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
| using Nito.AsyncEx; | |
| using System; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| namespace SlackApiTest | |
| { | |
| class Program | |
| { | |
| private static HttpClient client = new HttpClient(); |
This file contains hidden or 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
| New-PSDrive -Name "J" -PSProvider FileSystem -Root "\\DomainOrIP\app$" -Persist | |
| # net use J: \\DomainOrIP\apps$ |
This file contains hidden or 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
| # Get IE Proxy Settings | |
| Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | |
| # Set IE Proxy Settings | |
| Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -value 1 | |
| Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer -value [IPorDomain:Port] | |
| # Remove IE Proxy Setings | |
| Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -value 0 | |
| Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer |
This file contains hidden or 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
| FROM mcr.microsoft.com/windows/servercore:ltsc2019 | |
| LABEL maintainer="kkbruce" description="Container for IIS" Vendor="Microsoft" Version="1809" | |
| RUN powershell -Command Add-WindowsFeature Web-Server | |
| # Todo: add some test HTML page. | |
| RUN echo "Hello World - Server 2019 IIS - Dockerfile" > c:\inetpub\wwwroot\index.html | |
| # or | |
| # COPY index.html /inetpub/wwwroot | |
| # COPY index.html c:/inetpub/wwwroot | |
| # COPY index.html c:\inetpub\wwwroot will not work. | |
| EXPOSE 80 |
This file contains hidden or 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
| FROM microsoft/windowsservercore:1709 | |
| SHELL ["powershell"] | |
| RUN $ErrorActionPreference = 'Stop'; \ | |
| wget https://github.com/MicrosoftArchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.zip -OutFile redis.zip ; \ | |
| Expand-Archive redis.zip -dest 'C:\Program Files\Redis\' ; \ | |
| Remove-Item redis.zip -Force | |
| RUN setx PATH '%PATH%;C:\Program Files\Redis\' |
This file contains hidden or 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
| docker run -it microsoft/windowsservercore powershell | |
| --- | |
| # Direct download from container | |
| Invoke-WebRequest -Method Get -Uri https://github.com/ServiceStack/redis-windows/raw/master/downloads/redis-latest.zip -OutFile c:\redis-latest.zip | |
| # Host download then copy to container | |
| # docker cp .\redis-latest.zip ContainerId:Dest_Path | |
| Expand-Archive -Path C:\redis-latest.zip -DestinationPath c:\redis | |
| --- | |
| docker commit --change='WORKDIR /redis' --change='CMD powershell .\redis-server.exe' -c "EXPOSE 6379" containerid [username]/[imagename]:[tagname] |
This file contains hidden or 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
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) | |
| # Delete all dangling images | |
| docker rmi $(docker images -f "dangling=true" -q) | |
| # Delete all before time images | |
| docker rmi $(docker images -f "before=..." -q) |
This file contains hidden or 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
| sqllocaldb d "MSSQLLocalDB" | |
| sqllocaldb c "MSSQLLocalDB" | |
| sqllocaldb i "MSSQLLocalDB" |