Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Use faas-cli package for tagging image on OpenFaaS Cloud #87

Closed
alexellis opened this issue Jul 23, 2018 · 8 comments
Closed

Use faas-cli package for tagging image on OpenFaaS Cloud #87

alexellis opened this issue Jul 23, 2018 · 8 comments
Assignees

Comments

@alexellis
Copy link
Member

This new package in faas-cli should be used to create image tags for consistency:

https://github.com/openfaas/faas-cli/blob/master/schema/image.go#L17

It should be a relatively quick change.

@viveksyngh
Copy link
Contributor

@alexellis should we vendor faas-cli in openfaas-cloud and use this package to create tag for images?

@viveksyngh
Copy link
Contributor

viveksyngh commented Jul 28, 2018

@alexellis I have made this changes but recently we have merged PR #85 which validates the images name returned from buildshiprun and it's throwing an error for our new image name format.

I may need help from @s8sg for update the regex to validate image name like this
registry:5000/viveksyngh/regex_go-another-go:latest-039ca50585107171bafab71f1d5f65391523cd61 (P.S - I am not a regex expert) or should we disable the image name validation and just check for only 200 response from buildshiprun ?

@s8sg
Copy link
Contributor

s8sg commented Jul 29, 2018 via email

@viveksyngh
Copy link
Contributor

I am removing imageName validation and adding response code based validation for builder response. If response is not 2xx we won't get a valid imageName from builder and that can be used to deteremine if build was successfull or not.

viveksyngh added a commit to viveksyngh/openfaas-cloud that referenced this issue Jul 29, 2018
This commit uses faas-cli package to tag images for openfaas cloud
functions.

This also removes imageName validation for builder response and adds
response code based validation.

Fixes: openfaas#87

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
@viveksyngh
Copy link
Contributor

@alexellis looks like image.go from schema package of faas-cli is not part of latest release. Should I use master to vendor that in openfaas-cloud ?

@s8sg
Copy link
Contributor

s8sg commented Jul 29, 2018 via email

@viveksyngh
Copy link
Contributor

as image check regex got merged to master, I will create a PR to add this support.

@alexellis
Copy link
Member Author

Thanks. I've disabled the regex for now. Please PR when you can.

viveksyngh added a commit to viveksyngh/openfaas-cloud that referenced this issue Aug 7, 2018
This commit uses faas-cli package to tag images for openfaas cloud
functions.

This also removes imageName validation for builder response and adds
response code based validation.

Fixes: openfaas#87

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
viveksyngh added a commit to viveksyngh/openfaas-cloud that referenced this issue Aug 7, 2018
This commit uses faas-cli package to tag images for openfaas cloud
functions.

Fixes: openfaas#87

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
viveksyngh added a commit to viveksyngh/openfaas-cloud that referenced this issue Aug 7, 2018
This commit uses faas-cli package to tag images for openfaas cloud
functions.

Fixes: openfaas#87

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
alexellis pushed a commit that referenced this issue Aug 8, 2018
This commit uses faas-cli package to tag images for openfaas cloud
functions.

Fixes: #87

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants