aboutsummaryrefslogtreecommitdiffstats
path: root/packer/provision
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-19 22:52:09 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-19 22:52:09 +0200
commitd4e729e814c3c8f3a2e1bf70ad3ea43f712bdf66 (patch)
tree0a1f06826f4320c817e2176499d90423b3f4a052 /packer/provision
parent0cda1c396ea0d1c666f663f541af2431cce1a477 (diff)
Fix webdoc dependencies to match container
Change-Id: I696e833ed63f624410359e6b57b2fa6ec3bac094 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'packer/provision')
-rw-r--r--packer/provision/agl_dependencies.sh20
1 files changed, 18 insertions, 2 deletions
diff --git a/packer/provision/agl_dependencies.sh b/packer/provision/agl_dependencies.sh
index 7f3f081f..3516a022 100644
--- a/packer/provision/agl_dependencies.sh
+++ b/packer/provision/agl_dependencies.sh
@@ -57,6 +57,20 @@ vm.dirty_writeback_centisecs = 0
EOFSYSCTL
### webdocs
+# taken from container setup script. not documented in readme.
+# install node.js and tools (npm, gulp, bower) if needed
+#
+if [[ -z $(which node) ]]; then
+ curl -sL https://deb.nodesource.com/setup_6.x | bash -
+ apt-get install -y nodejs
+ npm install --global gulp bower
+fi
+
+# tools used to generate developer website (https://github.com/automotive-grade-linux/docs-agl)
+gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
+ && curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=jekyll
+
+
mkdir -p /opt/AGL
cd /opt/AGL/
#mkdir webdocs
@@ -70,9 +84,11 @@ npm install
#gem install --no-user-install -V kramdown
#gem install --no-user-install -V jekyll-plantuml
-gem install --no-user-install -V --version 3.1.6 jekyll
-gem install --no-user-install -V --version 1.13.1 kramdown
+#gem install --no-user-install -V --version 3.1.6 jekyll
+#gem install --no-user-install -V --version 1.13.1 kramdown
### hope that is enough
+
+
exit 0