-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile.saibuilder
18 lines (18 loc) · 1.08 KB
/
Dockerfile.saibuilder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM us-west1-docker.pkg.dev/openconfig-lemming/internal/builder@sha256:6a960d06bfd63c9cd8cff1f2ab3b3cc21e578b570979b5574d232be644dd0bf9
WORKDIR /build
COPY patches/sai.patch sai.patch
RUN wget -q https://github.com/opencomputeproject/SAI/archive/refs/tags/v1.11.0.tar.gz && tar xf v1.11.0.tar.gz && rm v1.11.0.tar.gz
RUN mkdir external && mv SAI-1.11.0 external/com_github_opencomputeproject_sai && patch -p1 -d external/com_github_opencomputeproject_sai < sai.patch
COPY go.* .
COPY dataplane/proto/sai/*.proto dataplane/proto/sai/
COPY dataplane/cpusink/*.go dataplane/cpusink/
COPY dataplane/standalone/packetio/*.go dataplane/standalone/packetio/
COPY dataplane/dplaneopts/*.go dataplane/dplaneopts/
COPY dataplane/forwarding/ dataplane/forwarding/
COPY dataplane/internal/kernel/*.go dataplane/internal/kernel/
COPY proto/forwarding/*.go proto/forwarding/
COPY dataplane/standalone/sai/*.cc dataplane/standalone/sai/
COPY dataplane/standalone/sai/*.h dataplane/standalone/sai/
COPY dataplane/standalone/entrypoint.cc dataplane/standalone/entrypoint.cc
COPY Makefile .
RUN make lucius-libsai -j 48