---
# System prepended metadata

title: PLATFORM AS A SERVICE - CLOUD FOUNDRY

---

# PLATFORM AS A SERVICE - CLOUD FOUNDRY
### Kevin Bütikofer, Charles-Lewis Jaggi
## Connexion à cloud foundary
![](https://i.imgur.com/j762OXd.png)


![](https://i.imgur.com/PiHNHSo.png)


![](https://i.imgur.com/YZTPW0G.png)


![](https://i.imgur.com/5Qg3lOa.png)
On utilise le script supply

d'après la documentation de la commande push ${random-route} permet de rendre la route(url d'accès) unique.

Url : https://cf-demo-courteous-mouse.cfapps.io/

![](https://i.imgur.com/30NGsLQ.png)

Url : https://cf-demo-12.cfapps.io/

On voit qu'on a reussi à mettre le nom du groupe dans l'url

### Scale app on three instances
```
cf scale cf-demo -i 3 -m 600M
```

### Instance infos

![](https://i.imgur.com/Zj7MC5X.png)


plugin repo :

![](https://i.imgur.com/CD48foV.png)

### Statistics

![](https://i.imgur.com/gDAYkBS.png)



What other statistics (beside your applications) do you get?
* Container List with the ressource they use
* Events
* Response time
* Crash Info


## Task 3

### Where is the data stored?
```
\spring-music\src\main\resources
```
### Does it persist between application restarts?
No, the file is reloaded on startup

### What services are available in the marketplace?
* Application Tier Networking & Gateway
* CF Tooling
* Data Management
* DevOps Tooling
* Identity & Security
* Messaging & Integration
* Microservices Management
* Monitoring, Metrics & Logging


### Create database instance
```
cf create-service elephantsql turtle cf-spring-music-db
```
### Bind the database
```
cf bind-service spring-music cf-spring-music-db
```

### Route
* Create
```
cf create-route development cfapps.io --hostname spring-music-12
```
* Route
```
cf map-route spring-music cfapps.io --hostname spring-music-12
```
![](https://i.imgur.com/ixBWceC.png)


## Spring Music App
![](https://i.imgur.com/Qv4eqfD.png)
