Skip to content

Chaos

Deploy mssql

from string import Template 
import subprocess
import os
default_docker_cmd = "docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=PaulIsAwesome!123' -p $InPort:1433 -d mcr.microsoft.com/mssql/server:2017-CU8-ubuntu"


for i in range(3):
    command_string = default_docker_cmd.replace("$InPort", str(4000 + i))
    os.system(command_string)

Regex match special character

PEP 257 -- Docstring Conventions | Python.org