Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Accessing eclipse using conatiner (ubuntu based)

Launch eclipse container using following command:

$ docker run -d -p 5900:5900 sasan/eclipseindigo

OR

 $ docker run -p 5900:5900 -v sourceVol:/root/workspace sasan/eclipseindigo

Then connect to container IP:port from any Linux / Windows machine using VNC app (UltraVNC etc)

> dockerHostIP:5900

&

password 1234

(currently fixed)


Notes

  1. C++ compiler working for eclipse

TBD:

  1. Password is fixed currently as 1234

Dockerfile

# Eclipse over VNC
#
# VERSION               0.1
# DOCKER-VERSION        1.2.0

from    ubuntu:14.04
# make sure the package repository is up to date
run     echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run     apt-get update

# Install vnc, xvfb in order to create a display 
run     apt-get install -y x11vnc xvfb  
#Install sshd & supervisor (sshd may be good for logging into container)
run    apt-get install -y openssh-server    
run    apt-get install -y supervisor
# Install eclipse
run     apt-get install -y eclipse-jdt eclipse-pde eclipse eclipse-platform eclipse-rse eclipse-cdt 

# Setting up VNC
run     mkdir ~/.vnc
# Setup a password
run     x11vnc -storepasswd 1234 ~/.vnc/passwd

# Super-visor scripts to loop for x11vnc
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Autostart eclipse (might not be the best way to do it, but it does the trick)
run     bash -c 'echo "/usr/bin/eclipse" >> /.bashrc'
EXPOSE 5900
CMD ["/usr/bin/supervisord"]

supervisor configuration file (supervisord.conf)

[supervisord]
nodaemon=true

[program:x11vnc]
command=x11vnc -forever -usepw -create

[program:sshd]
command=/usr/sbin/sshd -D
Docker Pull Command
Owner
sasan