Skip to content

Commit a487064

Browse files
committed
Added Riak 2.2, updated versions of riak explorer and changed the way the riak python client gets installed
1 parent 5a885b9 commit a487064

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55

66
before_script:
77
- gem install asciibuild
8-
- '[ "false" == "$TRAVIS_PULL_REQUEST" ] && docker login -u $DOCKER_USER -p $DOCKER_PASSWORD'
8+
- '[ "false" == "$TRAVIS_PULL_REQUEST" ] && docker login -u $DOCKER_USER -p $DOCKER_PASSWORD'
99

1010
script:
1111
- travis_retry asciibuild $ASCIIBUILD_OPTS -a travis=$TRAVIS -a skip_publish=$TRAVIS_PULL_REQUEST README.adoc
@@ -15,12 +15,15 @@ env:
1515
- RIAK_TS_VERSION=1.5.0
1616
- RIAK_20_VERSION=2.0.7
1717
- RIAK_21_VERSION=2.1.4
18+
- RIAK_22_VERSION=2.2.0
1819
matrix:
1920
- ASCIIBUILD_OPTS="-a os_family=centos -a os_version=7 -a riak_flavor=kv -a riak_version=$RIAK_20_VERSION"
2021
- ASCIIBUILD_OPTS="-a os_family=centos -a os_version=7 -a riak_flavor=kv -a riak_version=$RIAK_21_VERSION"
22+
- ASCIIBUILD_OPTS="-a os_family=centos -a os_version=7 -a riak_flavor=kv -a riak_version=$RIAK_22_VERSION"
2123
- ASCIIBUILD_OPTS="-a os_family=centos -a os_version=7 -a riak_flavor=ts -a riak_version=$RIAK_TS_VERSION"
2224
- ASCIIBUILD_OPTS="-a os_family=ubuntu -a os_version=14.04 -a riak_flavor=kv -a riak_version=$RIAK_20_VERSION"
23-
- ASCIIBUILD_OPTS="-a os_family=ubuntu -a os_version=14.04 -a riak_flavor=kv -a riak_version=$RIAK_21_VERSION -a latest"
25+
- ASCIIBUILD_OPTS="-a os_family=ubuntu -a os_version=14.04 -a riak_flavor=kv -a riak_version=$RIAK_21_VERSION"
26+
- ASCIIBUILD_OPTS="-a os_family=ubuntu -a os_version=14.04 -a riak_flavor=kv -a riak_version=$RIAK_22_VERSION -a latest"
2427
- ASCIIBUILD_OPTS="-a os_family=ubuntu -a os_version=14.04 -a riak_flavor=ts -a riak_version=$RIAK_TS_VERSION -a latest"
2528
- ASCIIBUILD_OPTS="-a os_family=debian -a os_version=8 -a riak_flavor=ts -a riak_version=$RIAK_TS_VERSION"
2629

@@ -31,4 +34,4 @@ deploy:
3134
bucket: basho-ci-logs
3235
local_dir: abuild
3336
upload-dir: $TRAVIS_REPO_SLUG/$TRAVIS_BRANCH
34-
skip_cleanup: true
37+
skip_cleanup: true

README.adoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,15 @@ endif::riak_explorer[]
121121
122122
ifdef::riak_client[]
123123
# Install the Python client
124-
RUN \
125-
cd {{python_lib_dir}} && \
126-
curl -sSLO https://pypi.python.org/packages/{{python_version}}/r/riak/riak-{{riak_client_version}}-py{{python_version}}.egg && \
127-
curl -sSLO https://pypi.python.org/packages/{{python_version}}/p/protobuf/protobuf-{{protobuf_version}}-py{{python_version}}.egg && \
128-
unzip -o riak-{{riak_client_version}}-py{{python_version}}.egg && \
129-
unzip -o protobuf-{{protobuf_version}}-py{{python_version}}.egg
124+
ifdef::ubuntu,debian[]
125+
RUN apt-get install -y build-essential libssl-dev
126+
RUN apt-get install -y python-pip
127+
endif::[]
128+
ifdef::centos[]
129+
RUN yum groups install -y 'Development Tools'
130+
RUN yum install -y openssl-devel python-pip
131+
endif::[]
132+
RUN pip install --upgrade pip riak
130133
endif::riak_client[]
131134
132135
# Expose default ports
@@ -282,6 +285,7 @@ STATUS=$(docker exec <% riak_pkg %> riak-admin cluster status --format csv | tai
282285
[ "$(echo $STATUS)" == "up up up" ]
283286
----
284287

288+
ifdef::riak_explorer[]
285289
== Test Bucket Type Bootstrapping
286290

287291
This Docker image has support for automatically boostrapping bucket types and TS tables. Files in `/etc/riak/schemas/` that end in `.dt` will be read and the name of the file (minus the extension `.dt`) will be used as the bucket name and the contents of the file should contain a single line, which is the bucket type to use.
@@ -330,6 +334,7 @@ fi
330334
# Remove the container
331335
docker rm -f $SCHEMAS_CONTAINER || true
332336
----
337+
endif::riak_explorer[]
333338

334339
ifdef::riak_client[]
335340
== Test Riak Client

vars.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ ifeval::["{riak_flavor}" == "ts"]
77
:riak_ts:
88
:riak_pkg: riak-ts
99
endif::[]
10-
:riak_version: 2.1.4
10+
:riak_version: 2.2.0
1111
:riak_tag: riak-{riak_flavor}:{riak_version}
1212
:riak_explorer:
13-
:riak_explorer_version: 1.2.3
13+
:riak_explorer_version: 1.4.1
1414
:python_version: 2.7
1515
:python_lib_dir: /usr/lib/python{python_version}/dist-packages
1616
:riak_client:
17-
:riak_client_version: 2.4.2
17+
:riak_client_version: 2.7.0
1818
:protobuf_version: 2.6.1
1919
:os_family: ubuntu
2020
:os_version: 14.04

0 commit comments

Comments
 (0)