Skip to content

Commit

Permalink
Fixed issue #410: installation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vitan committed Sep 13, 2016
1 parent 5b58597 commit 100dd6a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -36,8 +36,16 @@ TODO: Let's deploy the demo.

### Option 1: Stable version in one line

For Chinese guys (pull images from catalog.shurenyun.com):

```bash
cd release && ./install.sh v1.0.4
```

For others (pull images from hub.docker.com):

```bash
bash -c "$(curl http://ocrqkagax.bkt.clouddn.com/install.sh)" -s v1.0.4
cd release && ./install.sh v1.0.4 2breakfast/
```

### Option 2: Latest or development from docker build
Expand Down
5 changes: 4 additions & 1 deletion release/install.sh
Expand Up @@ -12,6 +12,9 @@ then
CRANE_RELEASE=v1.0.4
fi

# setup registry prefix
REGISTRY_PREFIX=$2

# make sure curl command exists
if ! command -v curl
then
Expand All @@ -28,5 +31,5 @@ curl -sSL ${CRANE_TAR_URL} | tar xvzf -
echo "Enter IP address that your want bind Crane service [ENTER]"
read listener_ip

cd crane && CRANE_IP=${listener_ip} VERSION=${CRANE_RELEASE} ./deploy.sh
cd crane && CRANE_IP=${listener_ip} VERSION=${CRANE_RELEASE} REGISTRY_PREFIX=${REGISTRY_PREFIX} ./deploy.sh
cd -

0 comments on commit 100dd6a

Please sign in to comment.