Docker images (#527)

with this change we're adding generation of 2 docker images - verifier and stub runner
we also added a project `spring-cloud-contract-stub-runner-boot` which contains a far jar with stub runner boot

fixes gh-526, gh-516
This commit is contained in:
Marcin Grzejszczak
2018-01-24 17:07:22 +01:00
committed by GitHub
parent a5bdb32b7c
commit 37d7e8cfd3
24 changed files with 1652 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
FROM anapsix/alpine-java:8_jdk
MAINTAINER Marcin Grzejszczak <mgrzejszczak@pivotal.io>
COPY project /spring-cloud-contract/
WORKDIR /spring-cloud-contract/
# Let's copy the downloaded deps to .m2 and the gradle cache
COPY target/maven_dependencies /root/.m2/repository/
COPY target/gradle_dependencies /root/.gradle/
# Let's download gradle wrapper if for some reason it hasn't been downloaded
RUN ./gradlew clean build --stacktrace -x copyOutput || echo "Expected to fail"
CMD ["./build.sh"]