blob: 3aea7ce0531f577e938c99a6038a26da7e993316 [file] [log] [blame]
Hyunsun Moon5c2b9f22019-07-29 17:37:29 -06001#
2# Copyright 2019-present Open Networking Foundation
3# Copyright (c) 2019 Intel Corporation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
Hung-Wei Chiu428225c2021-04-08 19:36:48 -070017FROM busybox:1.33.0 as static
Hyunsun Moon57c4bcf2019-08-22 00:31:54 -050018RUN wget https://github.com/containernetworking/plugins/releases/download/v0.8.2/cni-plugins-linux-amd64-v0.8.2.tgz
19RUN tar xvfz cni-plugins-linux-amd64-v0.8.2.tgz
20RUN cp ./static /bin/static
Hung-Wei Chiu428225c2021-04-08 19:36:48 -070021RUN cp ./dhcp /bin/dhcp
Hyunsun Moonf9cac592020-11-10 00:46:41 -080022RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
23RUN cp ./jq-linux64 /bin/jq
24RUN chmod +x /bin/static /bin/jq
Hyunsun Moon57c4bcf2019-08-22 00:31:54 -050025
Hung-Wei Chiu428225c2021-04-08 19:36:48 -070026FROM centos/systemd@sha256:09db0255d215ca33710cc42e1a91b9002637eeef71322ca641947e65b7d53b58 as omec-cni
Hyunsun Moon5c2b9f22019-07-29 17:37:29 -060027WORKDIR /tmp/cni/bin
Hyunsun Moonf9cac592020-11-10 00:46:41 -080028COPY vfioveth .
29COPY --from=nfvpe/sriov-cni:v2.5 /usr/bin/sriov .
30COPY --from=static /bin/jq .
Hyunsun Moon57c4bcf2019-08-22 00:31:54 -050031COPY --from=static /bin/static .
Hung-Wei Chiu428225c2021-04-08 19:36:48 -070032COPY --from=static /bin/dhcp .