@@ -109,7 +109,8 @@ See "How to build a ModelCar container" section of
109
109
article for guidance on building OCI image with a model from Hugging Face suitable for an vLLM model server.
110
110
111
111
``` 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
113
114
RUN mkdir -p /models/1 && chmod -R 755 /models/1
114
115
RUN wget -q -P /models/1 \
115
116
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
133
134
134
135
``` sh
135
136
$ 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 ...
138
139
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 |
141
144
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
148
154
Successfully tagged localhost/ovms-resnet50:test
149
- ac4606eb6cb3e6be2fbee9d6bc271df212eb22e6a45a2c33394d9c73dc3bb4cf
155
+ 375b265c1c4bc6f0a059c8739fb2b3a46e1b563728f6d9c51f26f29bb2c87c3e
150
156
` ` `
151
157
152
158
Run the following command to make sure the image exists:
153
159
` ` ` sh
154
160
$ 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
156
162
` ` `
157
163
158
164
# ## Creating your namespace
0 commit comments