Skip to content
Snippets Groups Projects
Commit d24c72fc authored by Bernhard Johannes Berger's avatar Bernhard Johannes Berger
Browse files

Script to create a new Docker image containing an Eclipse mirror for building the languages.

parent ce27b084
No related branches found
No related tags found
No related merge requests found
FROM library/maven:3.8.7-eclipse-temurin-17
COPY pom-eclipse.xml /tmp
COPY pom-orbit.xml /tmp
RUN mvn -f /tmp/pom-eclipse.xml package
RUN mvn -f /tmp/pom-orbit.xml package
RUN rm /tmp/pom-eclipse.xml
RUN rm /tmp/pom-orbit.xml
RUN rm -rf /tmp/target
RUN rm -rf /root/.m2/repository
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
CMD ["mvn"]
\ No newline at end of file
docker build -t gitlab.informatik.uni-bremen.de:5005/evoal/source/evoal-core/evoal/eclipse-mirror:2022-12 .
#docker push gitlab.informatik.uni-bremen.de:5005/evoal/source/evoal-core/evoal/eclipse-mirror:2022-12
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.evoal</groupId>
<artifactId>p2-mirror-orbit</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Mirror Parent</name>
<properties>
<tycho.version>3.0.0</tycho.version>
<tycho-extras.version>3.0.0</tycho-extras.version>
<eclipse.environment>JavaSE-17</eclipse.environment>
<url.eclipse>https://download.eclipse.org/releases/2022-12/202212071000</url.eclipse>
<url.orbit>https://download.eclipse.org/tools/orbit/downloads/drops/R20221123021534/repository</url.orbit>
</properties>
<build>
<plugins>
<!-- Activating Maven Tycho -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>mirror</goal>
</goals>
</execution>
</executions>
<configuration>
<source>
<!-- source repositories to mirror from -->
<repository>
<url>${url.eclipse}</url>
<layout>p2</layout>
</repository>
<!--
<repository>
<url>${url.orbit}</url>
<layout>p2</layout>
</repository>
-->
</source>
<!-- The destination directory to mirror to. -->
<destination>${env.HOME}/.m2/p2-mirror/eclipse-mirror</destination>
<!-- Whether only strict dependencies should be followed. -->
<!-- "strict" means perfect version match -->
<followStrictOnly>false</followStrictOnly>
<!-- Whether or not to follow optional requirements. -->
<includeOptional>true</includeOptional>
<!-- Whether or not to follow non-greedy requirements. -->
<includeNonGreedy>true</includeNonGreedy>
<!-- Whether to filter the resulting set of IUs to only -->
<!-- include the latest version of each IU -->
<latestVersionOnly>false</latestVersionOnly>
<!-- don't mirror artifacts, only metadata -->
<mirrorMetadataOnly>false</mirrorMetadataOnly>
<!-- whether to compress the content.xml/artifacts.xml -->
<compress>true</compress>
<!-- whether to append to the target repository content -->
<append>true</append>
</configuration>
</plugin>
</plugins>
</build>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.evoal</groupId>
<artifactId>p2-mirror-orbit</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Mirror Parent</name>
<properties>
<tycho.version>3.0.0</tycho.version>
<tycho-extras.version>3.0.0</tycho-extras.version>
<eclipse.environment>JavaSE-17</eclipse.environment>
<url.eclipse>https://download.eclipse.org/releases/2022-12/202212071000</url.eclipse>
<url.orbit>https://download.eclipse.org/tools/orbit/downloads/drops/R20221123021534/repository</url.orbit>
</properties>
<build>
<plugins>
<!-- Activating Maven Tycho -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>mirror</goal>
</goals>
</execution>
</executions>
<configuration>
<source>
<!-- source repositories to mirror from -->
<repository>
<url>${url.orbit}</url>
<layout>p2</layout>
</repository>
</source>
<!-- The destination directory to mirror to. -->
<destination>${env.HOME}/.m2/p2-mirror/orbit-mirror</destination>
<!-- Whether only strict dependencies should be followed. -->
<!-- "strict" means perfect version match -->
<followStrictOnly>false</followStrictOnly>
<!-- Whether or not to follow optional requirements. -->
<includeOptional>true</includeOptional>
<!-- Whether or not to follow non-greedy requirements. -->
<includeNonGreedy>true</includeNonGreedy>
<!-- Whether to filter the resulting set of IUs to only -->
<!-- include the latest version of each IU -->
<latestVersionOnly>false</latestVersionOnly>
<!-- don't mirror artifacts, only metadata -->
<mirrorMetadataOnly>false</mirrorMetadataOnly>
<!-- whether to compress the content.xml/artifacts.xml -->
<compress>true</compress>
<!-- whether to append to the target repository content -->
<append>true</append>
</configuration>
</plugin>
</plugins>
</build>
</project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment