I’m trying to setup a custom node version when running the machine executor on the default machine image. I can install any nodejs version I want directly using
sudo apt-get, but that installs to
nodejs and not
node. There’s already an existing
node binary pre-installed, but the version on that is too old.
I’m unable to delete that node binary and replace it with a symlink to the
nodejs version I’ve installed because the pre-installed node version comes from an internal
nvm installation. I CAN access the nvm installation and just directly run
nvm install v9 ONLY ON a debug SSH session. When I actually copy the same line I run on ssh and try to add it as a run statement to my config.yml, the build breaks with a
nvm: command not found error.
Others have recommended just using the node docker executor with the node version I want, but I don’t believe I can do that because I need a machine that also has the docker daemon installed, since, as a part of my test suite, I’m building and running docker images.
The short of it really is: I want an environment which has node v9.x.x and the docker client AND docker daemon. I can run my test suite correctly if I have an environment with those parameters