Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying Stratos as a CF App using docker image #3294

Merged
merged 3 commits into from
Jan 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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