2024-04-24 12:23:19 +00:00
# Forgejo Cloudron App
2015-07-29 13:16:45 +00:00
2024-04-24 12:23:19 +00:00
This repository contains the Cloudron app package source for [Forgejo ](https://forgejo.org/ ).
2015-08-19 16:54:06 +00:00
2015-11-24 21:29:18 +00:00
## Installation
2024-04-24 12:23:19 +00:00
Using the [Cloudron command line tooling ](https://cloudron.io/references/cli.html )
2015-11-24 21:29:18 +00:00
2024-04-24 12:23:19 +00:00
```
cloudron install --image rafaelcaricio/forgejo-cloudron-app:v7.0.0-1 --app code.caric.io
```
2015-11-24 21:29:18 +00:00
2024-04-24 12:23:19 +00:00
# Upgrading
Upgrade the `Dockerfile` with the version.
2015-11-24 21:29:18 +00:00
```
2024-04-24 12:23:19 +00:00
export VERSION=7.0.0
docker build --platform linux/amd64 -t "rafaelcaricio/forgejo-cloudron-app:v${VERSION}-1" .
docker push "rafaelcaricio/forgejo-cloudron-app:v${VERSION}-1"
cloudron update --image rafaelcaricio/forgejo-cloudron-app:v${VERSION}-1 --app code.caric.io --no-backup
2015-11-24 21:29:18 +00:00
```
## Building
The app package can be built using the [Cloudron command line tooling ](https://cloudron.io/references/cli.html ).
```
2024-04-24 12:23:19 +00:00
cd forgejo-app
2015-11-24 21:29:18 +00:00
cloudron build
cloudron install
```
## Testing
2015-11-24 21:59:52 +00:00
The e2e tests are located in the `test/` folder and require [nodejs ](http://nodejs.org/ ). They are creating a fresh build, install the app on your Cloudron, perform tests, backup, restore and test if the repos are still ok. The tests expect port 29418 to be available.
2015-11-24 21:29:18 +00:00
```
2017-06-02 08:32:24 +00:00
cd gitea-app/test
2015-11-24 21:29:18 +00:00
npm install
2017-06-02 09:20:27 +00:00
PATH=$PATH:node_modules/.bin USERNAME=< cloudron username > PASSWORD=< cloudron password > mocha --bail test.js
2015-11-24 21:29:18 +00:00
```