File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -83,18 +83,13 @@ endif::[]
8383endif::docker[]
8484
8585ENV RIAK_VERSION {{riak_version}}
86+ ENV RIAK_HOME {{riak_home}}
8687ifndef::riak_ts[]
8788ENV RIAK_FLAVOR KV
8889endif::[]
8990ifdef::riak_ts[]
9091ENV RIAK_FLAVOR TS
9192endif::[]
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::[]
9893ifeval::["{pkg_format}" == "tgz"]
9994RUN \
10095 mkdir -p $RIAK_HOME && \
@@ -128,7 +123,7 @@ ifdef::centos[]
128123RUN yum groups install -y 'Development Tools'
129124RUN yum install -y openssl-devel python-devel libffi-devel python-pip
130125endif::[]
131- RUN pip install --upgrade pip cryptography riak
126+ RUN pip install --upgrade pip cryptography pyparsing appdirs riak
132127endif::riak_client[]
133128
134129# Expose default ports
@@ -151,7 +146,7 @@ RUN mkdir -p /etc/riak/schemas
151146
152147WORKDIR /var/lib/riak
153148
154- CMD ["$RIAK_HOME /riak-cluster.sh"]
149+ CMD ["{{riak_home}} /riak-cluster.sh"]
155150
156151# Clean up APT cache
157152RUN rm -rf /var/lib/apt/lists/* /tmp/*
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ $RIAK_ADMIN wait-for-service riak_kv
4646# Run all poststart scripts
4747POSTSTART=$( find /etc/riak/poststart.d -name * .sh -print | sort)
4848for s in $POSTSTART ; do
49- . $
49+ . $s
5050done
5151
5252# Trap SIGTERM and SIGINT and tail the log file indefinitely
Original file line number Diff line number Diff line change 1+ :riak_home: /usr/lib/riak
12:riak_flavor: kv
23ifeval::["{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
5355endif::[]
5456ifeval::["{os_family} " == "osx"]
5557:!ubuntu:
You can’t perform that action at this time.
0 commit comments