mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-04 04:22:50 +00:00
39 lines
775 B
Markdown
39 lines
775 B
Markdown
# Open StApps Monorepo
|
|
|
|
## Remote caching
|
|
|
|
Turbo supports remote caching, which massively speeds up build processes.
|
|
|
|
### Connecting to the remote cache locally
|
|
|
|
`.env.local`
|
|
```dotenv
|
|
TURBO_API=http://example:3000
|
|
TURBO_TEAM=openstapps
|
|
TURBO_TOKEN=abc123
|
|
```
|
|
|
|
### Connecting to the remote cache in GitLab Pipelines
|
|
|
|
You will need to define
|
|
* `TURBO_API`
|
|
* `TURBO_TEAM`
|
|
* `TURBO_TOKEN`
|
|
Like you did locally as described in [this](https://turbo.build/repo/docs/ci/gitlabci#remote-caching)
|
|
guide.
|
|
|
|
### Hosting a cache
|
|
|
|
Self-hosting via Docker is extremely simple, just follow
|
|
[this](http://v2202207178592194230.supersrv.de:6341) guide
|
|
or in short:
|
|
|
|
`.env`
|
|
```dotenv
|
|
PORT=...
|
|
TURBO_TOKEN=...
|
|
```
|
|
```shell
|
|
docker run --env-file=.env -p 3000:3000 fox1t/turborepo-remote-cache
|
|
```
|