-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: PoAn Yang <[email protected]>
- Loading branch information
1 parent
ef81964
commit bd103d6
Showing
16 changed files
with
45 additions
and
7,007 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -4,8 +4,6 @@ ARG DAPPER_HOST_ARCH=amd64 | |
ARG http_proxy | ||
ARG https_proxy | ||
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH} | ||
ENV PROTOBUF_VER=24.3 | ||
ENV PROTOBUF_VER_PY=4.24.3 | ||
|
||
# Setup environment | ||
ENV PATH /go/bin:$PATH | ||
|
@@ -43,16 +41,16 @@ RUN git clone https://github.com/longhorn/spdk.git ${SPDK_DIR} --recursive && \ | |
git submodule update --init && \ | ||
./scripts/pkgdep.sh && \ | ||
if [ ${ARCH} = "amd64" ]; then \ | ||
./configure --target-arch=nehalem --disable-tests --disable-unit-tests --disable-examples && \ | ||
make -j$(nproc) && \ | ||
make install; \ | ||
./configure --target-arch=nehalem --disable-tests --disable-unit-tests --disable-examples && \ | ||
make -j$(nproc) && \ | ||
make install; \ | ||
elif [ ${ARCH} = "arm64" ]; then \ | ||
./configure --target-arch=native --disable-tests --disable-unit-tests --disable-examples && \ | ||
DPDKBUILD_FLAGS="-Dplatform=generic" make -j$(nproc) && \ | ||
make install; \ | ||
./configure --target-arch=native --disable-tests --disable-unit-tests --disable-examples && \ | ||
DPDKBUILD_FLAGS="-Dplatform=generic" make -j$(nproc) && \ | ||
make install; \ | ||
else \ | ||
echo "Unsupported architecture: ${ARCH}"; \ | ||
exit 1; \ | ||
echo "Unsupported architecture: ${ARCH}"; \ | ||
exit 1; \ | ||
fi | ||
|
||
# Build libjson-c-devel | ||
|
@@ -87,31 +85,6 @@ ENV GRPC_HEALTH_PROBE_amd64=https://github.com/grpc-ecosystem/grpc-health-probe/ | |
RUN wget ${!GRPC_HEALTH_PROBE} -O /usr/local/bin/grpc_health_probe && \ | ||
chmod +x /usr/local/bin/grpc_health_probe | ||
|
||
# protoc | ||
ENV PROTOC_amd64=https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VER}/protoc-${PROTOBUF_VER}-linux-x86_64.zip \ | ||
PROTOC_arm64=https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VER}/protoc-${PROTOBUF_VER}-linux-aarch_64.zip \ | ||
PROTOC_s390x=https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VER}/protoc-${PROTOBUF_VER}-linux-s390_64.zip \ | ||
PROTOC=PROTOC_${ARCH} | ||
|
||
RUN cd /usr/src && \ | ||
wget ${!PROTOC} -O protoc_${ARCH}.zip && \ | ||
unzip protoc_${ARCH}.zip -d /usr/local/ | ||
|
||
# protoc-gen-go | ||
RUN cd /go/src/github.com/ && \ | ||
mkdir golang/ && \ | ||
cd golang && \ | ||
git clone https://github.com/golang/protobuf.git && \ | ||
cd protobuf && \ | ||
git checkout v1.5.3 && \ | ||
cd protoc-gen-go && \ | ||
go build && \ | ||
cp protoc-gen-go /usr/local/bin | ||
|
||
# buf | ||
ENV GO111MODULE=on | ||
RUN go install github.com/bufbuild/buf/cmd/[email protected] | ||
|
||
# longhorn/go-spdk-helper binary for debugging | ||
ENV GO_SPDK_HELPER_DIR /usr/src/go-spdk-helper | ||
RUN git clone https://github.com/longhorn/go-spdk-helper.git ${GO_SPDK_HELPER_DIR} && \ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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
Oops, something went wrong.