我想为开发人员提供一个具有所有必需插件的现成的Eclipse环境。我想使安装可复制。如何自动执行?
答案 0 :(得分:0)
这是一个Dockerfile片段,完全通过命令行在GEF和PMD上将新的eclipse安装到/ opt / eclipse。
对于第一次运行,您可以浏览ftp站点以获取要下载的正确版本。
对于第二次运行,您可以从“已安装的内容”中找出插件ID,并从“安装新软件”中找到存储库。虽然我不能说出一种可靠的方法来找出市场插件的存储库,但是到目前为止,我对Google很幸运。
RUN wget "http://ftp.halifax.rwth-aachen.de/eclipse//technology/epp/downloads/release/2019-03/R/eclipse-jee-2019-03-R-linux-gtk-x86_64.tar.gz" -O /tmp/eclipse.tar.gz;\
cd /opt ; tar xzf /tmp/eclipse.tar.gz;\
rm /tmp/eclipse.tar.gz
RUN /opt/eclipse/eclipse \
-application org.eclipse.equinox.p2.director \
-destination /opt/eclipse \
-bundlepool /opt/eclipse \
-profile SDKProfile \
-repository https://dl.bintray.com/pmd/pmd-eclipse-plugin/releases/4.2.0.v20190331-1136 \
-repository http://download.eclipse.org/tools/gef/updates/releases/5.0.0_gef-master_4403 \
-repository http://download.eclipse.org/releases/2019-03 \
-installIUs net.sourceforge.pmd.eclipse.feature.group \
-installIUs org.apache.commons.io \
-installIUs org.apache.commons.lang3 \
-installIUs org.eclipse.xtext.sdk.feature.group \
-installIUs org.eclipse.emf.sdk.feature.group \
-installIUs org.eclipse.sdk.ide \
-installIUs org.junit \
-installIUs org.eclipse.fx.runtime.min.feature.feature.group \
-installIUs org.eclipse.fx.runtime.min.feature.feature.group \
-installIUs org.eclipse.gef.common.source.feature.group \
-installIUs org.eclipse.gef.common.feature.group \
-installIUs org.eclipse.gef.common.sdk.feature.group \
-installIUs org.eclipse.gef.geometry.sdk.feature.group \
-installIUs org.eclipse.gef.fx.sdk.feature.group \
-installIUs org.eclipse.gef.mvc.sdk.feature.group \
-installIUs org.eclipse.gef.mvc.examples.source.feature.group \
-installIUs org.eclipse.gef.layout.sdk.feature.group \
-installIUs org.eclipse.gef.graph.sdk.feature.group \
-installIUs org.eclipse.gef.zest.sdk.feature.group \
-installIUs org.eclipse.gef.zest.examples.source.feature.group \
-installIUs org.eclipse.gef.dot.sdk.feature.group \
-installIUs org.eclipse.gef.cloudio.sdk.feature.group \
-noSplash