Skip to content

Commit

Permalink
ci: use docker zlog/ci image in travis
Browse files Browse the repository at this point in the history
Signed-off-by: Noah Watkins <[email protected]>
  • Loading branch information
dotnwat committed Oct 28, 2015
1 parent bc91234 commit 7d7993e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 62 deletions.
56 changes: 5 additions & 51 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,10 @@
language: cpp
sudo: required

compiler:
- gcc
- clang
services:
- docker

before_install:
- sudo apt-get update
- pushd /tmp
- git clone --recursive https://github.com/noahdesu/ceph.git
- cd ceph
- git checkout origin/cls_zlog
- ./install-deps.sh
- ./autogen.sh
- ./configure
- cd src
- make libcls_zlog.la
- make libcls_zlog_client.la
- popd
- ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- chmod 600 ~/.ssh/authorized_keys
- sudo pip install ceph-deploy
- ceph-deploy install --dev master `hostname`
- ceph-deploy pkg --install librados-dev `hostname`
- sudo cp /tmp/ceph/src/.libs/libcls_zlog.so* /usr/lib/rados-classes/
- bash ci/micro-osd.sh /tmp/micro-ceph
- export CEPH_CONF=/tmp/micro-ceph/ceph.conf
- ceph status
- sudo apt-get install libprotobuf-dev protobuf-compiler

install:
- autoreconf -ivf
- mkdir -p /tmp/install/rados/
- cp /tmp/ceph/src/cls/zlog/cls_zlog_client.h /tmp/install/rados
- CPPFLAGS=-I/tmp/install LDFLAGS=-L/tmp/ceph/src/.libs ./configure
- make
- docker pull zlog/ci

script:
- cd src
- export LD_LIBRARY_PATH=/tmp/ceph/src/.libs:$LD_LIBRARY_PATH
- ./zlog-seqr --port 5678 --daemon
- ./test

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang

sudo: required
services:
- docker
- docker run zlog/ci
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Zlog - a distributed shared log for ceph

<!--
[![Build Status](https://travis-ci.org/noahdesu/zlog.svg)](https://travis-ci.org/noahdesu/zlog)
-->

Zlog is a strongly consistent shared log designed to run on top of Ceph.
Specifically, it is an implementation of the CORFU protocol adapted for RADOS,
Expand Down
9 changes: 0 additions & 9 deletions docker/ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ RUN mkdir /src && cd /src && \
cd .. && \
make clean

# install zlog
RUN cd /src && \
apt-get install -y libprotobuf-dev protobuf-compiler && \
git clone https://github.com/noahdesu/zlog.git && \
cd zlog && \
autoreconf -ivf && \
./configure && \
make

ADD micro-osd.sh /src/micro-osd.sh
ADD entrypoint.sh /entrypoint.sh

Expand Down
10 changes: 10 additions & 0 deletions docker/ci/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ set -e
mkdir /tmp/ceph
bash /src/micro-osd.sh /tmp/ceph

# install zlog. this is done in the entry point so it will
# pull the latest zlog source each time the container is run
cd /src
apt-get install -y libprotobuf-dev protobuf-compiler
git clone https://github.com/noahdesu/zlog.git
cd zlog
autoreconf -ivf
./configure
make

cd /src/zlog/src
export CEPH_CONF=/tmp/ceph/ceph.conf
./zlog-seqr --port 5678 --daemon
Expand Down

0 comments on commit 7d7993e

Please sign in to comment.