mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-30 03:01:12 +02:00
* Improve macOS app integration Tart is now a proper application bundle, with the name and icon declared in the Info.plist, which we were missing. This also allows us to declare the app as LSBackgroundOnly as a default, which means that 'tart create' and similar background commands will not show the application icon in the dock, while 'tart run' will, thanks to it overriding the activation policy of the app. For now the logic of creating the Tart.app bundle is duplicated between the CI packaging scripts and the run-signed.sh script. Now that these scripts are growing, it makes sense to look at whether we can share the logic somehow, e.g. by building the application bundle directly during build, and packaging that, instead of creating it as a post install step. * Integration tests: fix DockerContainer import To work around the breaking change in 4.0.0, see https://github.com/testcontainers/testcontainers-python/commit/383b12e9d63b4b105c65e587e87c380355871a36. * .cirrus.yml(Release (Dry Run)): no need to install Sentry CLI --------- Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>
21 lines
650 B
Python
21 lines
650 B
Python
import requests
|
|
|
|
from testcontainers.core.waiting_utils import wait_container_is_ready
|
|
from testcontainers.core.container import DockerContainer
|
|
|
|
|
|
class DockerRegistry(DockerContainer):
|
|
_default_exposed_port = 5000
|
|
|
|
def __init__(self):
|
|
super().__init__("registry:2")
|
|
self.with_exposed_ports(self._default_exposed_port)
|
|
|
|
@wait_container_is_ready(requests.exceptions.ConnectionError)
|
|
def remote_name(self, for_vm: str):
|
|
exposed_port = self.get_exposed_port(self._default_exposed_port)
|
|
|
|
requests.get(f"http://127.0.0.1:{exposed_port}/v2/")
|
|
|
|
return f"127.0.0.1:{exposed_port}/tart/{for_vm}:latest"
|