Skip to content

Commit

Permalink
bump python version added images to ignore from sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed May 25, 2022
1 parent 90ac108 commit 3fd673c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG REPO_NAME="https://github.com/GitHK/osparc-simcore-forked.git"
ARG BRANCH_NAME="service-integration-library-additions"
ARG COMMIT_SHA="4973ac6123511ecb06ff039eae5e6dfc81d45179"
ARG CLONE_DIR="/opsarc"
ARG PYTHON_VERSION="3.8.10"
ARG PYTHON_VERSION="3.9.12"
ARG DEBIAN_FRONTEND=noninteractive
ARG DOCKER_COMPOSE_VERSION="1.29.2"
ARG INSTALL_DIR="/package-install-dir"
Expand Down
7 changes: 7 additions & 0 deletions src/docker_publisher_osparc_services/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ async def run_command(config: Path) -> None:
# check if image is present in repository
for image in images:
image_name, tag = image.split(":")

if image_name in repo_model.registry.skip_images:
print(
f"Skipping {image_name}, used as a dependency by other images"
)
continue

if image_name not in repo_model.registry.local_to_test:
raise ValueError(
(
Expand Down
7 changes: 7 additions & 0 deletions src/docker_publisher_osparc_services/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ class RegistryTargetModel(BaseModel):
"ci/builder/osparc-sparc-internal/master/jupyter-math": "ci/osparc-sparc-internal/master/jupyter-math"
},
)
skip_images: List[str] = Field(
[],
description=(
"these images are only require for building and should will be "
"excluded when checking against local_to_test"
),
)

@root_validator()
def validate_consistency(cls, values: Dict) -> Dict:
Expand Down

0 comments on commit 3fd673c

Please sign in to comment.