Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created August 19, 2017 20:59
Show Gist options
  • Save andyshinn/77c4d81fc880e381a0d27dbe80c9ac1f to your computer and use it in GitHub Desktop.
Save andyshinn/77c4d81fc880e381a0d27dbe80c9ac1f to your computer and use it in GitHub Desktop.
Building Riak 1.4.x CentOS 6 RPMs
FROM centos:6
RUN yum -y groupinstall "Development Tools" "Development Libraries"
RUN yum -y install wget git rpm-build
RUN yum -y install https://packages.erlang-solutions.com/rpm/centos/6/x86_64/esl-erlang-R15B03-2.x86_64.rpm

Riak 1.4.x RPM Builder

Docker image with the tools to build older Riak RPMs for CentOS 6. The same concept will probably work for CentOS 7 as well as other Riak 1.x versions.

Steps

  1. Clone the Riak repository: git clone https://github.com/basho/riak.git
  2. Checkout a known tag: cd riak && git checkout riak-1.4.12
  3. Build the image using supplied Dockerfile: docker build -t riakbuilder:centos-6 .
  4. Build the package: docker run -it -w /riak -v $PWD:/riak riakbuilder:centos-6 make package

The RPMs will be available at package/packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment