Skip to content

Instantly share code, notes, and snippets.

Stefan Scherer StefanScherer

Block or report user

Report or block StefanScherer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@StefanScherer
StefanScherer / is-my-server-up-to-date.ps1
Last active Sep 26, 2019
Is my Windows Server up to date? Let's check it with latest Windows image tags from MCR :-) 🐳
View is-my-server-up-to-date.ps1
$ErrorActionPreference = 'Stop'
# fetch the current version number from host
$current=(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion")
$currUBR=$current.UBR
# fetch the maximum version number from MCR by filtering and sorting the JSON result
$prefix="$($current.CurrentMajorVersionNumber).$($current.CurrentMinorVersionNumber).$($current.CurrentBuildNumber)."
$json=$(Invoke-WebRequest -UseBasicParsing https://mcr.microsoft.com/v2/windows/servercore/tags/list | ConvertFrom-Json)
$hubUBR=($json.tags | Where-Object -FilterScript { $_.StartsWith($prefix) -and $_ -Match "^\d+\.\d+\.\d+\.\d+$" } |%{[System.Version]$_}|sort)[-1].Revision
@StefanScherer
StefanScherer / build_windows_10_test.sh
Last active Mar 4, 2019
packer inspec windows vmware-vmx test
View build_windows_10_test.sh
#!/bin/bash
PACKER_LOG=debug packer build \
--only=vmware-vmx \
--var source_path=~/.vagrant.d/boxes/StefanScherer-VAGRANTSLASH-windows_10/2019.01.09/vmware_desktop/windows_10.vmx \
windows_10_test.json
@StefanScherer
StefanScherer / docker-machine-0.13.0-b2d-18.06.1-ok.txt
Created Nov 17, 2018
docker-machine 0.13.0 vs. 0.14.0 with vmwarefusion driver
View docker-machine-0.13.0-b2d-18.06.1-ok.txt
$ ./docker-machine-0.13.0 -D create -d vmwarefusion --vmwarefusion-boot2docker-url=https://github.com/boot2docker/boot2docker/releases/download/v18.06.1-ce/boot2docker.iso test
Docker Machine Version: 0.13.0, build 9ba6da9
Found binary path at ./docker-machine-0.13.0
Launching plugin server for driver vmwarefusion
Plugin server listening at address 127.0.0.1:54875
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
@StefanScherer
StefanScherer / docker-machine-0.13.0-b2d-18.09.0+vmxnet3+vmci-fusion-10.1.3-macos-10.14.1.txt
Created Nov 17, 2018
docker-machine 0.13.0 + boot2docker.iso 18.09.0 + vmxnet3 + vmci
View docker-machine-0.13.0-b2d-18.09.0+vmxnet3+vmci-fusion-10.1.3-macos-10.14.1.txt
$ ./docker-machine-0.13.0 -D create -d vmwarefusion --vmwarefusion-boot2docker-url=https://github.com/StefanScherer/boot2docker/releases/download/v18.09.0-vmxnet3-vmci/boot2docker.iso test
Docker Machine Version: 0.13.0, build 9ba6da9
Found binary path at ./docker-machine-0.13.0
Launching plugin server for driver vmwarefusion
Plugin server listening at address 127.0.0.1:54590
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
View machine-drivers_docker-machine-driver-vmware plugin + boot2docker 18.06.1 works but shared folder does not work.txt
$ docker-machine -D create -d vmware --vmware-boot2docker-url=https://github.com/boot2docker/boot2docker/releases/download/v18.06.1-ce/boot2docker.iso vm18061
Docker Machine Version: 0.15.0, build b48dc28d
Found binary path at /Users/stefan/bin/docker-machine-driver-vmware
Launching plugin server for driver vmware
Plugin server listening at address 127.0.0.1:50171
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
@StefanScherer
StefanScherer / docker-for-win-log.txt
Last active Oct 22, 2018
Run LinuxKit in Hyper-V nested in in Windows 10 VMware Fusion/Workstation
View docker-for-win-log.txt
[05:54:11.662][Moby ][Info ] [ 0.000000] NR_IRQS:8448 nr_irqs:1448 0
[05:54:11.662][Moby ][Info ] [ 0.000000] Console: colour dummy device 80x25
[05:54:11.678][Moby ][Info ] [ 0.000000] console [ttyS0] enabled
[05:54:11.678][Moby ][Info ] [ 0.000000] allocated 4194304 bytes of page_ext
[05:54:11.693][Moby ][Info ] [ 0.000000] tsc: Unable to calibrate against PIT
[05:54:11.693][Moby ][Info ] [ 0.000000] tsc: HPET/PMTIMER calibration failed
[05:54:23.010][DnsUpdater ][Info ] Network configuration change detected
[05:54:23.010][PowerShell ][Info ] Run script '$(Find-NetRoute -RemoteIPAddress 8.8.8.8).InterfaceIndex[0]'...
[05:54:31.198][DnsUpdater ][Info ] Network configuration change detected
[05:54:31.198][PowerShell ][Info ] Run script '$(Find-NetRoute -RemoteIPAddress 8.8.8.8).InterfaceIndex[0]'...
@StefanScherer
StefanScherer / Vagrantfile
Created Jun 25, 2018
Turn on auto logon in a sysprepped Vagrant box
View Vagrantfile
Vagrant.configure("2") do |config|
config.vm.define "tst" do |cfg|
cfg.vm.box = "StefanScherer/windows_2016"
cfg.vm.hostname = "tst"
cfg.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
vb.linked_clone = true
end
@StefanScherer
StefanScherer / .dockerignore
Last active Mar 29, 2018
golang createtar sample
View .dockerignore
in/
*.tar
createtar-*
@StefanScherer
StefanScherer / .dockerignore
Last active Mar 12, 2018
packer 1.2.1 produces 0 byte vmdk
@StefanScherer
StefanScherer / docker-compose.yml
Created Jan 27, 2018
Jenkins Azure + SSL via Traefik and Let's Encrypt + Portainer
View docker-compose.yml
version: '2.1'
services:
traefik:
image: traefik:v1.5.0
ports:
- "80:80"
- "8081:8081"
- "443:443"
volumes:
- ./traefik.toml:/etc/traefik/traefik.toml
You can’t perform that action at this time.