Code Monkey home page Code Monkey logo

theia-ide's Introduction

Theia-IDE

Install and configure Theia-IDE on supported cloud images.

Supported cloud images are:

Other distros based on Debian or RHEL might also work.

Configuration

The role comes with an (in my opinion) useful default configuration. The following variables are supported and can be used to modify the setup.

  • nvm_install_dir: /opt/nvm
  • theia_ide_user: default is the ansible user
  • theia_ide_workspace: default is the ansible users homedir
  • theia_ide_install_dir: /opt/theia-ide
  • theia_ide_bind_address: localhost
  • theia_ide_bind_port: 8080

Security

Attention ! Theia-IDE (and also this role) does not come with any kind of auth mechanism. The idea is to leave the auth part to the webserver / reverse proxy. However if you need this feature you have to take care about it by yourself.

Example playbook

Depending on your cloud image the playbook (and the hosts file) might look different.

hosts

[ubuntu1804]
192.168.0.93 ansible_python_interpreter=/usr/bin/python3 ansible_ssh_user=ubuntu

[ubuntu1604]
192.168.0.109 ansible_ssh_user=ubuntu

[debian9]
192.168.0.112 ansible_ssh_user=debian

[centos]
192.168.0.110 ansible_ssh_user=centos

site.yml

- hosts: ubuntu1804
  become: 'yes'
  gather_facts: false
  pre_tasks:
    - name: Install python2 on Ubuntu 18.04 cloud-image 
      raw: bash -c "test -e /usr/bin/python || (apt -qqy update && apt-get install -qqy python-minimal)
      register: output
      changed_when: output.stdout != ""
    - name: Gathering facts
      setup:    
  roles:
  - jkrue.theia_ide


- hosts: ["ubuntu1804","debian","centos"]
  become: 'yes'
  roles:
  - jkrue.theia_ide

Run the playbook on all hosts:

$ ansible-playbook -i hosts site.yml

theia-ide's People

Contributors

ekatchko avatar jkrue avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.