Hyunsun Moon | 5c2b9f2 | 2019-07-29 17:37:29 -0600 | [diff] [blame] | 1 | # |
| 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 Chiu | 428225c | 2021-04-08 19:36:48 -0700 | [diff] [blame] | 17 | FROM busybox:1.33.0 as static |
Hung-Wei Chiu | 0c7fcc6 | 2021-05-20 10:37:35 -0700 | [diff] [blame^] | 18 | RUN wget https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-linux-amd64-v0.9.1.tgz |
| 19 | RUN tar xvfz cni-plugins-linux-amd64-v0.9.1.tgz |
Hyunsun Moon | 57c4bcf | 2019-08-22 00:31:54 -0500 | [diff] [blame] | 20 | RUN cp ./static /bin/static |
Hung-Wei Chiu | 428225c | 2021-04-08 19:36:48 -0700 | [diff] [blame] | 21 | RUN cp ./dhcp /bin/dhcp |
Hyunsun Moon | f9cac59 | 2020-11-10 00:46:41 -0800 | [diff] [blame] | 22 | RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 |
| 23 | RUN cp ./jq-linux64 /bin/jq |
| 24 | RUN chmod +x /bin/static /bin/jq |
Hyunsun Moon | 57c4bcf | 2019-08-22 00:31:54 -0500 | [diff] [blame] | 25 | |
Hung-Wei Chiu | 428225c | 2021-04-08 19:36:48 -0700 | [diff] [blame] | 26 | FROM centos/systemd@sha256:09db0255d215ca33710cc42e1a91b9002637eeef71322ca641947e65b7d53b58 as omec-cni |
Hyunsun Moon | 5c2b9f2 | 2019-07-29 17:37:29 -0600 | [diff] [blame] | 27 | WORKDIR /tmp/cni/bin |
Hyunsun Moon | f9cac59 | 2020-11-10 00:46:41 -0800 | [diff] [blame] | 28 | COPY vfioveth . |
| 29 | COPY --from=nfvpe/sriov-cni:v2.5 /usr/bin/sriov . |
| 30 | COPY --from=static /bin/jq . |
Hyunsun Moon | 57c4bcf | 2019-08-22 00:31:54 -0500 | [diff] [blame] | 31 | COPY --from=static /bin/static . |
Hung-Wei Chiu | 428225c | 2021-04-08 19:36:48 -0700 | [diff] [blame] | 32 | COPY --from=static /bin/dhcp . |