How to Build Submarine
Prerequisitesβ
- JDK 1.8
- Maven 3.3 or later ( < 3.8.1 )
- Docker
Quick Startβ
Build Your Custom Submarine Docker Imagesβ
Submarine provides default Docker image in the release artifacts, sometimes you would like to do some modifications on the images. You can rebuild Docker image after you make changes.
Note that you need to make sure the images built above can be accessed in k8s Usually this needs to rename and push to a proper Docker registry.
mvn clean package -DskipTests
Build submarine server image:
./dev-support/docker-images/submarine/build.sh
Build submarine database image:
./dev-support/docker-images/database/build.sh
Checking releases for licensesβ
mvn clean org.apache.rat:apache-rat-plugin:check
Building source code / binary distribution with Maven Wrapperβ
- Maven Wrapper (Optional): Maven Wrapper can help you avoid dependencies problem about Maven version.
# Setup Maven Wrapper (Maven 3.6.1)
mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.6.1
# Check Maven Wrapper
./mvnw -version
# Replace 'mvn' with 'mvnw'. Example:
./mvnw clean package -DskipTests