Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 722 Bytes

README.md

File metadata and controls

40 lines (34 loc) · 722 Bytes

MASTER-FILE

  • 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=master-file-${STUDENT_ID} \
  -Dsonar.projectKey=master-file-${STUDENT_ID} 
  • Build Artifact
./gradlew clean build
  • Build Image (COPY Artifact into image)
docker build -f Dockerfile-openjdk -t master-file:latest .
  • Build Image (Gradle build in image)
docker build -f Dockerfile-gradle -t master-file:latest .

* Run image
```bash=
# default port 8080
docker run -p 8080:8080 master-file:latest