bt benchmark: Ignore commit ae466a6e1b856d96cf5112a371b4df2b732503ec
[lttng-ci.git] / scripts / lttng-www / deploy.sh
index 9224b4ee121e9ac8b70c41b51ee6dc74105c7782..bb81757e02f474600052b0c66eb9ef0e449af4cc 100755 (executable)
@@ -18,6 +18,8 @@
 
 set -exu
 
+RUBY_VERSION=2.7
+
 # Add ssh key for deployment
 cp "$HOST_PUBLIC_KEYS" ~/.ssh/known_hosts
 cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa
@@ -26,15 +28,27 @@ cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa
 
 # Nodejs
 # Using Debian, as root
-curl -fsSL https://deb.nodesource.com/setup_15.x | bash -
+curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
 apt-get install -y nodejs
 
-apt-get install -y ruby asciidoc xmlto
+apt-add-repository ppa:brightbox/ruby-ng
+apt-get install -y ruby${RUBY_VERSION} ruby${RUBY_VERSION}-dev ruby-switch ruby-bundler
+
+ruby-switch --list
+ruby-switch --set ruby${RUBY_VERSION}
+
+ruby -v
+
+apt-get install -y asciidoc xmlto python3 python3-pip
 
 npm install -g grunt-cli
 npm install -g sass
 
-./bootstrap-ubuntu.sh
+export PATH="/root/.gem/ruby/${RUBY_VERSION}.0/bin:$PATH"
+
+bundle config set --local path "/root/.gem"
+
+./bootstrap.sh
 
 grunt build:prod
 grunt deploy:prod
This page took 0.023626 seconds and 4 git commands to generate.