Skip to content

Commit

Permalink
remove codebox as it does not work with recent nodejs versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bgruening committed May 25, 2016
1 parent 6422800 commit bdf22bb
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions roles/galaxyprojectdotorg.devbox/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
- atom
when: galaxy_devbox_include_x

- name: Configure GUI to auto login the dev user.
template: src=10-xubuntu.conf.j2 dest=/etc/lightdm/lightdm.conf.d/10-xubuntu.conf
when: galaxy_devbox_include_x
#- name: Configure GUI to auto login the dev user.
# template: src=10-xubuntu.conf.j2 dest=/etc/lightdm/lightdm.conf.d/10-xubuntu.conf
# when: galaxy_devbox_include_x

- name: Install linuxbrew
become: True
Expand All @@ -62,6 +62,8 @@
become_user: "{{ dev_user_name }}"
shell: "curl http://j.mp/spf13-vim3 -L -o - | sh"

#get_url

- name: Tap galaxyproject recipes
become: True
become_user: "{{ dev_user_name }}"
Expand All @@ -84,7 +86,6 @@
when: galaxy_devbox_include_x
with_items:
- atom
- codebox
- exo-terminal-emulator
- exo-web-browser
- galaxyproject
Expand Down Expand Up @@ -122,7 +123,7 @@
with_items:
- chromium-browser

- name: Install node and npm for codebox.
- name: Install node and npm
become: True
apt: name={{ item }} state=latest update_cache=yes
with_items:
Expand All @@ -133,11 +134,6 @@
become: True
shell: "ln -f -s /usr/bin/nodejs /usr/bin/node"

- name: Install codebox.
become: True
become_user: "{{ galaxy_user_name }}"
shell: "mkdir -p {{ codebox_path }} && cd {{ codebox_path }} && npm install codebox@{{ codebox_version }}"

- name: Install more locales
locale_gen: name={{ item }} state=present
with_items:
Expand All @@ -150,8 +146,6 @@
become_user: "{{ galaxy_user_name }}"
shell: "gsettings set org.gnome.settings-daemon.plugins.updates active false && gsettings set org.gnome.settings-daemon.plugins.updates auto-download-updates false"

- name: Add codebox to supervisor configuration.
template: src=supervisor.conf.j2 dest=/etc/supervisor/conf.d/codebox.conf

- name: Add dev tool configuration file.
template: src=dev_tool_conf.xml.j2 dest={{ dev_tool_conf }}
Expand Down

7 comments on commit bdf22bb

@jmchilton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need codebox though 😦 it is so good for Docker and cloud images.

@bgruening
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @jmchilton I just tried to get this image running and this seems to be a known problem: CodeboxIDE/codebox#517 and many more.

Codebox does not seem to be maintained anymore. Last release was one year ago and this one is not working :(
We can try to install a very old nodejs version, I will see if I can find time for this - 😢

On the bride side with these patches: https://github.com/galaxyproject/ansible-galaxy-os/pulls
This images can be build, planemo is running, just a few tweaks are needed ... and we have a new solid VM.

@martenson
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmchilton @bgruening

They sold the assets to a commercial company, but have not been maintaining it. You may want to look at some other open source projects like Eclipse Che - www.eclipse.org/che.
CodeboxIDE/codebox#518

@jmchilton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bgruening It should not be your job to get an older version of node working... lets merge this as is and work toward fixing or replacing this. Che looks fascinating but it requires Docker - so it isn't really a very good solution from within Docker... maybe we should have a Docker compose recipe for configuring this and an IDE at the same time - would that work with the current Windows / Mac GUIs I wonder.

@bgruening
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @martenson for the info.
@jmchilton sounds good. This is probably for after GCC.

@jmchilton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does anyone remember if we used codebox during the conference? Pretty much no right - people with VMs were using Atom I think and I didn't see anyone using Docker with Codebox?

@martenson
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we did advertise it and I saw few people having it up, whether they actually used it for tool dev I dunno

Please sign in to comment.