Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile_build
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN apt-get update && \
build-essential cmake nodejs npm \
libxml2-dev libssl-dev libsqlite3-dev zlib1g-dev \
autoconf automake autotools-dev libtool xutils-dev valgrind \
flatbuffers-compiler && \
gcc-12 g++-12 && \
rm -rf /var/lib/apt/lists/*

# Install rust and rust tooling
Expand Down Expand Up @@ -64,6 +64,9 @@ RUN gpg --import thurston.asc && \
make install && \
cd .. && rm -rf ragel-${RAGEL7_VERSION}*

COPY ./install_flatc.sh .
RUN ./install_flatc.sh

# Install pkg-config helper
COPY --from=pkgconfig /usr/local/bin/cgo-pkgbuild /usr/local/bin/cgo-pkgbuild

Expand Down
11 changes: 11 additions & 0 deletions install_flatc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
FLATBUFFERS_VERSION=22.9.29
FLATBUFFERS_CHECKSUM=372df01795c670f6538055a7932fc7eb3e81b3653be4a216c081e9c3c26b1b6d
curl -LS https://github.com/google/flatbuffers/archive/v${FLATBUFFERS_VERSION}.tar.gz -O && \
echo "${FLATBUFFERS_CHECKSUM} v${FLATBUFFERS_VERSION}.tar.gz" | sha256sum --check -- && \
tar xvzf v${FLATBUFFERS_VERSION}.tar.gz && \
mkdir flatbuffers-${FLATBUFFERS_VERSION}/build && \
cd flatbuffers-${FLATBUFFERS_VERSION}/build && \
CC=/usr/bin/gcc-12 CXX=/usr/bin/g++-12 cmake -G "Unix Makefiles" .. && \
make && make install && \
cd ../.. && rm -rf flatbuffers-${FLATBUFFERS_VERSION} v${FLATBUFFERS_VERSION}.tar.gz