- Swagger UI
http://${DOMAIN}/swagger-ui.html
- Test
./gradlew clean test --info
- Code Scan
./gradlew sonarqube \
-Dsonar.host.url=${SONARQUBE_URL} \
-Dsonar.login=${USER} \
-Dsonar.password=${PASSWORD} \
-Dsonar.projectName=fare-${STUDENT_ID} \
-Dsonar.projectKey=fare-${STUDENT_ID}
- Build Artifact
./gradlew clean build
- Build Image (COPY Artifact into image)
docker build -f Dockerfile-openjdk -t fare:latest .
- Build Image (Gradle build in image)
docker build -f Dockerfile-gradle -t fare:latest .
- Run image
# default port 8080
docker run -p 8080:8080 fare:latest