Running ServiceBus in docker container

The main goal is to run the ServiceBus in the docker container for windows.

Docker version output:

Client:
 Version:      1.13.1
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      windows/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.24)
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      windows/amd64
 Experimental: true

Dockerefile Content:

# Is used as sql server local storage for servicebus
FROM microsoft/mssql-server-windows-express

COPY install/ /install

# WebPlatform Installer http://download.microsoft.com/download/C/F/F/CFF3A0B8-99D4-41A2-AE1A-496C08BEB904/WebPlatformInstaller_amd64_en-US.msi 
RUN msiexec /i install\WebPlatformInstaller_amd64_en-US.msi /qn

# Install servicebus using webpicmd offline installation https://msdn.microsoft.com/en-us/library/dn441408.aspx#BMK_SBConfig1616
RUN WebpiCmd /Install /Products:ServiceBus_1_1 /AcceptEula /SuppressReboot /xml:c:\install\SBWebPICache\feeds\latest\webproductlist.xml

Steps to play:

1. Create an image with the parameters:

docker build --no-cache -t servicebus $folder

...
Verifying successful installation...    
Microsoft Visual C++ 2012 SP1 Redistributable Package (x64) True    
Microsoft Windows Fabric V1 RTM True    
Microsoft Windows Fabric V1 CU1 True    
Windows Azure Pack: Service Bus 1.1 True
Windows Azure Pack: Update for Service Bus 1.1 - .NET Framework 4.6 Compatibility (KB3086798) True
Install of Products: SUCCESS

Servicebus successfully installed as expected

2. Run the container with the parameters:

docker run -it --rm --isolation hyperv servicebus powershell

3. Create a new servicebus farm:

New-SBFarm -SBFarmDBConnectionString 'data source=.; integrated security=true' -CertificateAutoGenerationKey (ConvertTo-SecureString -string "P@assword" -force -AsPlainText)

Error with error:

New-SBFarm : The Server service is not started.

Manual service start:

Start-Service : Service 'Server (LanmanServer)' cannot be started due to the following error: Cannot start service LanmanServer on computer '.'

It was found that the service depends on srvnet, which does not start on Windows 10 (10.0.14393) using hyper-v isolation:

Start-Service : Failed to start service 'srvnet (srvnet)'.

But it successfully starts on Windows Server 2016 (10.0.14393) using process isolation. However, even when starting the srvnet service and installing File-Services, it still does not work. Cannot start lanmanserver server

: - lanmanserver Windows? - servicebus?

+4
1

, Service Bus 1.1. webpicmd, Windows Fabric, - .

abo (Y/N): y ... : " Microsoft Visual ++ 2012 SP1 (x64)" : " Microsoft Visual ++ 2012 SP1 (x64)" : "Microsoft Windows Fabric V1 RTM" : "Microsoft Windows Fabric V1 RTM" ... : " Microsoft Visual ++ 2012 SP1 (x64)" : "Microsoft Windows Fabric V1 CU1" : "Microsoft Windows Fabric V1 CU1" : "Windows Azure Pack: Service Bus 1.1" (): " Microsoft Visual ++ 2012 SP1 (x64)" Microsoft Visual ++ 2012 SP1 (x64): : "Microsoft Windows Fabric V1 RTM" : "Windows Azure Pack: Service Bus 1.1" : "Windows Azure Pack: 1.1 -.NET Framework 4.6 Compa : "Windows Azure Pack: 1.1 - .NET Framework 4.6 (): "Microsoft Windows Fabric V1 RTM" WindowsFabric_1_0_960_0: . . SDK Windows DependencyFailed: Microsoft Windows Fabric V1 CU1 DependencyFailed: Windows Azure Pack: 1.1 DependencyFailed: Windows Azure: 1.1 - .NET Framework 4.6

... Microsoft Visual ++ 2012 SP1 (x64) True Microsoft Windows Fabric V1 RTM False   -: C:\Users\ContainerAdministrator\AppData\Local\Microsoft\Web Platform Installe Microsoft Windows Fabric V1 CU1 False Windows Azure Pack: 1.1 False Windows Azure Pack: 1.1. .NET Framework 4.6 (KB3086798) F : FAILURE

+1

Source: https://habr.com/ru/post/1671275/


All Articles