Installing a Coreapp

Install an app from its repository, keep it up to date, go back to an older version, or remove it.

You install a Coreapp from its git repository, such as https://gitea.example.com/my-team/timesheets. The Core reads the app’s coreapp.toml and icon from the repository, pulls its published image, and sets up what it needs. Nothing else from the repository runs on your Core.

Before you install

  • Trust the publisher. A Coreapp gets the Core’s sign-in, a database, and an email account, and people will put their work into it. Install apps from people or projects you trust.
  • Private apps need a token. If the repository or its image is private, give your Core a token first. See Private Coreapps.
  • Check the name is free. An app can’t use the name of one of Federated’s applications (installed or not) or one of the Core’s own addresses, such as mail or www. If it does, the developer has to rename it.

Install an app

  1. See what installing would do, without changing anything:

    coreapps plan https://gitea.example.com/my-team/timesheets
    

    It shows the app’s name and version, the release tag and commit it would install, its image, what it needs from the Core (postgres, mysql, sso, email), and its address, for example https://timesheets.example.com/.

  2. Install it:

    coreapps install https://gitea.example.com/my-team/timesheets
    

    Without a tag, it installs the newest release (the highest v1.2.3-style tag). To install a particular release, add it to the address: https://gitea.example.com/my-team/timesheets@v1.2.0.

  3. When it finishes, it prints the app’s address. The app appears in your dashboard and in Superpanel.

Who can sign in

If the app signs in with Core accounts (it needs sso), anyone with an account on your Core can sign in with Core SSO, without an invitation:

  • The Core’s admin account (admin@example.com) is always an admin of the app. It signs in only through Core SSO; nobody can claim that role by signing up inside the app.
  • Everyone else starts with the app’s lowest role, usually read-only. The app’s admins give people more access inside the app.

Update an app

coreapps update timesheets

This installs the newest release from the repository the app came from. Its settings, data, and database are kept.

Before updating, the Core keeps a copy of the app’s settings, its database, and its files. If the new version doesn’t start, the update is rolled back automatically and the app runs as it did before. The Core checks there’s room on its disk for the database’s copy first, and leaves the app alone if there isn’t.

Go back to an older version

Installing an older release than the one installed is refused, because the older version may not understand what the newer one left in its database and files. If you’re sure, add --downgrade:

coreapps install --downgrade https://gitea.example.com/my-team/timesheets@v1.1.0

See what’s installed

coreapps list

lists the Coreapps on the Core: each one’s version, whether it’s running, and the repository and release it was installed from.

Remove an app

coreapps remove timesheets