Skip to content

Commit

Permalink
fix(download): change the download url of thrift 0.11.0 tarball to ap…
Browse files Browse the repository at this point in the history
…ache instead of github where it was removed recently
  • Loading branch information
empiredan committed Nov 27, 2024
1 parent f8de6da commit 60d1753
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions docker/pegasus-build-env/centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ RUN wget --progress=dot:giga https://archive.apache.org/dist/maven/maven-3/3.8.3
&& tar -zxf apache-maven-3.8.3-bin.tar.gz \
&& rm apache-maven-3.8.3-bin.tar.gz

RUN wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf 0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
RUN wget --progress=dot:giga https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf thrift-0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
./configure --enable-libs=no && \
make -j$(($(nproc)/2+1)) && make install && cd - && \
rm -rf thrift-0.11.0 0.11.0.tar.gz
rm -rf thrift-0.11.0 thrift-0.11.0.tar.gz

ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
ENV PATH="/opt/maven/apache-maven-3.8.3/bin:${PATH}"
Expand Down
6 changes: 3 additions & 3 deletions docker/pegasus-build-env/ubuntu1804/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ RUN add-apt-repository ppa:git-core/ppa -y; \

RUN pip3 install --no-cache-dir --upgrade pip && pip3 install --no-cache-dir cmake

RUN wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf 0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
RUN wget --progress=dot:giga https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf thrift-0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
./configure --enable-libs=no && \
make -j$(($(nproc)/2+1)) && make install && cd - && \
rm -rf thrift-0.11.0 0.11.0.tar.gz
rm -rf thrift-0.11.0 thrift-0.11.0.tar.gz

ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
ENV CLASSPATH=$JAVA_HOME/lib/
Expand Down
6 changes: 3 additions & 3 deletions docker/pegasus-build-env/ubuntu2004/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ RUN add-apt-repository ppa:git-core/ppa -y; \

RUN pip3 install --no-cache-dir cmake

RUN wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf 0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
RUN wget --progress=dot:giga https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf thrift-0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
./configure --enable-libs=no && \
make -j$(($(nproc)/2+1)) && make install && cd - && \
rm -rf thrift-0.11.0 0.11.0.tar.gz
rm -rf thrift-0.11.0 thrift-0.11.0.tar.gz

ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
ENV CLASSPATH=$JAVA_HOME/lib/
Expand Down
6 changes: 3 additions & 3 deletions docker/pegasus-build-env/ubuntu2204/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ RUN apt-get update -y; \
RUN pip3 install --no-cache-dir --upgrade pip
RUN pip3 install --no-cache-dir cmake

RUN wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf 0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
RUN wget --progress=dot:giga https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf thrift-0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
./configure --enable-libs=no && \
make -j$(($(nproc)/2+1)) && make install && cd - && \
rm -rf thrift-0.11.0 0.11.0.tar.gz
rm -rf thrift-0.11.0 thrift-0.11.0.tar.gz

ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
ENV CLASSPATH=$JAVA_HOME/lib/
Expand Down
2 changes: 1 addition & 1 deletion java-client/scripts/download_thrift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

function GenThriftTool() {
set -e
wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/0.11.0.tar.gz -O thrift-0.11.0.tar.gz
wget --progress=dot:giga https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz -O thrift-0.11.0.tar.gz
tar xzf thrift-0.11.0.tar.gz
pushd thrift-0.11.0
./bootstrap.sh
Expand Down

0 comments on commit 60d1753

Please sign in to comment.