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

Add nvm for linux #582

Merged
merged 36 commits into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
171e3a4
add mvn
Mar 19, 2020
9181e53
fix naming
Mar 19, 2020
ad6f316
install nvm before node
Mar 20, 2020
9914379
minimize ubuntu1804 for tests
Mar 20, 2020
8c4ad0f
add changes and test on minimized image
Mar 20, 2020
cf61b91
comment documentation
Mar 20, 2020
22c7727
add check nvm version
Mar 20, 2020
44e85eb
get script to run on full ubuntu image
Mar 20, 2020
8da68c0
add NVM_DIR var
Mar 23, 2020
cb6c9c9
Merge remote-tracking branch 'origin' into v-dmshib/add-mvn
Mar 23, 2020
1999c7a
add ubuntu1804
Mar 23, 2020
3e4e53f
remove extra containercache
Mar 23, 2020
66c1bba
Merge remote-tracking branch 'origin' into v-dmshib/add-mvn
Mar 24, 2020
1cf97ca
update script and minimize image
Mar 24, 2020
7f4058c
added sudo
Mar 24, 2020
d315633
fix script
Mar 24, 2020
7114c42
add new line to etc
Mar 24, 2020
7d4f583
fix script
Mar 25, 2020
942304b
fix nvm.sh
Mar 25, 2020
9ede098
remove unused code
Mar 25, 2020
01e0c95
return code
Mar 25, 2020
0c16fe7
add comments
Mar 25, 2020
b3e38a6
remoe bash_completion
Mar 25, 2020
b5b5845
add nvm.sh to bashrc
Mar 26, 2020
dc6c1df
Merge remote-tracking branch 'origin' into v-dmshib/add-mvn
Mar 26, 2020
b7acae6
minimize image
Mar 26, 2020
defcc4e
added env variable
Mar 26, 2020
55ef299
run script
Mar 26, 2020
bbeebd6
change installation
Mar 30, 2020
10043db
add run
Mar 30, 2020
7d39a15
add profile.d
Mar 30, 2020
abb7d3e
update bash_profile
Mar 31, 2020
545d4b9
fix
Mar 31, 2020
65823fb
update
Mar 31, 2020
14ea92f
Merge remote-tracking branch 'origin' into v-dmshib/add-mvn
Mar 31, 2020
d9f83c9
remove full permissions
Apr 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions images/linux/scripts/installers/nvm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
################################################################################
## File: nvm.sh
## Desc: Installs Nvm
################################################################################

# Source the helpers for use with the script
source $HELPER_SCRIPTS/document.sh

export NVM_DIR="/etc/skel/.nvm"
mkdir $NVM_DIR
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
echo 'export NVM_DIR=$HOME/.nvm' | tee -a /etc/skel/.bash_profile
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' | tee -a /etc/skel/.bash_profile
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

if ! command -v nvm; then
echo "nvm was not installed"
exit 1
fi

DocumentInstalledItem "nvm ($(nvm --version))"
1 change: 1 addition & 0 deletions images/linux/ubuntu1604.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"{{template_dir}}/scripts/installers/1604/basic.sh",
"{{template_dir}}/scripts/installers/aws.sh",
"{{template_dir}}/scripts/installers/build-essential.sh",
"{{template_dir}}/scripts/installers/nvm.sh",
"{{template_dir}}/scripts/installers/clang.sh",
"{{template_dir}}/scripts/installers/swift.sh",
"{{template_dir}}/scripts/installers/cmake.sh",
Expand Down
1 change: 1 addition & 0 deletions images/linux/ubuntu1804.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
"{{template_dir}}/scripts/installers/miniconda.sh",
"{{template_dir}}/scripts/installers/mono.sh",
"{{template_dir}}/scripts/installers/mysql.sh",
"{{template_dir}}/scripts/installers/nvm.sh",
"{{template_dir}}/scripts/installers/nodejs.sh",
"{{template_dir}}/scripts/installers/bazel.sh",
"{{template_dir}}/scripts/installers/phantomjs.sh",
Expand Down