-
Notifications
You must be signed in to change notification settings - Fork 132
Contribute
Note: If you just want to install a container into the Cloudbox system without creating a role, see this article.
That work will also help you determine what you will need to do in a Community role, so starting there would not be wasted effort.
If you want to create a Community role to allow others to install your role, keep reading.
Start by making your own fork of the community repo by clicking on the "Fork" button up and to the right.
This will take you to your own copy of the community repo.
On your development machine [which should probably be a machine running cloudbox, as it makes things easier with regard to testing]:
-
clone your community fork:
git clone https://github.com/YOURNAMEHERE/Community.git community
-
go into that local community dir:
cd community
-
make sure your local repo is up-to-date:
git pull
-
create your feature branch:
git checkout -b my-cool-role
Now you're ready to start work on your new role.
A good starting point is to find a role that is similar to the one you want to add and use it as a starting point. For example, if your container requires mariadb and you want to create a database during setup, bookstack does that.
-
copy the "starting point" role to your role:
cp -R roles/bookstack roles/my-cool-role
[of course, substitute whatever role you're using as your prototype for "bookstack"]
Next step is to create the role. At a minimum, you will need to modify:
roles/my-cool-role/tasks/main.yml
appveyor.yml
community.yml
There may be other things required; there may be templates or sub-tasks or what have you. Those three files are the absolute bare minimum that would need to be created to add a new role.
If you want to make a change to an existing role [for example, changing the docker image it uses], you don't have [or want to] to create a new role. You just need to edit the existing role file. There are no changes required in appveyor.yml
or community.yml
.
roles/my-cool-role/tasks/main.yml
This is the file that drives the install of your role. The stuff in there should be self-explanatory or understandable with comparisons to existing roles; if it's not, then with all respect you probably shouldn't be creating a role right now.
There is a wiki article on adding new containers here; this may be of some use.
Don't forget the header:
#########################################################################
# Title: Community: MY COOL ROLE #
# Author(s): YOUR NAME HERE #
# URL: https://github.com/Cloudbox/Community #
# Docker Image(s): SOMEBODY/IMAGENAME #
# -- #
# Part of the Cloudbox project: https://cloudbox.works #
#########################################################################
# GNU General Public License v3.0 #
#########################################################################
Be sure you edit this to reflect your role, name, and image
[COMMUNITY REPO ROOT]/.github/workflows/ci.yml
This file drives the automated testing system. It's a simple file, and again, it should be glaringly obvious what needs to be added for a new role.
community.yml
This file drives the ansible install system by providing the valid tags that you can use with:
cd ~/community && sudo ansible-playbook community.yml --tags "TAG"
Again, it's a simple file, and it should be quite apparent what needs to be added for a new role.
BE SURE TO TEST YOUR ROLE.
You want to make sure that your role works, so be sure you run it several times. Run it on fresh installs, reinstalls, enlist someone else to run it for you. The point of doing this is to add something to community for others to use; if you don't verify that it works, why are you doing it?
Now it's complete, and tested, and you want it to be added to community for other users to enjoy.
First, commit your changes to your fork.
BE SURE YOU DO NOT COMMIT FILES CONTAINING SECRETS LIKE API KEYS OR TOKENS.
This will involve adding the files you changed or added and doing a git commit
and git push
.
This is standard git stuff, and again, with all respect, if you don't know these git basics you probably shouldn't be creating a role right now.
Back at github.com, create a pull request against the "master" branch of the community repo.
You do this by switching to your feature branch in your repo and clicking "Pull request" at the top where it says something like:
This branch is 2 commits ahead of Community:master.
This is a request for the Cloudbox team to "pull" your changes into their repo.
If there are special instructions or details that your role needs, add them to the pull request comments. If needed, create a wiki page for the role.
BE SURE YOU DO NOT COMMIT FILES CONTAINING SECRETS LIKE API KEYS OR TOKENS.
Your pull request will be reviewed eventually, and may generate comments or change requests.
You can address those change requests by making further commits to your feature branch; they will automatically be added to this pull request.
Eventually, if deemed a good or just reasonable fit, your pull request will be accepted and it will appear in the source community repo.
- airdcpp
- Airsonic
- alltube
- always
- amongus
- Apprise
- archivebox
- arrX (SonarrX, RadarrX, BazarrX)
- AssHama
- autoscan
- Bazarrx
- Beets
- Bitwarden
- Booksonic
- Bookstack
- btrfsmaintenance
- calibre-web
- calibre
- Coder
- comicstreamer
- comixed
- couchpotato
- Dashmachine
- deemix
- deezloader-remix
- Deluge
- DelugeVPN
- Drive STRM
- eBooks: Calibre and Calibre web
- emby2
- embystat
- EPMS
- Filebot
- Filebrowser
- filezilla
- FlareSolverr
- Funkwhale
- Gazee
- Gitea
- Glances
- Goplaxt
- gotify
- grafana
- Guacamole
- Handbrake
- Heimdall
- Hetzner NFS VLAN
- influxdb
- InvoiceNinja
- JDownloader2
- Jellyfin
- Jirafeau
- KCPTUN
- Kitana
- komga
- Krusader
- LazyLibrarian
- lidarrx
- Logarr
- Mango
- Mediabutler
- medusa
- Mellow
- Minecraft
- Monitorr
- Mylar
- mylar3
- navidrome
- Nextcloud
- NowShowing
- NZBHydra (v1)
- ombix
- Organizr (v1)
- ouroboros
- overseerr
- paperless-ng
- plex2
- Pyload
- qBittorrent
- qbittorrentvpn
- Quassel
- RadarrX
- redbot
- requestrr
- requestrrx
- resilio-sync
- rocketchat
- sickchill
- searx
- SonarrX
- Speedtest
- SSHswifty
- stash
- Subsonic
- SyncLounge
- Tdarr
- telegraf
- Telly
- TheLounge
- transmissionvpn
- transmissionx
- ubooquity
- Unifi
- unmanic
- Varken
- vnstat
- wallabag
- Watchtower
- Wordpress
- Xteve
- ZNC
- Custom python plexlibrary libraries
- Speed up Plex / Emby / Jellyfin
- Tautulli Custom Scripts
- Plex Scanners and Agents