mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
update Vagrant to 16.04 + Java 8
This commit is contained in:
parent
fc69773cf7
commit
3abd1425e3
7 changed files with 38 additions and 47 deletions
|
|
@ -63,21 +63,21 @@ By default, Vagrant will share your project directory (the directory with the Va
|
|||
|
||||
Running the following commands in the guest machine should display these expected versions:
|
||||
|
||||
`node --version` should report *v0.12.7*
|
||||
`mvn --version` should report *Apache Maven 3.3.3* and *Java version: 1.7.0_85*
|
||||
`node --version` should report *v4.2.6*
|
||||
`mvn --version` should report *Apache Maven 3.3.9* and *Java version: 1.8.0_171*
|
||||
|
||||
|
||||
The virtual machine consists of:
|
||||
|
||||
- Ubuntu Server 14.04 LTS
|
||||
- Node.js 0.12.7
|
||||
- npm 2.11.3
|
||||
- ruby 1.9.3 + rake, make and bundler (only required if building jekyll documentation)
|
||||
- Maven 3.3.3
|
||||
- Ubuntu Server 16.04 LTS
|
||||
- Node.js 4.2.6
|
||||
- npm 3.5.2
|
||||
- ruby + rake, make and bundler (only required if building jekyll documentation)
|
||||
- Maven 3.3.9
|
||||
- Git
|
||||
- Unzip
|
||||
- libfontconfig to avoid phatomJs missing dependency issues
|
||||
- openjdk-7-jdk
|
||||
- openjdk-8-jdk
|
||||
- Python addons: pip, matplotlib, scipy, numpy, pandas
|
||||
- [R](https://www.r-project.org/) and R Packages required to run the R Interpreter and the related R tutorial notebook, including: Knitr, devtools, repr, rCharts, ggplot2, googleVis, mplot, htmltools, base64enc, data.table
|
||||
|
||||
|
|
|
|||
4
scripts/vagrant/zeppelin-dev/Vagrantfile
vendored
4
scripts/vagrant/zeppelin-dev/Vagrantfile
vendored
|
|
@ -25,8 +25,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
# please see the online documentation at vagrantup.com.
|
||||
|
||||
# Every Vagrant virtual environment requires a box to build off of.
|
||||
# ubuntu/trusty64 Official Ubuntu Server 14.04 LTS (Trusty Tahr) builds
|
||||
config.vm.box = "ubuntu/trusty64"
|
||||
# ubuntu/xenial64 Official Ubuntu Server 16.04 LTS (Xenial Xerus) builds
|
||||
config.vm.box = "ubuntu/xenial64"
|
||||
|
||||
# Disable automatic box update checking. If you disable this, then
|
||||
# boxes will only be checked for updates when the user runs
|
||||
|
|
|
|||
|
|
@ -13,13 +13,27 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
---
|
||||
- name: Run Ansible
|
||||
- name: Install Python2 for Ansible
|
||||
hosts: all
|
||||
sudo: yes
|
||||
gather_facts: no
|
||||
become: true
|
||||
become_user: root
|
||||
become_method: sudo
|
||||
pre_tasks:
|
||||
- raw: sudo apt-get -y install python-minimal
|
||||
|
||||
- name: Run Ansible
|
||||
hosts: all
|
||||
become: true
|
||||
become_user: root
|
||||
become_method: sudo
|
||||
pre_tasks:
|
||||
- name: 'install python2'
|
||||
raw: sudo apt-get -y install python-simplejson
|
||||
roles:
|
||||
- common
|
||||
- ruby
|
||||
- java7jdk
|
||||
- java8jdk
|
||||
- nodejs
|
||||
- maven
|
||||
- python-addons
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Install openjdk-7
|
||||
apt: pkg=openjdk-7-jdk state=present
|
||||
|
||||
- name: Install openjdk-8
|
||||
apt: pkg=openjdk-8-jdk state=present
|
||||
|
||||
|
|
@ -13,17 +13,12 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Install Node.js from the official Node.js
|
||||
# Install Node.js from package
|
||||
---
|
||||
|
||||
- name: Download official Linux x64 distribution from Node.js
|
||||
get_url: url=http://nodejs.org/dist/v0.12.8/node-v0.12.8-linux-x64.tar.gz dest=/tmp/node-v0.12.8-linux-x64.tar.gz
|
||||
|
||||
- name: Unpack node
|
||||
unarchive: src=/tmp/node-v0.12.8-linux-x64.tar.gz dest=/tmp/ copy=no
|
||||
|
||||
- name: Install Node.js
|
||||
command: tar -C /usr/local --strip-components 1 -xzf /tmp/node-v0.12.8-linux-x64.tar.gz
|
||||
args:
|
||||
creates: /usr/local/bin/node
|
||||
apt: pkg=nodejs state=present
|
||||
|
||||
- name: Install npm
|
||||
apt: pkg=npm state=present
|
||||
|
||||
|
|
|
|||
|
|
@ -16,21 +16,6 @@
|
|||
# Install R binaries and CRAN packages
|
||||
---
|
||||
|
||||
# The Ubuntu archives on CRAN are signed with a key with ID E084DAB9. Add this key to the system.
|
||||
- name: repository | add public key
|
||||
apt_key:
|
||||
id: E084DAB9
|
||||
keyserver: keyserver.ubuntu.com
|
||||
state: present
|
||||
|
||||
# in order to get the latest version of R, add CRAN repository to the to the list of sources
|
||||
- name: repository | add cran-r
|
||||
apt_repository:
|
||||
repo: "{{item.type}} {{item.url}}"
|
||||
state: present
|
||||
update_cache: true
|
||||
with_items: r_repository
|
||||
|
||||
- name: Install R. This may take a while.
|
||||
apt: pkg=r-base state=present
|
||||
|
||||
|
|
|
|||
|
|
@ -14,14 +14,11 @@
|
|||
# limitations under the License.
|
||||
|
||||
# setup ruby
|
||||
# Assumes Ubuntu Server 14.04 LTS
|
||||
# Assumes Ubuntu Server 16.04 LTS
|
||||
---
|
||||
|
||||
- name: Install ruby 1.9.3
|
||||
apt: pkg=ruby1.9.3 state=present
|
||||
|
||||
- name: set global ruby version
|
||||
alternatives: name=ruby path=/usr/bin/ruby1.9.1 link=/usr/bin/ruby
|
||||
- name: Install ruby
|
||||
apt: pkg=ruby state=present
|
||||
|
||||
- name: Install make
|
||||
apt: pkg=make state=latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue