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

Add tag name argument to graminize #662

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

DL8
Copy link
Contributor

@DL8 DL8 commented Dec 20, 2022

Set the graminized image name in "fx workspace graminize" using the "-t" argument. The tag name is formatted with the "worspace_name" input, such that "{workspace_name}" format specifier in the tag name will be replace by the workspace name

If not specified, the workspace name will be used as tag (current behavior)

Signed-off-by: Lavi, Nir nir.lavi@intel.com

@DL8 DL8 force-pushed the graminize-tag-name branch 2 times, most recently from ef736cd to fb75849 Compare December 20, 2022 16:36
@DL8 DL8 force-pushed the graminize-tag-name branch 2 times, most recently from da97606 to 08cc9a9 Compare January 2, 2023 10:36
@DL8 DL8 force-pushed the graminize-tag-name branch 2 times, most recently from df5cd13 to 9e1f899 Compare January 5, 2023 15:39
@@ -443,6 +443,11 @@ def dockerize_(context, base_image, save):
'Must be a power-of-2.\n'
'Default is 16G.'
)
@option('-t', '--tag', required=False,
type=str, multiple=False, default=None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type=str, multiple=False, default=None,
type=str, multiple=False, default='',

@@ -501,6 +506,10 @@ def open_pipe(command: str):

workspace_path = Path.cwd()
workspace_name = workspace_path.name

if tag is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if tag is None:
if not tag:

Allow seting the image tag in "fx workspace graminize" using the
"-t" argument. When set, it will be used instead of the workspace name
Docker image tag and archive file name

Signed-off-by: Lavi, Nir <nir.lavi@intel.com>
Copy link
Contributor

@igor-davidyuk igor-davidyuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@mansishr mansishr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@psfoley psfoley merged commit 2b28675 into securefederatedai:develop Jan 9, 2023
@DL8 DL8 deleted the graminize-tag-name branch January 26, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants