Server setup and installation
Resetting some of the discussion pertaining to installing LibreTime on a server like AWS. Assuming we'll want to have a guide similar to the upstream branch, what steps are necessary to get there?
Thanks for moving this from the taiga to GitHub.
That's a nice guide. It contains some alsa stuff and I can't quite see how that would work on AWS (or any other hosted virtualization platform not tailored for such use).
My legacy upstream fork has some info on how to install on CentOS parts of which may be generally useful. Some of the more opinionated parts of the install script should also be moved to documentation rather than just blindly installing (ie. it doesn't make sense to tell a user to change the rabbitmq password on the Web-UI when it's too late; if we automate this we should prompt for one or generate one and use that).
Sounds like there are some tasks for the community to work through. Per our previous discussion, possibly we can provide an AWS instance to test install and provide a demo site.
To have everything in one space, this is my feedback from taiga:
I'm not sure if LibreTime will be lightweight enough for a demo to fit onto the AWS free tier.
When we have the install fixed and things properly packaged for debian. Setting up LibreTime should be relatively straightforward. A demo would still be nice, though I'm afraid of the logistics involved in one. Once the UI is rebranded we should at least put up screenshots.
One idea I have been thinking about is to additionally offer libretime as a set of docker containers, a docker-compose file and maybe a kubernetes kubelet. That could be built in a way that it's easy to do a quick demo locally.
My point being that we should make it very easy to get up and running for a demo locally.
I believe having a public demo instance would be too much of a burden at this moment.
Amazon Linux seems to be a flavor of CentOS, the RPMs I plan on building should work there!
@hairmare That sounds promising! Let me know when there's something to test or if there's something you need help with.
It'd be nice to have some installation instructions documented somewhere obvious (like INSTALL.txt). Don't get me wrong, RPMs, EC2 AMIs and so forth are great. But basic manual installation instructions would be invaluable. What exists now, in the form of a long shell script, was last updated two years ago. The upstream docs refer to Ubuntu and Debian distros that either already are, or soon will be EOL.
Hello @ergonlogic
Welcome to the LibreTime community. We are glad to have you on board. Help us keep LibreTime open and inclusive by following our Code of Conduct (CoC).
It'd be nice to have some installation instructions documented somewhere obvious (like INSTALL.txt).
Absolutely, what I've got so far are some CentOS docs on RaBe's opinionated fork. I plan on porting those together with the packaging setup.
From what I can tell there is also some cleanup needed for most of the distros you mention (i.e. we need silan to be well supported by debian looking forward, see debian#855319)
I'm thinking of creating a nice clean collection of the relevant docs (like INSTALL.md) in docs/ and later upgrading them to be a github pages site.
Feel free to start writing the great INSTALL.md we are lacking, LibreTime is happy to have you contributing. You can also use the wiki if that suits your needs.
Thanks again for contributing, Lucas
P.S: I sent you a team invite so you can assign and tag issues.
It sounds like there's a need for documentation? Possibly there should be a list of the types of contributions/contributors you need to develop and sustain the project?
Sorry if that's a bit off topic.
CONTRIBUTING.md already has some pointers. Cleaning up and adding to the documentation are extremely worthy contributions! The C4 also helps define "Contributing" and "Maintaining".
There is not only the technical docs like INSTALL.md, we should also find a way to save the 2.5 and pro manuals. Maybe transcribing them to docs/ where we can render them as github pages is the way to go.
Documentation wrangler certainly makes your list. Does it make sense to keep such a list in the wiki?
Documentation lead, development help, testing/qa.. any other key roles that are needed to fill?
packaging (as in rpm and deb packages), maybe ux? all things audio/liquidsoap... possibly more. I'm not sure we need a very strict list of positions, defining responsibilities is certainly important.
A bit offtopic, but since this is about getting folks to figure out how they can help: The last few issues (#17 & #18) I created were in a fashion so they should be doable for a dev that wants to get wet feet. I'm thinking of introducing a tag for those so new contributors can find some easy low hanging fruit if they are looking.
I filed a couple PRs to address some of the suggestions in https://github.com/LibreTime/libretime/issues/5#issuecomment-283526654.
Having now read through the installer script, I'm of the opinion that we should re-think its all-in-one nature. I think a good first step would be to split it up into separate stages. Each could still source the custom functions, etc. and calling ./install should still just run them all. However, this would allow for easier testing of failing steps as well as encourage re-use of the individual scripts in a .deb or .rpm, Ansible roles, etc.
👍 For the .rpm build I need something akin to make install where I can override $PREFIX and $ETCDIR to have rpmbuild do what is needed.
I did some testing with a Makefile but realized, that all of airtime_mvc/ and vendor/ are a bit much for that to handle.
I'm not sure about others, but with .rpm I can have yum take care of upgrading and replacing or not of updated config files and running post and pre install/upgrade scripts.
I kind of like how some modern apps from redhat come with their own installer cli which you install as a package and then run separately (ie. spacewalk has spacewalk-install, freeipa has ipa-server-install and ipa-client-install). Those scripts usually also help with upgrading and to some degree management of such apps. I find the entry point of installing an installer package rather nice.
Maybe the ./install script can evolve in that direction. I'm also not quite sure if it needs to be a shell script, some python would suit the job just as well and be testable.
I tried a LibreTime Vagrant install which for the most part was a success. During setup last night, I wasn't able to successfully run these commands in the terminal...

Upon doing a 'vagrant up ubuntu' just now, everything seems to be working.

As I'm a Vagrant newb, I'm not sure why it's working now... very glad I'm able to test! Great work getting 3.0.0-alpha out the door!
It could have failed for numerous reasons. Did you get any output when running the commands? Maybe something went to the logs in /var/log/airtime/? Did all of them fail or just a specific one?
I've seen issues with adding a soundcard to the VM that tend to clear up after running vagrant up but I've never seen them lead to a fail during the final setup steps 😕
I got a ' command not found' for example -
MacBookGus:libretime gusaus$ sudo service airtime-liquidsoap start
sudo: service: command not found
Might just be me not entering the command in the right place.
You need to connect to the box with vagrant ssh ubuntu and then run the commands on the virtual box. Sorry if that wasn't clear from the docs.
After restarting the box they automatically started as is intended. They don't get started by the installer since setup needs to be completed for them to not fail.
Probably would make sense to most people familiar with Vagrant. There's going to be a lot more testers and users once we're able to easily install on AWS!
With regards to installing on AWS, is what's being discussed by @ergonlogic and @hairmare in the comments above part of the proposed solution? Is there anything other contributors can help with?
I think that it should be fairly easy to install on a AWS virtual machine, although if you wanted to use S3 as the file storage that needs to be tested still.