Public | Automated Build

Last pushed: 2 years ago
Short Description
Eclipse Luna (with plugins) on Ubuntu installed using Ansible script
Full Description

alban_andrieu_eclipse

<!-- This file was generated by Ansigenome. Do not edit this file directly but instead have a look at the files in the ./meta/ directory. -->









Ensures that eclipse is properly installed and configured on Ubuntu using Ansible script.
Default settings is using Eclipse luna.
This Simple role allows you to install Eclipse with basic plugins.

This playbook is be used by Docker Hub to create a Docker image.

Taken from

https://www.eclipse.org/downloads/

Requirements

Tools which might be needed by Eclipse, like jdk, maven...
See available playbook on GitHub

Installation

This role requires at least Ansible v2.1.1. To install it, run:

Using ansible-galaxy:

$ ansible-galaxy install alban.andrieu.eclipse

Using arm (Ansible Role Manager):

$ arm install alban.andrieu.eclipse

Using git:

$ git clone https://github.com/alban.andrieu/ansible-eclipse.git

Documentation

More information about alban.andrieu.eclipse can be found in the
official alban.andrieu.eclipse documentation.

Role variables

List of default variables available in the inventory:

eclipse_enabled: yes                       # Enable module

#user: 'albandri' #please override me
user: "{{ lookup('env','USER') }}"
eclipse_owner: "{{ user }}"
eclipse_group: "{{ eclipse_owner }}"
#home: '~' #please override me
home: "{{ lookup('env','HOME') }}"
eclipse_owner_home: "{{ home }}"
eclipse_base_dir: "/usr/local/eclipse"
eclipse_link_base_dir: "/opt"
eclipse_dir_tmp: "/tmp" # or override with "{{ tempdir.stdout }} in order to have be sure to download the file"
#cur_dir: "{{lookup('pipe','pwd')}}"
## Most likely you dont need to edit
#todo eclipse_service_enabled   : 'yes'

#eclipse_name: "kepler" 3.7.2.1
#eclipse_name: "luna" 4.4
#eclipse_name: "mars" 4.5
#eclipse_name: "neon" 4.6
eclipse_name: "neon"
eclipse_major: "4"
eclipse_minor: "6"
eclipse_version: "{{eclipse_major}}.{{eclipse_minor}}"

eclipse_archive_extracted: "eclipse"
#modeling
#eclipse_archive: "eclipse-modeling-{{eclipse_name}}-R-linux-gtk-x86_64.tar.gz"
#java
#eclipse_archive: "eclipse-java-{{eclipse_name}}-SR1-linux-gtk-x86_64.tar.gz"
#javaee
#eclipse_archive: "eclipse-jee-{{eclipse_name}}-SR1-linux-gtk-x86_64.tar.gz"
eclipse_archive: "eclipse-jee-{{eclipse_name}}-R-linux-gtk-x86_64.tar.gz"

#eclipse_url: "https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/{{eclipse_name}}/R/{{eclipse_archive}}&r=1"
eclipse_url: "http://eclipse.mirror.triple-it.nl/technology/epp/downloads/release/{{eclipse_name}}/R/{{eclipse_archive}}"

eclipse_home_dir: "{{ eclipse_base_dir }}/{{ eclipse_name }}-{{ eclipse_version }}"
#eclipse_desktop: "/usr/share/applications/eclipse.desktop"
eclipse_desktop: "{{ eclipse_owner_home }}/.local/share/applications/eclipse.desktop"

eclipse_plugins_enabled: yes                          # Enable plugins
eclipse_plugins_emf_enabled: no                       # Enable plugins
eclipse_plugins_cdt_enabled: no                       # Enable plugins
eclipse_plugins_cmakeed_enabled: no                   # Enable plugins
eclipse_plugins_openinterminal_enabled: no            # Enable plugins
eclipse_plugins_protobuf_enabled: no                  # Enable plugins
eclipse_plugins_yedit_enabled: no                     # Enable plugins
eclipse_plugins_shelled_enabled: no                   # Enable plugins
eclipse_plugins_webpageed_enabled: no                 # Enable plugins
eclipse_plugins_pydev_enabled: no                     # Enable plugins
eclipse_plugins_m2e_enabled: no                       # Enable plugins
eclipse_plugins_subclipse_enabled: no                 # Enable plugins

eclipse_ini_enabled: yes                              # Enable overriding eclipse.ini
#default is 256m
eclipse_launcher_XXMaxPermSize: "512m"
#default is 256m
eclipse_XXMaxPermSize: "1024m"
#default is -Xms40m
eclipse_Xms: "512m"
#default is -Xmx512m
eclipse_Xmx: "2048m"

docker_files_generated_directory: "./"
docker_files_enable: no
docker_volume_directory                  : "{{ eclipse_base_dir }}"
docker_working_directory                 : "/home/vagrant"
docker_image_name                        : "nabla/ansible-eclipse"

List of internal variables used by the role:

eclipse_folder
eclipse_home
eclipse

Detailed usage guide

Use :

`docker run -e "DISPLAY=`ipconfig getifaddr en0`:0.0" nabla/ansible-eclipse`

Once Eclipse is installed using ansible, a Docker image is automatically created by Docker Hub,
so please do not hesitate to enhance ansible script it will then improve docker image automatically.

Run the following command :

 `ansible-playbook -i hosts -c local -v eclipse.yml -vvvv --ask-sudo-pass | tee setup.log`

Any custom output you want after the usage section..

Authors and license

alban_andrieu_eclipse role was written by:

Copyright (c) 2016 Alban Andrieu

Feedback, bug-reports, requests, ...

Are welcome!

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

This role is part of the Nabla project.
README generated by Ansigenome.

Docker Pull Command
Owner
nabla
Source Repository

Comments (0)