зеркало из https://github.com/Azure/iotedgedev.git
Fix issue starting local registry with customports (#349)
This commit is contained in:
Родитель
4c879b50c6
Коммит
485100cd8e
|
@ -5,20 +5,11 @@
|
||||||
"name": "Python Module",
|
"name": "Python Module",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"stopOnEntry": true,
|
|
||||||
"module": "iotedgedev.cli",
|
"module": "iotedgedev.cli",
|
||||||
"args": [
|
"args": [
|
||||||
"solution",
|
"push"
|
||||||
"new",
|
|
||||||
"test_solution"
|
|
||||||
],
|
],
|
||||||
"debugOptions": [
|
"cwd": "${workspaceFolder}/tests/test_solution"
|
||||||
"RedirectOutput"
|
|
||||||
],
|
|
||||||
"env": {
|
|
||||||
"DOTENV_FILE": ".env",
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Docker:
|
||||||
raise ValueError("You must specific a port for your local registry server. Expected: 'localhost:5000'. Found: " + local_server)
|
raise ValueError("You must specific a port for your local registry server. Expected: 'localhost:5000'. Found: " + local_server)
|
||||||
|
|
||||||
port = parts[1]
|
port = parts[1]
|
||||||
ports = {'{0}/tcp'.format(port): int(port)}
|
ports = {'5000/tcp': int(port)}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.output.info("Looking for local 'registry' container")
|
self.output.info("Looking for local 'registry' container")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче