Skip to content

Commit 68f1891

Browse files
committed
[HSTACK] Install protobuf from source
1 parent 037fcb3 commit 68f1891

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

Dockerfile-build-wheel.arm64

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ WORKDIR /root
66

77
RUN <<EOF
88
dnf install -y epel-release
9-
dnf install -y curl pkg-config openssl ca-certificates openssl-devel patchelf autoconf automake make libtool unzip clang libatomic protobuf-c-compiler openssh-clients
9+
dnf install -y curl pkg-config openssl ca-certificates openssl-devel patchelf autoconf automake make libtool unzip clang libatomic openssh-clients wget
10+
EOF
11+
12+
RUN <<EOF
13+
# echo 1
14+
wget https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.21.12.zip
15+
unzip v3.21.12.zip
16+
cd protobuf-3.21.12
17+
autoupdate
18+
./autogen.sh
19+
./configure --prefix=/usr --disable-dependency-tracking
20+
make -j8
21+
make install
1022
EOF
1123

1224
RUN <<EOF

Dockerfile-build-wheel.x86_64

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ WORKDIR /root
66

77
RUN <<EOF
88
dnf install -y epel-release
9-
dnf install -y curl pkg-config openssl ca-certificates openssl-devel patchelf autoconf automake make libtool unzip clang libatomic protobuf-c-compiler openssh-clients
9+
dnf install -y curl pkg-config openssl ca-certificates openssl-devel patchelf autoconf automake make libtool unzip clang libatomic openssh-clients wget
10+
EOF
11+
12+
RUN <<EOF
13+
# echo 1
14+
wget https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.21.12.zip
15+
unzip v3.21.12.zip
16+
cd protobuf-3.21.12
17+
autoupdate
18+
./autogen.sh
19+
./configure --prefix=/usr --disable-dependency-tracking
20+
make -j8
21+
make install
1022
EOF
1123

1224
RUN <<EOF

0 commit comments

Comments
 (0)