Skip to content

Instantly share code, notes, and snippets.

@dkorolev
Created December 26, 2024 03:08
Show Gist options
  • Save dkorolev/993889854a48bbf81429498601c3137c to your computer and use it in GitHub Desktop.
Save dkorolev/993889854a48bbf81429498601c3137c to your computer and use it in GitHub Desktop.
A `Dockerfile` to build FoundationDB from source.
FROM ubuntu:latest
RUN apt update
RUN apt-get upgrade -y
RUN apt-get install -y autoconf build-essential git libjemalloc-dev mono-complete liblz4-dev cmake libssl-dev ninja-build zlib1g-dev
RUN git clone https://github.com/apple/foundationdb
# Yes, I've tried `7.3` too, including the `-clean` one.
RUN (cd foundationdb; git switch release-7.2)
RUN (cd foundationdb; mkdir build)
RUN (cd foundationdb/build; cmake -G Ninja ..)
RUN (cd foundationdb/build; cmake --build .)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment