Skip to content

Commit

Permalink
Merge pull request #730 from terrestris/docker-image-build-time
Browse files Browse the repository at this point in the history
Fix build time for docker images
  • Loading branch information
ahennr authored Sep 4, 2023
2 parents c738807 + a32e910 commit b1e0db3
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
17

1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ header:
- '**/*.iml'
- '.releaserc.json'
- '.commitlintrc.json'
- '.java-version'

comment: on-failure
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
<jvmFlag>-Djava.security.egd=file:/dev/./urandom</jvmFlag>
<jvmFlag>-Djdk.serialSetFilterAfterRead=true</jvmFlag>
</jvmFlags>
<creationTime>EPOCH</creationTime>
<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
</container>

</configuration>
Expand Down
23 changes: 19 additions & 4 deletions shogun-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,26 @@
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<offline>true</offline>
<abbrevLength>8</abbrevLength>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
<plugin>
Expand Down
18 changes: 17 additions & 1 deletion shogun-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,24 @@
<name>SHOGun Config</name>
<packaging>jar</packaging>

<dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<configuration>
<!-- we don't want jib to execute on this module -->
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
9 changes: 1 addition & 8 deletions shogun-gs-interceptor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,7 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<configuration>
<offline>true</offline>
<abbrevLength>8</abbrevLength>
</configuration>
</plugin>

<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
Expand Down
8 changes: 8 additions & 0 deletions shogun-lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<configuration>
<!-- we don't want jib to execute on this module -->
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
17 changes: 17 additions & 0 deletions shogun-manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@
<name>SHOGun Manager client</name>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<configuration>
<!-- we don't want jib to execute on this module -->
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>de.terrestris</groupId>
Expand Down
23 changes: 19 additions & 4 deletions shogun-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,26 @@
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<offline>true</offline>
<abbrevLength>8</abbrevLength>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit b1e0db3

Please sign in to comment.