blob: abc9ffc31b34d5b934b703c5f47a2c779096203d [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
Hyunsun Moon57c4bcf2019-08-22 00:31:54 -050017FROM busybox as static
18RUN 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
Hyunsun Moonf9cac592020-11-10 00:46:41 -080021RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
22RUN cp ./jq-linux64 /bin/jq
23RUN chmod +x /bin/static /bin/jq
Hyunsun Moon57c4bcf2019-08-22 00:31:54 -050024
Hyunsun Moon5c2b9f22019-07-29 17:37:29 -060025FROM centos/systemd as omec-cni
26WORKDIR /tmp/cni/bin
Hyunsun Moonf9cac592020-11-10 00:46:41 -080027COPY vfioveth .
28COPY --from=nfvpe/sriov-cni:v2.5 /usr/bin/sriov .
29COPY --from=static /bin/jq .
Hyunsun Moon57c4bcf2019-08-22 00:31:54 -050030COPY --from=static /bin/static .