swisscomdev

why does the 'cf run-task' command not work on swisscom cloudfoundry

爷,独闯天下 提交于 2019-12-06 07:01:23
I'm trying to get 'cf run-task' to work on the swisscom cloudfoundry instance. But it fails with even the simplest command: $ cf run-task hostapp "echo SUCCESS" --name task1 Creating task for app hostapp in org xxx / space yyy as xxx@yyy.com... Unexpected Response Response Code: 404 FAILED Is run-task not yet supported in cf api version 2.96.0? (which seems to be the current installed version on the swisscom env) The Swisscom Application Cloud has not activated the cf run-task feature yet. As of now, it's best to use cf ssh and then run the command manually from within your container or

Spring Boot HTTPS redirect loop after Swisscom Application Cloud update

寵の児 提交于 2019-12-05 19:42:08
We are using the Swisscom Application Cloud to run our Spring Boot application. After their "Migration to multi-cloud environment" on 2018-02-22 ( Swisscom Status Page ), our application completely failed to serve any request. The problem was found to be the automated redirection of HTTP to HTTPS. We were doing this in the SecurityConfiguration of our application like this: @Configuration public class SecurityConfiguration extends WebSecurityConfigurerAdapter { // [...] @Override protected void configure(HttpSecurity http) throws Exception { // [...] if (env.acceptsProfiles(SPRING_PROFILE

MariaDB Backup from the command line

青春壹個敷衍的年華 提交于 2019-12-02 09:14:27
问题 The Backup feature in the developer console for creating backups is great. I would however like the possibility to automate this. Is there a way to do so from the cf command line app? Thanks 回答1: It's not possible from the cf cli , but there's an API endpoint for triggering backups. API Docs | Custom Extensions | Swisscom Application Cloud Filter for Cloud Foundry (CF) Cloud Controller (CC) API. Implements Swisscom proprietary extensions POST /custom/service_instances/{service-instance-id}

How to download the app with the CLI from the Swisscom App Cloud?

血红的双手。 提交于 2019-12-02 07:30:36
问题 I am trying to download my app wich is currently running in the Swisscom App Cloud. Therefore I installed the cf-download plugin. My command: cf download app-name /public --verbose --omit /vendors --overwrite After running this command I get the following error: The app is running on the Diego backend, which does not support this command. Is cf download thus not possible in the Swisscom App Cloud? I've tried cf files as well. Same error. 回答1: You can do that with an API call Apps API

MariaDB Backup from the command line

醉酒当歌 提交于 2019-12-02 06:12:56
The Backup feature in the developer console for creating backups is great. I would however like the possibility to automate this. Is there a way to do so from the cf command line app? Thanks It's not possible from the cf cli , but there's an API endpoint for triggering backups. API Docs | Custom Extensions | Swisscom Application Cloud Filter for Cloud Foundry (CF) Cloud Controller (CC) API. Implements Swisscom proprietary extensions POST /custom/service_instances/{service-instance-id}/backups Creates a backup for a given service instance See for more Info Service Backup and Restore in docs

How to download the app with the CLI from the Swisscom App Cloud?

筅森魡賤 提交于 2019-12-02 04:02:09
I am trying to download my app wich is currently running in the Swisscom App Cloud. Therefore I installed the cf-download plugin. My command: cf download app-name /public --verbose --omit /vendors --overwrite After running this command I get the following error: The app is running on the Diego backend, which does not support this command. Is cf download thus not possible in the Swisscom App Cloud? I've tried cf files as well. Same error. You can do that with an API call Apps API Downloads the staged droplet for an App GET /v2/apps/:guid/droplet/download When using a remote blobstore, such as

Cannot run Cloudfoundry Task - Unexpected Response 404

烂漫一生 提交于 2019-11-29 13:45:28
After my app is successfully pushed via cf I usually need do manually ssh-log into the container and execute a couple of PHP scripts to clear and warmup my cache, potentially execute some DB schema updates etc. Today I found out about Cloudfoundry Tasks which seems to offer a pretty way to do exactly this kind of things and I wanted to test it whether I can integrate it into my build&deploy script. So used cf login, got successfully connected to the right org and space, app has been pushed and is running and I tried this command: cf run-task MYAPP "bin/console doctrine:schema:update --dump-sql