Skip to content

Commit 42244e9

Browse files
committed
Update build and tests to reflect latest changes from PR
1 parent cfaee24 commit 42244e9

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

README.adoc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,13 @@ endif::[]
8383
endif::docker[]
8484
8585
ENV RIAK_VERSION {{riak_version}}
86+
ENV RIAK_HOME {{riak_home}}
8687
ifndef::riak_ts[]
8788
ENV RIAK_FLAVOR KV
8889
endif::[]
8990
ifdef::riak_ts[]
9091
ENV RIAK_FLAVOR TS
9192
endif::[]
92-
ifdef::ubuntu,debian[]
93-
ENV RIAK_HOME /usr/lib/riak
94-
endif::[]
95-
ifdef::centos[]
96-
ENV RIAK_HOME /usr/lib64/riak
97-
endif::[]
9893
ifeval::["{pkg_format}" == "tgz"]
9994
RUN \
10095
mkdir -p $RIAK_HOME && \
@@ -128,7 +123,7 @@ ifdef::centos[]
128123
RUN yum groups install -y 'Development Tools'
129124
RUN yum install -y openssl-devel python-devel libffi-devel python-pip
130125
endif::[]
131-
RUN pip install --upgrade pip cryptography riak
126+
RUN pip install --upgrade pip cryptography pyparsing appdirs riak
132127
endif::riak_client[]
133128
134129
# Expose default ports
@@ -151,7 +146,7 @@ RUN mkdir -p /etc/riak/schemas
151146
152147
WORKDIR /var/lib/riak
153148
154-
CMD ["$RIAK_HOME/riak-cluster.sh"]
149+
CMD ["{{riak_home}}/riak-cluster.sh"]
155150
156151
# Clean up APT cache
157152
RUN rm -rf /var/lib/apt/lists/* /tmp/*

riak-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $RIAK_ADMIN wait-for-service riak_kv
4646
# Run all poststart scripts
4747
POSTSTART=$(find /etc/riak/poststart.d -name *.sh -print | sort)
4848
for s in $POSTSTART; do
49-
. $
49+
. $s
5050
done
5151

5252
# Trap SIGTERM and SIGINT and tail the log file indefinitely

vars.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
:riak_home: /usr/lib/riak
12
:riak_flavor: kv
23
ifeval::["{riak_flavor}" == "kv"]
34
:!riak_ts:
@@ -50,6 +51,7 @@ ifeval::["{os_family}" == "centos"]
5051
:!osx:
5152
:pkg_format: rpm
5253
:python_lib_dir: /usr/lib/python{python_version}/site-packages
54+
:riak_home: /usr/lib64/riak
5355
endif::[]
5456
ifeval::["{os_family}" == "osx"]
5557
:!ubuntu:

0 commit comments

Comments
 (0)