-
Notifications
You must be signed in to change notification settings - Fork 120
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
[WIP] Add Dockerfile for modelmesh-minio-examples
image
#300
[WIP] Add Dockerfile for modelmesh-minio-examples
image
#300
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tedhtchang The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc @ckadner |
Signed-off-by: ted chang <htchang@us.ibm.com>
Signed-off-by: ted chang <htchang@us.ibm.com>
b65075f
to
cee8e3a
Compare
Signed-off-by: ted chang <htchang@us.ibm.com>
Hi @tedhtchang -- thank you for your PR. Do you know where all those large model files originate from? Since they are so large, I think it would be great if we don't have to keep a copy of those files in the repo, instead, maybe they could be copied/downloaded from their original source at the time we build the image? Or whenever we need them for testing. And delete them afterwards. |
Thanks @tedhtchang this is really helpful. Probably a question for @njhill and @ckadner, I'm wondering whether |
Yes thanks @tedhtchang. I think we should add just the Dockerfile(s) for now while we figure out where to host the larger model files, maybe we could do that in a separate PR so that we keep this branch with all the files until we figure that out. I agree with @rafvasq that the existing |
Signed-off-by: Nick Hill <nickhill@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
modelmesh-minio-examples
image
Hi Ted, I moved the files to into a new Although I don’t think we should add this to the I think we create a new repo soon |
For today, I will just build it off of your branch, push it to DockerHub, deploy it on an OCP cluster and test it. |
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
faf271e
to
c58bdea
Compare
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
|
||
RUN useradd -u 1000 -g 0 modelmesh | ||
|
||
RUN chown -R 1000:0 /data1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as Nick pointed out, doing a chown
after the COPY
layers causes the final Docker image to be about 86 MB larger.
$ docker images | grep "modelmesh-minio-examples"
kserve/modelmesh-minio-examples chown_before_cp 15eb3d6f159e 45 minutes ago 438MB
kserve/modelmesh-minio-examples chown_after_cp ad16135035ff 2 hours ago 524MB
kserve/modelmesh-minio-examples cp-chown 7579fe5ccdea 57 minutes ago 438MB
quay.io/cloudservices/minio RELEASE.2021-06-17 1377bf686561 11 months ago 351MB
kserve/modelmesh-minio-examples latest c773b3dc52e5 11 months ago 382MB
kserve/modelmesh-minio-examples v0.9.0 c773b3dc52e5 11 months ago 382MB
I reverted to COPY --chown 1000:0 ...
in commit 33c2f17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modelmesh-minio-examples
imagemodelmesh-minio-examples
image
Signed-off-by: Rafael Vasquez <raf.vasquez@ibm.com>
Signed-off-by: Rafael Vasquez <raf.vasquez@ibm.com>
@rafvasq -- I pushed a new https://hub.docker.com/r/kserve/modelmesh-minio-dev-examples/tags |
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
I created a new repository https://github.com/kserve/modelmesh-minio-examples/ from the commits in this PR with a few modifications to
Shaving off about 315 MB from the size of the repo -- before any of those files were ever committed since Git would keep a history of the files and the repo would stay larger even if we deleted those file subsequently. |
@tedhtchang -- thank you again for this PR. It was really helpful to get the new https://github.com/kserve/modelmesh-minio-examples/ repo seeded. If you don't mind keeping your fork and branch alive for the coming weeks so we can go back to it in case some of my trimming down was over eager ;-) |
Good good. Thanks.
I don't mind. |
Motivation
Provide instructions to build a MinIO model examples image
Resolves #297 #302
***** UPDATE Jan 24, 2023 *****
The files in this PR are entirely moved to this new repository:
https://github.com/kserve/modelmesh-minio-examples/