fix: Update flatc used in the CI Docker image

pull/24376/head
Carol (Nichols || Goulding) 2021-03-17 16:11:22 -04:00
parent 52e415ae1b
commit e463d7b8e2
1 changed files with 4 additions and 3 deletions

View File

@ -10,15 +10,16 @@
##
# Build any binaries that can be copied into the CI image
# Note we build flatbuffers from source (pinned to a particualar version)
# Note we build flatbuffers from source (pinned to a particualar SHA)
FROM rust:slim-buster AS flatc
ARG flatbuffers_version="v1.12.0"
ARG flatbuffers_version="86401e00"
RUN apt-get update \
&& mkdir -p /usr/share/man/man1 \
&& apt-get install -y \
git make clang cmake llvm \
--no-install-recommends \
&& git clone -b ${flatbuffers_version} -- https://github.com/google/flatbuffers.git /usr/local/src/flatbuffers \
&& git clone -b master -- https://github.com/google/flatbuffers.git /usr/local/src/flatbuffers \
&& git -C /usr/local/src/flatbuffers reset --hard ${flatbuffers_version} \
&& cmake -S /usr/local/src/flatbuffers -B /usr/local/src/flatbuffers \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \