Skip to content

Instantly share code, notes, and snippets.

View durimkryeziu's full-sized avatar
🤓

Durim Kryeziu durimkryeziu

🤓
  • Kosovo/Lipjan
View GitHub Profile
@durimkryeziu
durimkryeziu / Dockerfile
Last active November 30, 2019 19:19
Spring Boot Docker | Gradle | Multi-Stage Build
# Gradle version of this: https://spring.io/guides/topicals/spring-boot-docker/#_multi_stage_build
FROM azul/zulu-openjdk-alpine:11.0.5 as build
WORKDIR /workspace/app/
COPY gradlew .
COPY gradle gradle
COPY build.gradle settings.gradle /workspace/app/
COPY src src
ENV GRADLE_OPTS -Dorg.gradle.daemon=false -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
@durimkryeziu
durimkryeziu / integration-test.gradle
Last active January 21, 2019 11:28
Gradle Configuration for Integration Tests
// Tested with Gradle 5.0
sourceSets {
integrationTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
resources.srcDir file('src/integrationtest/resources')
}
}
configurations {