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 option to download IC binary #2107

Merged
merged 2 commits into from
Oct 20, 2021
Merged

Conversation

lucacome
Copy link
Member

  • Added option to extract the binary from the Docker image
  • Updated docs
  • Small fixes to docs

@lucacome lucacome requested a review from a team October 19, 2021 04:32
@lucacome lucacome self-assigned this Oct 19, 2021
@lucacome lucacome requested review from ciarams87, soneillf5 and pleshakov and removed request for a team October 19, 2021 04:32
@github-actions github-actions bot added documentation Pull requests/issues for documentation enhancement Pull requests for new features/feature enhancements labels Oct 19, 2021
hack/docker.sh Show resolved Hide resolved

else
# we're on master or a branch, try to download the latest edge and see if sha matches
docker pull nginx/nginx-ingress:${docker_tag} >/dev/null 2>&1
Copy link
Contributor

Choose a reason for hiding this comment

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

do we rebuild the edge images on every commit in the master or we optimize (for example, when no code changes were in the commit?)? if latter is the case, then we might not have an image that matches the commit

Copy link
Member Author

Choose a reason for hiding this comment

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

We rebuild the images for every change except for docs and examples. In that case, you're right, it won't be possible to download the binary. Unfortunately, I don't see a workaround for this unless we want to always use the latest available binary, but I think that could cause more issues.

Similarly, if somebody is on an old commit, there's no way to get the corresponding edge image that was built in the past (unless we start tagging the image with the sha).

Copy link
Contributor

Choose a reason for hiding this comment

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

if this can cause problems, perhaps we shall only support downloading for release tags then?

Copy link
Member Author

@lucacome lucacome Oct 19, 2021

Choose a reason for hiding this comment

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

if it's not the latest commit or a tag it will print this message:

unable to build with TARGET=download, this function is only available when building from a git tag or from the latest commit matching the edge image

do you think it's not enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

do you it's not enough?

yeah, I think it is enough

@pleshakov pleshakov self-requested a review October 19, 2021 23:54
@lucacome lucacome merged commit 4bd91bc into master Oct 20, 2021
@lucacome lucacome deleted the feature/download-binary-from-docker branch October 20, 2021 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests/issues for documentation enhancement Pull requests for new features/feature enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants