Commit graph

2 commits

Author SHA1 Message Date
Bradley M. Kuhn
d6e334ea1c docker: rvm installation, but don't use get.rvm.io script.
The README.md currently suggests these commands to install rvm:

     curl -sSL https://rvm.io/mpapis.asc | gpg --import -
     curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
     curl -sSL https://get.rvm.io | bash -s stable
     source $HOME/.rvm/scripts/rvm
     echo 'source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
     rvm install 2.7.3 --disable-binary --with-jemalloc

Instead of downloading the https://get.rvm.io script, just put the
two keys in the repository and do the basic operations that are
required, rather than grabbing a shell script from a website and just
running it.

Also, run `rvm autolibs disable` so that the `rvm` command, which
does not run as root, will not seek to use sudo.  I checked the
Debian system requirements that `rvm requirements` was looking for,
and added those to `script/build/debian/prebuild.sh`.

Hopefully, the semantics of `rvm requirements` is that it will exit
non-zero if some requirements are missing, which is the desired
behavior, since it flags that `script/build/debian/prebuild.sh` must
be updated.
2021-08-09 19:37:04 -07:00
Bradley M. Kuhn
d2c6ce6d48 docker: Node/Yarn: install nodesource & yarn keys from local copy
As an additional security measure, don't use the network version of
setup_14.x.  Instead, save nodesource and yarn keys locally and do
the operations in the Dockerfile to install the keys.  Then, simply
do the apt install of the dependencies needed from both places.

Keep a copy of the setup_14.x in the data directory as well.  In
future, it might be useful to have a script that compares the
versions of that script and keys on the nodesource and yarn websites
— mainly to semi-automatically verify if upstream details have
changed.
2021-08-09 19:00:58 -07:00