GithubHelp home page GithubHelp logo

flaviusns / eclipseindocker Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 17 KB

Eclipse inside a docker image.

License: MIT License

Dockerfile 100.00%
eclipse docker docker-image dockerfiles-linux dockerfile-examples docker-images docker-hub

eclipseindocker's Introduction

Eclipse in Docker

This is the EclipsePhotonDocker that contains the dockerfile wich it´s able to run eclipse photon into a docker container. Now we connect to eclipse with x11 sockets

How to use (common) with Docker Repository:

If you don´t want to build your image locally, donwload only de docker-compose-DockerRepository.yml file, change it name to docker-compose.yml and execute docker-compose up in the same directory. It will download a Docker Repository Image with the image already built.

How to use (common):

Download the zip file.

Build the Dockerfile:

docker build -t yourimagename . Inside the folder with the Dockerfile.

How to use (macOS):

Tested in macOS Mojave (10.14):

To use it in macOS, follow the next instrucctions here . Xquartz works fine with the current version 2.7.11 . Thanks to Fredrik for the blog.

Once the image it´s build, run the docker image:

docker run -d -e DISPLAY=hostname:0 -v /tmp/.X11-unix:/tmp/.X11-unix yourimagename

Eclipse will be open in your x11 client window.

How to use (macOS) with docker-compose:

Once the image it´s build, edit the docker-compose.yml file and change hostnameHere with your hostname and imageHere with yourimagename. Save the file and execute:

docker-compose up

How to use (linux):

Tested on Ubuntu 18.04:

Once the image it´s build, get your image id and execute the following command:

xhost +local:``docker inspect --format='{{ .Config.Hostname }}' $containerId``

For more information, consult here .

Now, you can run your eclipse docker using the following command:

docker run -d -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix yourimagename

How to use (linux) with docker-compose:

Once the image it´s build, edit the docker-compose.yml file and delete hostnameHere and change imageHere with yourimagename. Save the file and execute:

docker-compose up

Importan Details

  • Eclipse use 1024m of memory, by default is 256m, I changed to 1024m by copy the init file into the eclipse directory. If you want to make more changes change the init file and built the image again.
  • Using docker-compose will create a volume with the current directory so you can persist your projects. The folder is allocated in the docker following the next Path: /EclipseIDE/eclipse/Projects

For any issue contact with me by twitter: @FlaviusStan_Dev .

eclipseindocker's People

Contributors

flaviusns avatar

Stargazers

 avatar  avatar  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.