repro: Add protoc dependency to repro-build

This commit is contained in:
Christian Decker
2023-03-02 14:33:54 +01:00
committed by Alex Myers
parent d1402e06f9
commit c7fd13a460
3 changed files with 27 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV RUST_PROFILE=release
ENV PATH=/root/.cargo/bin:/root/.pyenv/shims:/root/.pyenv/bin:$PATH
ENV PROTOC_VERSION=22.0
RUN sed -i '/updates/d' /etc/apt/sources.list && \
sed -i '/security/d' /etc/apt/sources.list
@@ -47,6 +48,14 @@ RUN wget https://sh.rustup.rs -O rustup-install.sh && \
rm rustup-install.sh && \
/root/.cargo/bin/rustup install 1.62
# Download protoc manually, it is in the update repos which we
# disabled above, so `apt-get` can't find it anymore.
RUN cd /tmp/ && \
wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
unzip protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
mv bin/protoc /usr/local/bin && \
rm -rf include bin protoc-${PROTOC_VERSION}-linux-x86_64.zip
RUN mkdir /build
WORKDIR /build

View File

@@ -4,6 +4,7 @@ ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV RUST_PROFILE=release
ENV PATH=/root/.cargo/bin:$PATH
ENV PROTOC_VERSION=22.0
RUN sed -i '/updates/d' /etc/apt/sources.list && \
sed -i '/security/d' /etc/apt/sources.list
@@ -36,6 +37,14 @@ RUN wget https://sh.rustup.rs -O rustup-install.sh && \
rm rustup-install.sh && \
/root/.cargo/bin/rustup install 1.62
# Download protoc manually, it is in the update repos which we
# disabled above, so `apt-get` can't find it anymore.
RUN cd /tmp/ && \
wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
unzip protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
mv bin/protoc /usr/local/bin && \
rm -rf include bin protoc-${PROTOC_VERSION}-linux-x86_64.zip
RUN mkdir /build
WORKDIR /build

View File

@@ -4,6 +4,7 @@ ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV RUST_PROFILE=release
ENV PATH=/root/.cargo/bin:$PATH
ENV PROTOC_VERSION=22.0
RUN sed -i '/updates/d' /etc/apt/sources.list && \
sed -i '/security/d' /etc/apt/sources.list
@@ -37,6 +38,14 @@ RUN wget https://sh.rustup.rs -O rustup-install.sh && \
rm rustup-install.sh && \
/root/.cargo/bin/rustup install 1.62
# Download protoc manually, it is in the update repos which we
# disabled above, so `apt-get` can't find it anymore.
RUN cd /tmp/ && \
wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
unzip protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
mv bin/protoc /usr/local/bin && \
rm -rf include bin protoc-${PROTOC_VERSION}-linux-x86_64.zip
RUN mkdir /build
WORKDIR /build