Skip to content

Commit

Permalink
Use cybozu-go/cilium
Browse files Browse the repository at this point in the history
Signed-off-by: chez-shanpu <[email protected]>
  • Loading branch information
chez-shanpu committed Sep 22, 2023
1 parent 2880993 commit 687e323
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions cilium-operator-generic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ COPY TAG /
COPY fix-metallb-bug.patch /tmp/

# LICENSE.all
WORKDIR /go/src/github.com/cilium/cilium
WORKDIR /go/src/github.com/cybozu-go/cilium
RUN VERSION=$(cut -d \. -f 1,2,3 < /TAG ) \
&& curl -fsSL "https://github.com/cilium/cilium/archive/v${VERSION}.tar.gz" | \
tar xzf - --strip-components 1 \
# Since we use the fork and patched repogitory, we need to specify the branch name
&& BRANCH=v{TAG}-lb-dsr-patch \
&& git clone --depth 1 --branch ${BRANCH} https://github.com/cybozu-go/cilium \
&& patch -p1 --no-backup-if-mismatch < /tmp/fix-metallb-bug.patch \
&& make licenses-all \
&& apt-get update \
Expand Down
9 changes: 4 additions & 5 deletions cilium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ FROM ${GOLANG_IMAGE} as build-base
ARG DESTDIR
ENV DESTDIR=${DESTDIR}
COPY TAG /
COPY cilium.patch /tmp/

WORKDIR /go/src/github.com/cilium/cilium
WORKDIR /go/src/github.com/cybozu-go/cilium
RUN mkdir -p ${DESTDIR} \
&& VERSION=$(cut -d \. -f 1,2,3 < /TAG ) \
&& curl -fsSL "https://github.com/cilium/cilium/archive/v${VERSION}.tar.gz" | \
tar xzf - --strip-components 1 \
&& patch -p1 --no-backup-if-mismatch < /tmp/cilium.patch \
# Since we use the fork and patched repogitory, we need to specify the branch name
&& BRANCH=v{TAG}-lb-dsr-patch \
&& git clone --depth 1 --branch ${BRANCH} https://github.com/cybozu-go/cilium \
&& make licenses-all \
&& mv LICENSE.all ${DESTDIR}/LICENSE \
&& apt-get update \
Expand Down
7 changes: 4 additions & 3 deletions hubble-relay/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ FROM ${GOLANG_IMAGE} as build
COPY TAG /

# LICENSE.all
WORKDIR /go/src/github.com/cilium/cilium
WORKDIR /go/src/github.com/cybozu-go/cilium
RUN VERSION=$(cut -d \. -f 1,2,3 < /TAG ) \
&& curl -fsSL "https://github.com/cilium/cilium/archive/v${VERSION}.tar.gz" | \
tar xzf - --strip-components 1 \
# Since we use the fork and patched repogitory, we need to specify the branch name
&& BRANCH=v{TAG}-lb-dsr-patch \
&& git clone --depth 1 --branch ${BRANCH} https://github.com/cybozu-go/cilium \
&& make licenses-all \
&& apt-get update \
&& apt-get install -y --no-install-recommends binutils-aarch64-linux-gnu \
Expand Down

0 comments on commit 687e323

Please sign in to comment.