mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-30 03:01:12 +02:00
Docker-related fixes (#1221)
* tests: fix RegistryRunner's "-p" specification passed to "docker" * tests: "docker" binary is now installed from Homebrew
This commit is contained in:
@@ -13,7 +13,7 @@ class RegistryRunner {
|
|||||||
let stdoutPipe = Pipe()
|
let stdoutPipe = Pipe()
|
||||||
|
|
||||||
let proc = Process()
|
let proc = Process()
|
||||||
proc.executableURL = URL(fileURLWithPath: "/usr/local/bin/docker")
|
proc.executableURL = URL(fileURLWithPath: "/opt/homebrew/bin/docker")
|
||||||
proc.arguments = arguments
|
proc.arguments = arguments
|
||||||
proc.standardOutput = stdoutPipe
|
proc.standardOutput = stdoutPipe
|
||||||
try proc.run()
|
try proc.run()
|
||||||
@@ -31,7 +31,7 @@ class RegistryRunner {
|
|||||||
|
|
||||||
init() async throws {
|
init() async throws {
|
||||||
// Start container
|
// Start container
|
||||||
let container = try Self.dockerCmd("run", "-d", "--rm", "-p", "127.0.0.1:0:5000", "registry:2")
|
let container = try Self.dockerCmd("run", "-d", "--rm", "-p", "127.0.0.1::5000", "registry:2")
|
||||||
.trimmingCharacters(in: CharacterSet.newlines)
|
.trimmingCharacters(in: CharacterSet.newlines)
|
||||||
containerID = container
|
containerID = container
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user