forgejo-cloudron-app/README.md

53 lines
1.9 KiB
Markdown
Raw Normal View History

# Forgejo Cloudron App
This repository contains the Cloudron app package source for [Forgejo](https://forgejo.org/).
2024-03-21 22:38:38 +00:00
## Installation
Per the Cloudron [packaging guidelines](https://docs.cloudron.io/packaging/publishing/), this app is not packaged for the Cloudron app store and will not be until the Cloudron team decides they're willing to take on the [maintenance burden](https://forum.cloudron.io/post/80377).
The app expects to use port `29418`, so please ensure you have no Cloudron apps installed that are using that port.
2024-03-21 22:38:38 +00:00
To install, please set up [Cloudron CLI](https://cloudron.io/references/cli.html) on your system and then follow these instructions:
2024-03-21 22:38:38 +00:00
#### 1. Log in to Docker
Set up an account on [Docker Hub](https://hub.docker.com) if you don't already have one.
2024-03-21 22:38:38 +00:00
From terminal:
2024-03-21 22:38:38 +00:00
```
sudo docker login
2024-03-21 22:38:38 +00:00
```
Enter your Docker username and password when prompted.
2024-03-21 22:38:38 +00:00
#### 3. Get the code
```
git clone https://forge.lucidcocoon.scot/peacock/forgejo-cloudron-app.git
cd forgejo-cloudron-app
```
2024-03-21 22:38:38 +00:00
#### 2. Build the docker image
```
sudo docker build -t <username>/forgejo-cloudron-app:<version> .
```
2024-03-21 22:38:38 +00:00
#### 3. Push the image to Docker
```
sudo docker push forgejo-cloudron-app:<version>
2024-03-21 22:38:38 +00:00
```
#### 4. Install your Docker image to Cloudron
2024-03-21 22:38:38 +00:00
```
cloudron install --image <username>/forgejo-cloudron-app:<version>
Location: <app.domain.tld>
```
Open your browser to your Cloudron dashboard and you should see the app install. It may take a few minutes.
2024-03-21 22:38:38 +00:00
## Testing
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.
```
cd forgejo-cloudron-app/test
2024-03-21 22:38:38 +00:00
npm install
PATH=$PATH:node_modules/.bin USERNAME=<cloudron username> PASSWORD=<cloudron password> mocha --bail test.js
```