-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from wso2/2.1.x
API Manager 2.1.0 docker deployment patterns
- Loading branch information
Showing
547 changed files
with
6,099 additions
and
51,182 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
### This repository contains API Manager 2.1.0 distributed deployment with Docker compose | ||
|
||
![alt tag](https://github.com/wso2/docker-apim/blob/2.1.x/docker-compose/patterns/design/am-2.1.0-pattern-0.jpeg) | ||
|
||
## Pre-requisites | ||
|
||
* Docker | ||
* Docker compose | ||
|
||
#### Docker installation for linux | ||
``` | ||
wget -qO- https://get.docker.com/ | sh | ||
``` | ||
|
||
#### Docker installation for Mac | ||
|
||
https://docs.docker.com/docker-for-mac/ | ||
|
||
#### Docker installation for Windows | ||
|
||
https://docs.docker.com/docker-for-windows/ | ||
|
||
#### Docker Compose Installation | ||
|
||
https://docs.docker.com/compose/install/ | ||
|
||
|
||
#### How to run | ||
|
||
```docker login docker.wso2.com ``` | ||
|
||
```docker-compose pull``` | ||
|
||
```docker-compose up --build -d ``` | ||
|
||
This will deploy the following, | ||
|
||
* Mysql server (container) with apimdb, userdb, regdb | ||
* APIM Container | ||
* Nginx Load Balancer container and points the APIM components through the load balancer. | ||
|
||
|
||
#### How to test | ||
|
||
Add the following entries to the /etc/hosts | ||
``` | ||
127.0.0.1 api-manager | ||
``` | ||
If you are using docker machine, please use the docker machine IP instead of the local maGchine IP. | ||
|
||
#### How to access the environment | ||
|
||
Publisher | ||
|
||
``` | ||
https://api-manager/publisher | ||
``` | ||
|
||
Store | ||
|
||
``` | ||
https://api-manager/store/ | ||
``` | ||
|
||
|
||
Gateway Manager | ||
|
||
``` | ||
https://api-manager/carbon/ | ||
``` |
6 changes: 2 additions & 4 deletions
6
docker-compose/pattern-9/store/Dockerfile → ...-compose/pattern-0/api-manager/Dockerfile
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
FROM docker.wso2.com/wso2am:2.0.0 | ||
FROM docker.wso2.com/wso2am:2.1.0 | ||
|
||
COPY pattern-9/store/carbon/ /mnt/wso2-artifacts | ||
COPY pattern-0/api-manager/carbon/ /mnt/wso2-artifacts | ||
|
||
COPY artifacts/mysql-connector-java-5.1.34-bin.jar /mnt/wso2-artifacts/repository/components/lib/ | ||
|
||
USER root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.