- Shell 100%
| .bp-config/php/php.ini.d | ||
| htdocs@e2eb3bd5f7 | ||
| .cfignore | ||
| .gitignore | ||
| .gitmodules | ||
| deploy-nextcloud-on-scf.sh | ||
| manifest.yml | ||
| README.md | ||
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