Skip to content

Commit 2a9f583

Browse files
committed
Use ubi-minimal instead of busybox
1 parent 83ba66e commit 2a9f583

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

docs/user/ai_model_serving.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ See "How to build a ModelCar container" section of
109109
article for guidance on building OCI image with a model from Hugging Face suitable for an vLLM model server.
110110

111111
```Dockerfile
112-
FROM quay.io/microshift/busybox:1.37
112+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
113+
RUN microdnf install -y wget && microdnf clean all
113114
RUN mkdir -p /models/1 && chmod -R 755 /models/1
114115
RUN wget -q -P /models/1 \
115116
https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/resnet50-binary-0001/FP32-INT1/resnet50-binary-0001.bin \
@@ -133,26 +134,31 @@ will be ignored. If you use any other tag, the `imagePullPolicy:` is set to `IfN
133134

134135
```sh
135136
$ sudo podman build -t ovms-resnet50:test .
136-
STEP 1/3: FROM quay.io/microshift/busybox:1.37
137-
Trying to pull quay.io/microshift/busybox:1.37...
137+
STEP 1/4: FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
138+
Trying to pull registry.access.redhat.com/ubi9/ubi-minimal:latest...
138139
Getting image source signatures
139-
Copying blob a46fbb00284b done |
140-
Copying config 27a71e19c9 done |
140+
Checking if image destination supports signatures
141+
Copying blob 533b69cfd644 done |
142+
Copying blob 863e9a7e2102 done |
143+
Copying config 098048e6f9 done |
141144
Writing manifest to image destination
142-
STEP 2/3: RUN mkdir -p /models/1 && chmod -R 755 /models/1
143-
--> eacb7039436a
144-
STEP 3/3: RUN wget -q -P /models/1 https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/resnet50-binary-0001/FP32-INT1/resnet50-binary-0001.bin https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/resnet50-binary-0001/FP32-INT1/resnet50-binary-0001.xml
145-
wget: note: TLS certificate validation not implemented
146-
COMMIT ovms-resnet50
147-
--> ac4606eb6cb3
145+
Storing signatures
146+
STEP 2/4: RUN microdnf install -y wget && microdnf clean all
147+
<< SNIP >>
148+
--> 4c74352ad42e
149+
STEP 3/4: RUN mkdir -p /models/1 && chmod -R 755 /models/1
150+
--> bfd31acb1e81
151+
STEP 4/4: RUN wget -q -P /models/1 https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/resnet50-binary-0001/FP32-INT1/resnet50-binary-0001.bin https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/resnet50-binary-0001/FP32-INT1/resnet50-binary-0001.xml
152+
COMMIT ovms-resnet50:test
153+
--> 375b265c1c4b
148154
Successfully tagged localhost/ovms-resnet50:test
149-
ac4606eb6cb3e6be2fbee9d6bc271df212eb22e6a45a2c33394d9c73dc3bb4cf
155+
375b265c1c4bc6f0a059c8739fb2b3a46e1b563728f6d9c51f26f29bb2c87c3e
150156
```
151157
152158
Run the following command to make sure the image exists:
153159
```sh
154160
$ sudo podman images | grep ovms-resnet50
155-
localhost/ovms-resnet50 test ac4606eb6cb3 3 minutes ago 27.5 MB
161+
localhost/ovms-resnet50 test 375b265c1c4b 3 minutes ago 136 MB
156162
```
157163
158164
### Creating your namespace

0 commit comments

Comments
 (0)