atsign-foundation / dess

The Distributed Edge Secondary Server (dess) - the self-hosted atServer installer
https://docs.atsign.com
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

get.docker.io style single piece script #6

Closed cpswan closed 3 years ago

cpswan commented 3 years ago

Describe the solution you'd like A single script that can be curled and run in a shell that evaluates the platform it finds itself in (e.g. Ubuntu/Debian or Fedora/CentOS) and runs commands appropriate to the package manager.

Describe alternatives you've considered Standalone scripts for apt/dpkg vs yum/rpm

Additional context rustup.rs is another good example Source for get.docker is at docker/docker-install NB use of ShellCheck :)

XavierChanth commented 3 years ago

I've added a function to the install_software.sh file that will clone the repository if it is missing. Will this suffice?

XavierChanth commented 3 years ago

This should allow the install_software.sh file to be curled and run on its own.

cpswan commented 3 years ago

My preference would be to not need git (the client) at all.

The script could copy assets from GitHub, but bootstrapping using the git client as we do now shouldn't be necessary.

XavierChanth commented 3 years ago

Okay, my PR is already looking quite lengthy, I can look into stripping out the git requirement in a later PR.

cpswan commented 3 years ago

Lots of progress on this with #8

Now just need to move a gh_pages branch hosting get_dess.sh with a prettier URL e.g. getdess.atsign.com

cpswan commented 3 years ago

I went with a redirect to the existing script location.

@sherif8532 provided #11 to update docs (after we weren't able to merge his good work on #7 due to conflicts with #8)