Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Releases for rChore #8

Open
6 tasks
DarthBenro008 opened this issue Jul 31, 2021 · 11 comments
Open
6 tasks

Various Releases for rChore #8

DarthBenro008 opened this issue Jul 31, 2021 · 11 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@DarthBenro008
Copy link
Owner

DarthBenro008 commented Jul 31, 2021

Need to figure out robust binary distribution mechanisms for rChore

The following would be nice:

  • NPM
  • Bash Script to automatically pull from GitHub Release

Optional:

  • Fedora Repository
  • Ubuntu Repository
  • Arch Repository
  • Homebrew
@pspiagicw
Copy link

I could write a AUR (Arch User Repository) script and also try to work on the Bash Script.

@DarthBenro008
Copy link
Owner Author

Sure @pspiagicw, thanks for taking this up! If possible, please look into the possibility of automatically releasing it via the GitHub Releaser CI

@pspiagicw
Copy link

pspiagicw commented Aug 25, 2021

The AUR script is ready! You can find at https://github.com/pspiagicw/rchore
I tested in on a ArchLinux machine in a VM . It grabs the latest release and downloads rchore-linux binary and installs in /usr/bin. It also downloads the readme file and puts in /usr/share/doc/rchore/ . Test yourself , if satisfied we can upload to AUR.
Package Name: rchore-bin

@pspiagicw
Copy link

pspiagicw commented Aug 25, 2021

For the debian package , I got this link https://www.internalpointers.com/post/build-binary-deb-package-practical-guide

I will try to build a DEB file and test ,if you are comfortable with it.

For the bash script , Linux and Mac OS is easy , but I am getting stuck at binary for Windows.

@DarthBenro008
Copy link
Owner Author

The AUR script is ready! You can find at https://github.com/pspiagicw/rchore
I tested in on a ArchLinux machine in a VM . It grabs the latest release and downloads rchore-linux binary and installs in /usr/bin. It also downloads the readme file and puts in /usr/share/doc/rchore/ . Test yourself , if satisfied we can upload to AUR.
Package Name: rchore-bin

That's great! Could you please open a PR for the same, and ensure its automated for every release?

For the debian package , I got this link https://www.internalpointers.com/post/build-binary-deb-package-practical-guide
I will try to build a DEB file and test ,if you are comfortable with it.

Sure, you can definitely give it a try!

For the bash script , Linux and Mac OS is easy , but I am getting stuck at binary for Windows.

The bash script for cURL is already in the works, so that's completely fine. Feel free to work on deb and aur scripts and send a PR for the same!

@pspiagicw
Copy link

DEB file is ready , it is in the same repository as AUR script. For automation we only have to change the version number in both scripts. I will look into GitHub Actions and try to automate that.

@pataquets
Copy link

As a method of cross-platform/OS distribution, I would suggest to publish a Docker container. Any needed external files could be mounted, but env vars would suffice for API keys. Thus, you can create an alias for a command such as:

alias rchore='docker run --rm -it -e TERM DarthBenro008/rchore'

If rchore image is not present, it would be automatically pulled by Docker. Just rm'ing the image would serve as update.

@DarthBenro008
Copy link
Owner Author

@pataquets, this seems like a nice idea, but we might have a problem. rchore currently stores a physical db at .rchore in your home root directory, containerising the application would remove default configurations each time rchore image is removed. But nevertheless it seems like a fairly good method to run on multiple OS

@pspiagicw
Copy link

What about docker volumes ? They persist throughout sessions ?

@pataquets
Copy link

As @pspiagicw mentioned DB and other files can be mounted. Even RW or RO, which would give more sense to #22 as for splitting data storage in different files concerns. I'm also not very familiar with what is stored in the DB and which items are rebuildable and which not, such as options (which might make sense in a .conf readonly-mounted file) and whatever else there is, so please bear with my ignorance 😁.

@DarthBenro008
Copy link
Owner Author

This seems like a viable solution to give a shot at, but i think it would be better if #22 is solved and closed first so that we can approach the Dockerizing solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants