harpoon has been renamed to nami

This commit is contained in:
Sameer Naik
2016-09-03 14:07:56 +05:30
parent dc19945a18
commit c9d0300752
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
FROM gcr.io/stacksmith-images/ubuntu:14.04-r8
FROM gcr.io/stacksmith-images/ubuntu:14.04-r9
MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_IMAGE_VERSION=1.4.25-r2 \
@@ -10,6 +10,6 @@ ENV PATH=/opt/bitnami/$BITNAMI_APP_NAME/sbin:/opt/bitnami/$BITNAMI_APP_NAME/bin:
COPY rootfs/ /
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["harpoon", "start", "--foreground", "memcached"]
CMD ["nami", "start", "--foreground", "memcached"]
EXPOSE 11211

View File

@@ -1,10 +1,10 @@
#!/bin/bash
set -e
if [[ "$1" == "harpoon" && "$2" == "start" ]]; then
status=`harpoon inspect $BITNAMI_APP_NAME`
if [[ "$1" == "nami" && "$2" == "start" ]]; then
status=`nami inspect $BITNAMI_APP_NAME`
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
harpoon initialize $BITNAMI_APP_NAME \
nami initialize $BITNAMI_APP_NAME \
${MEMCACHED_USER:+--username $MEMCACHED_USER} \
${MEMCACHED_PASSWORD:+--password $MEMCACHED_PASSWORD}
fi