Skip to content

Commit

Permalink
Merge pull request #182 from rajeshm7910/master
Browse files Browse the repository at this point in the history
sidecars download script
  • Loading branch information
srinandan authored Aug 8, 2018
2 parents 8c087e2 + 84271b9 commit 060b8c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
10 changes: 4 additions & 6 deletions kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ Edge Microgateway can be deployed as a service or as a sidecar gateway in front
```
If you are downloading a particular version, use this command :
```
curl -L https://raw.githubusercontent.com/apigee-internal/microgateway/master/kubernetes/release/downloadEdgeMicrok8s.sh | sh -s 2.5.24-beta
curl -L https://raw.githubusercontent.com/apigee-internal/microgateway/master/kubernetes/release/downloadEdgeMicrok8s.sh | sh -s 2.5.25-beta
```
2. It extracts the package in the current location with a folder named microgateway-os-arch
2. It extracts the package in the current location with a folder named microgateway_version_os_arch
* Installation .yaml files for Kubernetes in install/
* Sample applications in samples/
* The edgemicroctl client binary in the bin/ directory. edgemicroctl is used when manually injecting Edgemicro as a sidecar gateway or Service.
3. Change directory to microgateway package. For example, if the package is microgateway_Darwin_x86_64
3. Change directory to microgateway package. For example, if the package is microgateway_2.5.25-beta_Darwin_x86_64
```
cd microgateway_Darwin_x86_64
cd microgateway_2.5.25-beta_Darwin_x86_64
```
4. Add the edgemicroctl client to your PATH. For example, run the following command on a MacOS or Linux
system:
Expand Down Expand Up @@ -228,8 +228,6 @@ Use the svc parameter to pass your service file. See the helloworld sample below
### Automatic Sidecar Injection
[here](./docs/automatic_sidecar.md)
### Running Bookinfo sample
[here](./docs/bookinfo.md)
### Container Ports and Service Ports for Sidecars
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/docs/automatic_sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Usage: ./install/kubernetes/webhook-edgemicro-patch.sh [option...]
-r, --api_base_path API Base path needed if its Private Cloud
-u, --user * Apigee Admin Email
-p, --password * Apigee Admin Password
-t, --token * Apigee Oauth Token
-t, --token * Apigee Oauth Token File (Absolute Path)
-n, --namespace Namespace where your application is deployed. Default is default
-k, --key * Edgemicro Key. If not specified it will generate.
-s, --secret * Edgemicro Secret. If not specified it will generate.
Expand Down
5 changes: 2 additions & 3 deletions kubernetes/release/downloadEdgeMicrok8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ else
fi


NAME="microgateway_${OSEXT}"
NAME="microgateway_${EDGEMICRO_VERSION}_${OSEXT}"


URL="https://github.com/apigee-internal/microgateway/releases/download/${EDGEMICRO_VERSION}/${NAME}.tar.gz"
echo "Downloading $NAME from $URL ..."

mkdir -p $NAME && cd $NAME && curl -L "$URL" | tar xz && mkdir -p bin && mv edgemicroctl bin/edgemicroctl
curl -L "$URL" | tar xz && cd $NAME && mkdir -p bin && mv edgemicroctl bin/edgemicroctl

# TODO: change this so the version is in the tgz/directory name (users trying multiple versions)
echo "done"

echo "Downloaded into $NAME:"

Expand Down

0 comments on commit 060b8c9

Please sign in to comment.