Hi,
Is is possible to install Epsilon inside an Eclipse in a docker container, using the p2 director?
Ultimately I want to have Eclipse+EMF/Epsilon/Emfatic in this container, with the appropriate projects set up, able to display on the host X server.
I am setting up a Dockerfile, starting with eclipse-modeling-2023-09-R-linux-gtk-x86_64.tar.gz.
I can start the container and view Eclipse properly.
The problem is in setting up the Epsilon packages. Here I am using the zip epsilon-2.4-site.zip, but it is the same when using the online site. It always fails with dependency errors:
RUN eclipse -application org.eclipse.equinox.p2.director -repository 'jar:file:/home/simtesting/plugins/epsilon-2.4-site.zip!/' -installIU org.eclipse.epsilon.eunit.dt.emf.feature.feature.group,org.eclipse.epsilon.core.feature.feature.group,org.eclipse.epsilon.core.feature.feature.group,org.eclipse.epsilon.core.dt.feature.feature.group,org.eclipse.epsilon.emf.dt.feature.feature.group,org.eclipse.epsilon.emf.feature.feature.group,org.eclipse.epsilon.emc.graphml.feature.feature.group,org.eclipse.epsilon.evl.emf.validation.feature.feature.group,org.eclipse.epsilon.ewl.emf.feature.feature.group,org.eclipse.epsilon.flexmi.feature.feature.group,org.eclipse.epsilon.flexmi.dt.feature.feature.group
Here is an example of the current error:
Cannot complete the install because one or more required items could not be found.
Software being installed: Flexmi Development Tools 2.4.0.202203041826 (org.eclipse.epsilon.flexmi.dt.feature.feature.group 2.4.0.202203041826)
Missing requirement: Exeed EMF Model Editor 2.4.0.202203041826 (org.eclipse.epsilon.dt.exeed 2.4.0.202203041826) requires 'osgi.bundle; org.jdom 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Epsilon Development Tools for EMF 2.4.0.202203041826 (org.eclipse.epsilon.emf.dt.feature.feature.group 2.4.0.202203041826)
To: org.eclipse.equinox.p2.iu; org.eclipse.epsilon.dt.exeed [2.4.0.202203041826,2.4.0.202203041826]
Cannot satisfy dependency:
From: Flexmi Development Tools 2.4.0.202203041826 (org.eclipse.epsilon.flexmi.dt.feature.feature.group 2.4.0.202203041826)
To: org.eclipse.equinox.p2.iu; org.eclipse.epsilon.emf.dt.feature.feature.group [2.4.0.202203041826,2.4.0.202203041826]
There were errors. See log file: /home/simtesting/eclipse/eclipse/configuration/1700232160657.log
Is there any way to tell p2 director to resolve and download all the dependencies automatically, like Eclipse does when installing from "Install New Software"? I managed to find some of this osgi.bundle dependencies at this Orbit repository, but there has to be a better solution than just looking them all up manually and adding an individual install command for each dependency.
Alternatively, is there a way to get from the Eclipse GUI a full list of all the repository IDs and installable units that were used in the manual installation, so I can put these into the Dockerfile?
Thanks,
James