mirror of
https://github.com/bitnami/containers.git
synced 2026-03-02 16:17:31 +08:00
harpoon has been renamed to nami
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user