Created
December 8, 2014 13:05
-
-
Save kuenishi/d8b4136991fa22894e61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
cd riak_cs | |
git pull | |
#git checkout branchname-as-you-like | |
git status | |
make package | |
cp package/packages/* /package | |
cd ../stanchion | |
git pull | |
#git checkout branchname-as-you-like | |
make package | |
cp package/packages/* /package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos6 | |
MAINTAINER Kota Uenishi <kuenishi@gmail.com> | |
RUN yum install -y gcc make git | |
RUN git clone git://github.com/basho/otp -b basho_OTP_R15B01_scheduler_patch | |
## https://bugs.centos.org/view.php?id=7126 | |
## if CentOS 6.5; do this. And should be removed at CentOS >= 6.6 | |
RUN yum install -y --enablerepo=centosplus openssl-devel | |
RUN yum install -y autoconf ncurses-devel tar | |
RUN (cd otp && ./otp_build autoconf) | |
RUN (cd otp && ./configure --enable-m64-build --disable-hipe --enable-dtrace --without-javac) | |
RUN (make -C otp -j 4) | |
RUN (make install -C otp) | |
RUN erl -version | |
RUN git clone git://github.com/basho/riak_cs -b release/1.5 | |
RUN git clone git://github.com/basho/stanchion -b release/1.5 | |
RUN yum install -y which rpm-build | |
ADD ./build-riak-cs.sh / | |
# Create known_hosts | |
RUN mkdir -p /root/.ssh | |
RUN chown -R root:root /root/.ssh | |
RUN touch /root/.ssh/known_hosts | |
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: tag rpm | |
all: rpm | |
tag: | |
@cp ../*.sh . | |
@docker build -t "riak-cs-1.5-centos6" . | |
rpm: tag | |
@docker run -v `pwd`:/package riak-cs-1.5-centos6 sh build-riak-cs.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment