Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
eaa53b3b
Commit
eaa53b3b
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Change nodejs installation within image
parent
7c029463
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-image-customise
+2
-10
2 additions, 10 deletions
src/freedombone-image-customise
src/freedombone-utils-nodejs
+4
-11
4 additions, 11 deletions
src/freedombone-utils-nodejs
with
6 additions
and
21 deletions
src/freedombone-image-customise
+
2
−
10
View file @
eaa53b3b
...
...
@@ -1218,16 +1218,8 @@ function image_setup_utils {
}
function
image_install_nodejs
{
if
[
$INSTALLING_MESH
]
;
then
return
fi
chroot
"
$rootdir
"
apt-get
-yq
install
nodejs curl
if
[
!
-f
$rootdir
/usr/bin/nodejs
]
;
then
echo
$'nodejs was not installed'
exit
63962
fi
mesh_install_nodejs
echo
'install_nodejs'
>>
${
rootdir
}
/root/
${
PROJECT_NAME
}
-completed
.txt
}
function
image_preinstall_repos
{
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-nodejs
+
4
−
11
View file @
eaa53b3b
...
...
@@ -45,11 +45,8 @@ NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
function
mesh_install_nodejs
{
# Note: this has to be jessie for now
if
[
!
-d
${
rootdir
}
/
$INSTALL_DIR
]
;
then
mkdir
${
rootdir
}
/
$INSTALL_DIR
fi
chroot
"
${
rootdir
}
"
wget
-qO-
https://deb.nodesource.com/gpgkey/nodesource.gpg.key
>
$INSTALL_DIR
/node.gpg.key
chroot
"
${
rootdir
}
"
apt-key add
$INSTALL_DIR
/node.gpg.key
wget
-qO-
https://deb.nodesource.com/gpgkey/nodesource.gpg.key
>
${
rootdir
}
/root/node.gpg.key
chroot
"
${
rootdir
}
"
apt-key add /root/node.gpg.key
echo
"deb https://deb.nodesource.com/node_7.x jessie main"
>
${
rootdir
}
/etc/apt/sources.list.d/nodesource.list
echo
"deb-src https://deb.nodesource.com/node_7.x jessie main"
>>
${
rootdir
}
/etc/apt/sources.list.d/nodesource.list
chroot
"
${
rootdir
}
"
apt-get update
...
...
@@ -151,12 +148,8 @@ function install_nodejs {
fi
# Note: this has to be jessie for now
if
[
!
-d
$INSTALL_DIR
]
;
then
mkdir
$INSTALL_DIR
fi
cd
$INSTALL_DIR
wget
-qO-
https://deb.nodesource.com/gpgkey/nodesource.gpg.key
>
$INSTALL_DIR
/node.gpg.key
apt-key add
$INSTALL_DIR
/node.gpg.key
wget
-qO-
https://deb.nodesource.com/gpgkey/nodesource.gpg.key
>
/root/node.gpg.key
apt-key add /root/node.gpg.key
echo
"deb https://deb.nodesource.com/node_7.x jessie main"
>
/etc/apt/sources.list.d/nodesource.list
echo
"deb-src https://deb.nodesource.com/node_7.x jessie main"
>>
/etc/apt/sources.list.d/nodesource.list
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment