Skip to content

Commit

Permalink
Merge remote-tracking branch 'apache/master' into release_notes_4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sijie committed Aug 8, 2017
2 parents a22285d + 755f8f6 commit 69f2b70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ENV BK_USER=bookkeeper
# Download Apache Bookkeeper, untar and clean up
RUN set -x \
&& adduser "${BK_USER}" \
&& yum install -y java-1.8.0-openjdk-headless wget bash python md5sum sha1sum \
&& yum install -y java-1.8.0-openjdk-headless wget bash python md5sum sha1sum sudo \
&& mkdir -pv /opt \
&& cd /opt \
&& wget -q "https://archive.apache.org/dist/bookkeeper/bookkeeper-${BK_VERSION}/${DISTRO_NAME}.tar.gz" \
Expand All @@ -45,7 +45,7 @@ RUN set -x \
&& tar -xzf "$DISTRO_NAME.tar.gz" \
&& mv bookkeeper-server-${BK_VERSION}/ /opt/bookkeeper/ \
&& rm -rf "$DISTRO_NAME.tar.gz" "$DISTRO_NAME.tar.gz.asc" "$DISTRO_NAME.tar.gz.md5" "$DISTRO_NAME.tar.gz.sha1" \
&& yum remove -y wget \
&& yum remove -y wget md5sum sha1sum \
&& yum clean all

WORKDIR /opt/bookkeeper
Expand Down
2 changes: 2 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ BK_zkLedgersRootPath = /ledgers
ZK_CONTAINER_NAME=test_zookeeper
ZK_LOCAL_DATA_DIR=$(BK_LOCAL_DATA_DIR)/zookkeeper

TERMINAL_EMULATOR=gnome-terminal

CONTAINER_IP=$(shell docker inspect --format '{{ .NetworkSettings.IPAddress }}' $(CONTAINER_NAME))

Expand Down Expand Up @@ -78,6 +79,7 @@ run-bk:
--volume $(BK_LOCAL_CONTAINER_DATA_DIR)/journal:$(BK_DIR)/journal \
--volume $(BK_LOCAL_CONTAINER_DATA_DIR)/ledger:$(BK_DIR)/ledger \
--volume $(BK_LOCAL_CONTAINER_DATA_DIR)/index:$(BK_DIR)/index \
--user "$(id -u)" \
--name "$(CONTAINER_NAME)" \
--hostname "$(CONTAINER_NAME)" \
--env BK_zkServers=$(ZK_CONTAINER_NAME):2181 \
Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ echo "BK_CLUSTER_ROOT_PATH is $BK_CLUSTER_ROOT_PATH"
mkdir -p "${BK_journalDirectory}" "${BK_ledgerDirectories}" "${BK_indexDirectories}"
# -------------- #
# Allow the container to be started with `--user`
if [ "$1" = 'bookkeeper' -a "$(id -u)" = '0' ]; then
if [ "$1" = '/opt/bookkeeper/bin/bookkeeper' -a "$(id -u)" = '0' ]; then
chown -R "$BK_USER:$BK_USER" "/opt/bookkeeper/" "${BK_journalDirectory}" "${BK_ledgerDirectories}" "${BK_indexDirectories}"
sudo -s -E -u "$BK_USER" /bin/bash "$0" "$@"
exit
Expand Down
2 changes: 1 addition & 1 deletion site/_config.apache.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
baseurl: /test/content/
baseurl: /
destination: generated_site/content

0 comments on commit 69f2b70

Please sign in to comment.