You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2022/07/13 10:42:24 UTC

[tinkerpop] 01/03: Rebuild Gremlin Server docker images on each execution

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch ci-fix
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit e40c7f8b5b56edd0cb475e6d0b2f3b50c7b674e2
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Wed Jul 13 06:36:25 2022 -0400

    Rebuild Gremlin Server docker images on each execution
    
    This ensure that the latest Gremlin Server changes are available to other modules that rely on them for testing. Also, for a basic mvn clean install for a fresh system the docker image isn't present and the build will end in error. CTR
---
 gremlin-server/pom.xml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gremlin-server/pom.xml b/gremlin-server/pom.xml
index 48cbf98f67..794b426083 100644
--- a/gremlin-server/pom.xml
+++ b/gremlin-server/pom.xml
@@ -148,8 +148,31 @@ limitations under the License.
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-failsafe-plugin</artifactId>
             </plugin>
+            <!-- build docker image on each build as language variants will need the latest to do their work -->
+            <plugin>
+                <groupId>com.spotify</groupId>
+                <artifactId>dockerfile-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>docker-image-build</id>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                        <configuration>
+                            <tag>${project.version}</tag>
+                            <buildArgs>
+                                <GREMLIN_SERVER_DIR>target/apache-tinkerpop-${project.artifactId}-${project.version}-standalone</GREMLIN_SERVER_DIR>
+                            </buildArgs>
+                        </configuration>
+                    </execution>
+                </executions>
+                <configuration>
+                    <repository>tinkerpop/gremlin-server</repository>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
+
     <profiles>
         <profile>
             <id>use-epoll</id>