Skip to content

Commit

Permalink
Merge pull request #3294 from wildloop/cf-docker
Browse files Browse the repository at this point in the history
Deploying Stratos as a CF App using docker image
  • Loading branch information
richard-cox authored Jan 10, 2019
2 parents 9c1a989 + 986fdb6 commit 35dfafb
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 11 deletions.
47 changes: 36 additions & 11 deletions deploy/cloud-foundry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,42 @@

## Deployment Steps

The quickest way to install Stratos is to deploy it as a Cloud Foundry application. To do so, clone the `stratos` repository, cd into the newly cloned repository and push to Cloud Foundry. This can be done with:

```
git clone https://github.com/cloudfoundry-incubator/stratos
cd stratos
git checkout tags/stable -b stable
./build/store-git-metadata.sh
cf push
```

>**NOTE** The console will pre-configure the host Cloud Foundry endpoint. No other CF instance can be registered unless the instructions in the section 'Enable Endpoints Dashboard to register additional Cloud Foundry endpoints' are followed.
The quickest way to install Stratos is to deploy it as a Cloud Foundry application.

You can do it in two ways:

1. Build Stratos from the [source code](https://github.com/cloudfoundry-incubator/stratos)

To do so, `clone` the **stratos** repository, `cd` into the newly cloned repository and `push` to Cloud Foundry. This can be done with:

```
git clone https://github.com/cloudfoundry-incubator/stratos
cd stratos
git checkout tags/stable -b stable
./build/store-git-metadata.sh
cf push
```

2. Deploy Stratos using the [`splatform/stratos`](https://hub.docker.com/r/splatform/stratos) docker image

> **NOTE:** To deploy Stratos in this way the CF Docker support have to be [enabled](https://docs.cloudfoundry.org/adminguide/docker.html#enable).
- download [manifest-docker.yml](../../manifest-docker.yml) or create your own manifest file:
```yaml
applications:
- name: console
docker:
image: splatform/stratos:stable
instances: 1
memory: 128M
disk_quota: 384M
```
- now, you can simply push it to Cloud Foundry:
```
cf push -f manifest-docker.yml
```

>**NOTE:** The console will pre-configure the host Cloud Foundry endpoint. No other CF instance can be registered unless the instructions in the section 'Enable Endpoints Dashboard to register additional Cloud Foundry endpoints' are followed.
All other deployment methods (helm, docker-compose, docker all-in-one, etc) allow the registration of multiple CF instances by default.

You will then be able to open a web browser and navigate to the console URL:
Expand Down
16 changes: 16 additions & 0 deletions manifest-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
applications:
- name: console
docker:
image: splatform/stratos:stable
instances: 1
memory: 128M
disk_quota: 384M
# services:
# - console_db
# env:
## Override CF API endpoint URL inferred from VCAP_APPLICATION env
# CF_API_URL: https://CLOUD_FOUNDRY_API_ENDPOINT
## Force the console to use secured communication with the Cloud Foundry API endpoint
# CF_API_FORCE_SECURE: true
## Turn on backend debugging
# LOG_LEVEL: debug

0 comments on commit 35dfafb

Please sign in to comment.