Fix webdoc dependencies to match container 35/9435/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 19 May 2017 20:52:09 +0000 (22:52 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 19 May 2017 20:52:09 +0000 (22:52 +0200)
Change-Id: I696e833ed63f624410359e6b57b2fa6ec3bac094
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
packer/provision/agl_dependencies.sh

index 7f3f081..3516a02 100644 (file)
@@ -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