Skip to content

Commit

Permalink
Allow skipping Docker build from main build process
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Porunov <[email protected]>
  • Loading branch information
porunov committed Oct 12, 2024
1 parent 73232fe commit 9f09767
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/storage-backend/scylladb.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ mvn clean install -Pjanusgraph-release -Puse-scylla -DskipTests=true --batch-mod
///

This command will generate distribution builds (both normal and full distribution build) in the
following directory: `janusgraph-dist/target/`.
following directory: `janusgraph-dist/target/` as well as build local JanusGraph Docker image.
If you don't have Docker installed or wish to avoid Docker image build process you can pass `-Pskip-docker`
(notice, all tests are automatically disabled when this flag is used).

Otherwise, if you can't build distribution on your own, you can use the JanusGraph provided distribution and replace
the following libraries in `lib` directory (all libraries can be downloaded via Maven Central Repository).
Expand Down
10 changes: 10 additions & 0 deletions janusgraph-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<skipDefaultDistroIT>${it.skip}</skipDefaultDistroIT>

<doc.dir>${project.parent.basedir}/docs</doc.dir>
<docker.build.skip>false</docker.build.skip>

<cql-module>janusgraph-cql</cql-module>
<cql-hadoop-module>cassandra-hadoop-util</cql-hadoop-module>
Expand Down Expand Up @@ -363,6 +364,13 @@
<cql-hadoop-module>scylla-hadoop-util</cql-hadoop-module>
</properties>
</profile>
<profile>
<id>skip-docker</id>
<properties>
<docker.build.skip>true</docker.build.skip>
<skipTests>true</skipTests>
</properties>
</profile>
<profile>
<id>janusgraph-release</id>
<dependencies>
Expand Down Expand Up @@ -636,6 +644,7 @@
<goal>exec</goal>
</goals>
<configuration>
<skip>${docker.build.skip}</skip>
<executable>./docker/build-and-push-image.sh</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
Expand Down Expand Up @@ -669,6 +678,7 @@
<goal>exec</goal>
</goals>
<configuration>
<skip>${docker.build.skip}</skip>
<executable>./docker/build-and-push-image.sh</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
Expand Down

0 comments on commit 9f09767

Please sign in to comment.