Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom docker registry only for supervisely images #89

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion agent/worker/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ def update_base_layers(self):
pulled = []
for image in constants.BASE_IMAGES():
try:
if constants.SLY_APPS_DOCKER_REGISTRY() is not None:
if constants.SLY_APPS_DOCKER_REGISTRY() is not None and image.startswith(
"supervisely/"
):
self.logger.info(
"NON DEFAULT DOCKER REGISTRY: docker image {!r} is replaced with {!r}".format(
image,
Expand Down
4 changes: 3 additions & 1 deletion agent/worker/task_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ def read_dockerimage_from_config(self):
f'Dockerimage not found in config.json, so it is set to default: {self.info["docker_image"]}'
)

if constants.SLY_APPS_DOCKER_REGISTRY() is not None:
if constants.SLY_APPS_DOCKER_REGISTRY() is not None and self.info[
"docker_image"
].startswith("supervisely/"):
self.logger.info(
"NON DEFAULT DOCKER REGISTRY: docker image {!r} is replaced with {!r}".format(
self.info["docker_image"],
Expand Down