STACKIT Cloud Foundry SCF Example application: Nextcloud
Find a file
2026-01-21 17:24:48 +01:00
.bp-config/php/php.ini.d Initial: Finally something nontrivial working on SCF 2026-01-21 17:16:40 +01:00
htdocs@e2eb3bd5f7 Initial: Finally something nontrivial working on SCF 2026-01-21 17:16:40 +01:00
.cfignore Initial: Finally something nontrivial working on SCF 2026-01-21 17:16:40 +01:00
.gitignore Initial: Finally something nontrivial working on SCF 2026-01-21 17:16:40 +01:00
.gitmodules Initial: Finally something nontrivial working on SCF 2026-01-21 17:16:40 +01:00
deploy-nextcloud-on-scf.sh Initial: Finally something nontrivial working on SCF 2026-01-21 17:16:40 +01:00
manifest.yml Initial: Finally something nontrivial working on SCF 2026-01-21 17:16:40 +01:00
README.md Bit more docs 2026-01-21 17:24:48 +01:00

Deploying Nextcloud on STACKIT Cloud Foundry (SCF)

This repository contains the files neccessary to deploy the Nextcloud PHP/NPM application straight from its git repository.

This repository builds upon git submodules (also because the nextcloud repository builds on submodules). Furthermore, these code repositories are rather large. Therfore, when cloning this repo, the following two flags are recommended:

git clone --recurse-submodules --shallow-submodules <git-remote>

You can then straight inspect and execute ./deploy-nextcloud-on-scf.sh. It will build the javascript codes and push the directory to Source Foundry. In order to have this work, you not only need the dependencies installed on your system (in particular nodejs) but also need to be logged in at SCF. Make sure you do so with cf login --sso before running the script.

Contents of this repository

This repository is only a very tiny shim over the actual nextcloud code repository. It also exploits the trick that the PHP buildpack requires code to live within the htdocs subdirectory. This is where the git submodule is intentionally located.

Make sure you don't miss the .bp-config/ and .cfignore hidden files which are relevant for SCF.

How this repo was iniitially created

git submodule add --depth 1 https://github.com/nextcloud/server.git
git config -f .gitmodules submodule.htdocs.shallow true
git submodule update --init --recursive # checks out htdocs/3rdparty