Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Alpine Linux - Add support in install_deps.sh #3199

Closed
bobsummerwill opened this issue Aug 26, 2016 · 3 comments
Closed

Alpine Linux - Add support in install_deps.sh #3199

bobsummerwill opened this issue Aug 26, 2016 · 3 comments

Comments

@bobsummerwill
Copy link
Contributor

From @bobsummerwill on July 8, 2016 3:6

Hey @rainbeam,

(split out from from ethereum/webthree-umbrella#495)

I have been working on an infrastructure-as-code alternative to these tedious per-distro sets of instructions, which will "go live" when we switch back to cpp-ethereum.

You can see my work-in-progress on that here:

Now for the TravisCI bit, we're stuck with just Ubuntu Trusty automation for the time being, but we might well be able to expand that via Docker in the future.

Whatever the case, I would like to expand this install_deps.sh pattern pattern to cover more distros, so that our ethdocs.org instructions for the distros which we have bothered to do that can be simplified to, with the steps being executed directly and committed in with the code itself.

  • git clone --recursive
  • ./install_deps.sh
  • cmake
  • make

So maybe for Alpine we can take that approach instead, rather than bothering with written instructions?

Please could help me out and copy https://github.com/bobsummerwill/cpp-ethereum/blob/merge_repos/install_deps.sh locally and run it, does it go into the right conditional?

I suspect it won't, and that we will need to do something fancier, as per http://unix.stackexchange.com/questions/92199/how-can-i-reliably-get-the-operating-systems-name

Copied from original issue: ethereum/webthree-umbrella#633

@bobsummerwill
Copy link
Contributor Author

From @rainbeam on July 8, 2016 22:10

@bobsummerwill: Alpine doesn't have lsb_release so the script doesn't work. It does have /etc/os-release:

# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.4.0
PRETTY_NAME="Alpine Linux v3.4"
HOME_URL="http://alpinelinux.org"
BUG_REPORT_URL="http://bugs.alpinelinux.org"

Yeah, agree on moving from written instructions.

@bobsummerwill
Copy link
Contributor Author

Right - thanks!
Any recommended clever expression which we could use for the conditional here?
Which you could try running :-)

@chfast
Copy link
Member

chfast commented May 16, 2018

https://github.com/ethereum/cpp-ethereum/blob/develop/scripts/install_deps.sh#L209

@chfast chfast closed this as completed May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants