# Forgejo Cloudron App This repository contains the Cloudron app package source for [Forgejo](https://forgejo.org/). ## 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. To install, please set up [Cloudron CLI](https://cloudron.io/references/cli.html) on your system and then follow these instructions: #### 1. Log in to Docker Set up an account on [Docker Hub](https://hub.docker.com) if you don't already have one. From terminal: ``` sudo docker login ``` Enter your Docker username and password when prompted. #### 3. Get the code ``` git clone https://forge.lucidcocoon.scot/peacock/forgejo-cloudron-app.git cd forgejo-cloudron-app ``` #### 2. Build the docker image ``` sudo docker build -t /forgejo-cloudron-app: . ``` #### 3. Push the image to Docker ``` sudo docker push forgejo-cloudron-app: ``` #### 4. Install your Docker image to Cloudron ``` cloudron install --image /forgejo-cloudron-app: Location: ``` Open your browser to your Cloudron dashboard and you should see the app install. It may take a few minutes. ## 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 npm install PATH=$PATH:node_modules/.bin USERNAME= PASSWORD= mocha --bail test.js ```