This repository was archived by the owner on Apr 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Fixing Hadolint errors #230
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f | ||
RUN apt-get -q update && apt-get install -y openvswitch-switch-dpdk | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN apt-get update -y \ | ||
&& apt-get install -y linux-headers-generic openvswitch-switch-dpdk \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk | ||
##RUN sed -i "/rmmod bridge/d" /usr/share/openvswitch/scripts/ovs-kmod-ctl | ||
RUN apt install -y linux-headers-$(uname -r) | ||
CMD /usr/share/openvswitch/scripts/ovs-ctl start && sleep inf | ||
# RUN sed -i "/rmmod bridge/d" /usr/share/openvswitch/scripts/ovs-kmod-ctl | ||
RUN apt-get install -y --no-install-recommends linux-headers-"$(uname -r | cut -d'-' -f1)" | ||
CMD ["sh", "-c","/usr/share/openvswitch/scripts/ovs-ctl start && sleep inf"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f | ||
RUN apt-get -q update && apt-get install -y git vim meson python3-pyelftools libnuma-dev | ||
RUN apt-get -q update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
git \ | ||
vim \ | ||
meson \ | ||
python3-pyelftools \ | ||
libnuma-dev \ | ||
python3-pip \ | ||
ninja-build \ | ||
build-essential \ | ||
&& pip3 install --no-cache-dir --upgrade meson==1.3.0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update -y \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN git clone https://github.com/DPDK/dpdk.git | ||
WORKDIR /dpdk/ | ||
RUN meson build | ||
RUN cd build && ninja | ||
WORKDIR /dpdk/build/ | ||
RUN ninja | ||
WORKDIR /dpdk/build/app | ||
COPY ./testpmd.sh testpmd.sh | ||
CMD ./testpmd.sh | ||
CMD ["sh", "-c","./testpmd.sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f | ||
RUN apt-get -q update && apt-get install -y git vim meson python3-pyelftools libnuma-dev | ||
RUN apt-get -q update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
git \ | ||
vim \ | ||
meson \ | ||
python3-pyelftools \ | ||
libnuma-dev \ | ||
python3-pip \ | ||
ninja-build \ | ||
build-essential \ | ||
&& pip3 install --no-cache-dir --upgrade meson==1.3.0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update -y \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN git clone https://github.com/DPDK/dpdk.git | ||
WORKDIR /dpdk/ | ||
RUN meson build | ||
RUN cd build && ninja | ||
WORKDIR /dpdk/build/ | ||
RUN ninja | ||
WORKDIR /dpdk/build/app | ||
COPY ./testpmd.sh testpmd.sh | ||
CMD ./testpmd.sh | ||
CMD ["sh", "-c","./testpmd.sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,17 @@ FROM ligato/vpp-base:23.06@sha256:f68272b0aebe106673c7fffe94b6e6ccd06ecc9afd123e | |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
COPY . /root/userspace-cni-network-plugin | ||
WORKDIR /root/userspace-cni-network-plugin | ||
RUN apt-get update -y | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y binutils wget make git | ||
RUN wget -qO- https://golang.org/dl/go1.20.1.linux-amd64.tar.gz | tar -C /usr/local -xz | ||
RUN apt-get update -y \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y binutils bash wget make git \ | ||
&& wget -qO- https://golang.org/dl/go1.20.1.linux-amd64.tar.gz | tar -C /usr/local -xz \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV PATH="${PATH}:/usr/local/go/bin" | ||
RUN go mod download | ||
RUN go get go.fd.io/govpp/binapigen/[email protected] | ||
RUN make generate | ||
RUN go mod tidy | ||
RUN make generate-bin | ||
RUN go mod download \ | ||
&& go get go.fd.io/govpp/binapigen/[email protected] \ | ||
&& make generate \ | ||
&& go mod tidy \ | ||
&& make generate-bin | ||
#End of builder container | ||
|
||
# Copy build userspace cni bin to a small deployer container | ||
FROM alpine:3.18@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978 | ||
RUN mkdir -p /root/userspace-cni-network-plugin/userspace | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.