9

The official Docker documentation says: Docker recognizes certs stored under Trust Root Certification Authorities or Intermediate Certification Authorities. That is, you can proceed as the following: Start > "Manage Computer Certificates" (also available in the control panel) Right-click on "Trusted Root Certification Authoritites" > "All tasks" > "...


7

I think the time and effort it will take to set up another tool that performs this type of work will be about the same as it would be to setup Jenkins. If you are looking into a different tool though, I would checkout Rundeck. It is a great tool for creating scripts and allowing other privileged users to execute them. I'm not sure if it will meet your needs ...


5

Your python problem is the \n after the commands, write already append a newline, so your script does the following: $cred = Get-Credential # Start the command # This line is ignored as extraneous after Get-Credential, but you can see it in your output. Administrator # Send proprely to the User: prompt # Sent to the Password: prompt Password # Send to the ...


3

I'm guessing that your PowerShell script is hanging because of the Invoke-Command command. My best guess is PowerShell is either prompting you for something, you are passing in an argument incorrectly, or you are executing the script in your script block incorrectly. I'm not sure exactly how Script-Block works when referencing paths to PowerShell scripts, ...


2

You should probably create an Ansible issue for this as it's most likely a bug in Ansible. The first error makes me think about WinRM pipelining: Ansible 2.3.0 introduced an always-on WinRM pipelining feature (similar to SSH pipelining), and that may be behind this. SSH pipelining can cause issues in Ansible for Linux, and it can be useful to turn it off,...


2

If it's an Intel CPU, you may have to enable Intel VT-x in the bios. Sometimes the virtual machine will tell you this, and sometimes not. Here's a link that might help (ignore the Windows 10 part since you're on Win7). Also getting everything to the newest version would be a good idea if you can.


2

PowerShell Desired State Configuration: Pro's Great support for Microsoft Technologies (IIS, Exchange, SharePoint, etc.) Con's OS and PowerShell Version requirements can become prohibitive. WinRM and the LCM can be flakey requiring fiddling around restarting services to get it working. Opensource Ecosystem isn't as strong. Ansible: Pro's Huge Open-...


2

Your script works, just update the last content type to application/json: Invoke-RestMethod -Uri $adoTaskUri -ContentType "application/json" -Body $body -headers $adoHeader -Method POST PATCH is used to update a team project: https://docs.microsoft.com/en-us/rest/api/azure/devops/core/projects/update?view=azure-devops-rest-6.1


2

To debug this, check the container logs and the container events. kubectl get pods Find your pod name. kubectl logs If logs don't make it obvious... kubectl get events If you deployed into a namespace, make sure to add -n to all commands. This should reveal basically everything. If you're stuck, you can also browse around the k8s dashboard if you haven'...


1

The issue is that you can't reference the changed value in the same task. I created a new Powershell task and just called Write-Host "env:IP environment variable set to ($env:IP)" which output the IP address correctly.


1

K8s works with concept of Health Check, in your application you have some port or command/trigger that K8s can monitoring? Maybe because of that your container is not works.


1

I'm not familiar with Invoke-Build, but appearantly it's a part of the InvokeBuild PowerShell module? In that case, you'll have to install the module as part of the script where you're using it. Your YAML should be something like this: - stage: Build jobs: - job: Build steps: - task: PowerShell@2 inputs: targetType: '...


1

The -name parameter of the Stop-Service command is an [array strings][1]. You can pass multiple services to it. Stop-Service -name service1,service2,service3 Edit [string[]]$services = @('service1', 'service2') Stop-Service -Name $services -NoWait while ((Get-Service -Name $services | Where-Object { $_.status -ne 'Stopped'}).Count -ne 0) { Start-Sleep ...


1

It looks like your dockerfile has both CMD and ENTRYPOINT, so it’s highly likely that what gets invoked as a commsnd is pwsh -f /app/Start-Test.ps1 /app/Start-Test.ps1. It could be that this command gives an error, kubectl describe <your-pod> might shed some light onto what’s going on. Check this answer for details on difference between CMD and ...


1

You have 2 viable options to run ansible on windows 10: Install a linux vm with your favorite virtualization tool and run ansible inside that vm. Run ansible from WSL With the first option, you will need to install vagrant inside the vm + all virtualization tools needed. With the second option, you will then need to install vagrant in WSL as well and ...


1

I'm not sure my approach is any "better". However, what I have done in the past was to use Table Storage or Cosmos DB to store the key-value pairs that needed to be persisted between each stage. The general schema was: Key: buildNum-variableName Value: variableValue I then created various wrappers for the SDK to access from PowerShell and MSBuild, this ...


1

If you don't care about web UI, you can distribute your powershell scripts as console tasks using Sparrow, you basically just save your Powershell scripts as tasks to a git repository so that users can use it. Say, you have task, task2, task3 and so on Powershell scripts ( aka tasks ) scattered across different projects ( aka groups ): on your machine # 1....


1

The conflict is occurring between ngc and webpack. When rimraf aot && ngc -p ./tsconfig-aot.json is moved to its own script and executed prior to test and build:prod:aot then running test and build:prod:aot with npm-run-all will work as expected. Also, running with PowerShell is not necessarily a good idea since it interprets some of the output ...


1

I've found Ansible 2.3.2 to be the most stable, tho I haven't spent much time with 2.4.1 yet. 2.4.0 definetely has some stability issues when it comes to winrm.


Only top voted, non community-wiki answers of a minimum length are eligible