Skip to content

Instantly share code, notes, and snippets.

@dkorolev
Created December 26, 2024 03:08
Show Gist options
  • Save dkorolev/aebcca0b2dc01bb0b09a69eae9968af7 to your computer and use it in GitHub Desktop.
Save dkorolev/aebcca0b2dc01bb0b09a69eae9968af7 to your computer and use it in GitHub Desktop.
A `Dockerfile` to build YugabyteDB from source.
FROM ubuntu:latest
RUN apt update
RUN apt upgrade -y
RUN apt install -y autoconf build-essential ccache curl file g++ gcc gettext git golang libffi-dev locales maven ninja-build npm patchelf pkg-config python3 python3-dev python3-venv rsync
# Somehow, the repo contains files with names longer than 255 characters.
# I bypassed this locally with a virtual filesystem.
# The build problem is the same though, so I assume it's OK to just ignore those files for this Dockerfile-based test.
RUN git clone https://github.com/yugabyte/yugabyte-db && echo OK || echo "Long file names, but sigh, proceeding."
RUN (cd yugabyte-db; ./yb_build.sh release)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment