Change the app Dockerfile to use faiss-base as base image#102
Change the app Dockerfile to use faiss-base as base image#102rchitale7 wants to merge 2 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Rohan Chitale <rchital@amazon.com>
fbb5ebd to
91e7450
Compare
|
@rchitale7 I thought there is already separate CIs that looks at the what folder changes build the images. May be it can happen that core, app and base image cis are not running in order. I think there will be a way where we can add dependencies of CIs on one another so that they can run in order. Won’t that fix the problem? |
That does already exist here: https://github.com/opensearch-project/remote-vector-index-builder/blob/main/.github/workflows/publish_remote_core_image.yml#L67. So I'm not sure why this CI failed: https://github.com/opensearch-project/remote-vector-index-builder/actions/runs/16426837535/attempts/1 - maybe the GH runner erroneously used a cached image of |
The problem with copying core only is we would now need to ensure that we install all the dependencies of core also + we setup the core. So basically whatever we were doing in core we need to do again. I think this could be a problem with github runners not running in order. If we can as API github runner to wait for core to complete and then ask core API runner to wait for base image CI to complete this problem will not happen. |
|
@navneet1v thinking through this more - what i can do is add an option for |
Description
The
publish_remote_api_imageCI was failing, with this change: #98. The reason is that bothcoreandappfolders were modified. When publishing theapiimage, the GitHub CI used an older version of thecoreimage, that did not have the latest modifications. This caused the CI to fail, because the code in theappfolder is using the latest modifications tocore. I fixed the app Dockerfile to follow the example from thee2eimage: https://github.com/opensearch-project/remote-vector-index-builder/blob/main/e2e/api/Dockerfile, so that we're just copying theappandcoredirectories onto thefaiss-baseimage. This ensures any modifications tocorewill always be picked up by thepublish_remote_api_imageCI.I also updated some of the docs to reflect this change, along with the change from #98.
Issues Resolved
Resolves #101
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.