Skip to content

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vthglyk committed Oct 10, 2018
1 parent 5e8dd13 commit 8482a33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM openjdk:8-jre-alpine

WORKDIR /home
ARG COMPONENT_BUILD_VERSION

ENV componentName "RapPluginExample"
ENV componentVersion ${COMPONENT_BUILD_VERSION}
ENV JVM_OPTS "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1"
ENV componentVersion 1.2.0

COPY build/libs/$componentName-$componentVersion.jar /home/
COPY src/main/resources/application-docker.properties /home/application.properties
RUN apk --no-cache add \
git \
unzip \
wget \
bash \
&& echo "Downloading $componentName $componentVersion" \
&& wget "https://jitpack.io/com/github/symbiote-h2020/$componentName/$componentVersion/$componentName-$componentVersion-run.jar"

CMD java $JAVA_HTTP_PROXY $JAVA_HTTPS_PROXY $JAVA_NON_PROXY_HOSTS $JVM_OPTS -DSPRING_BOOT_WAIT_FOR_SERVICES=symbiote-rap:8103 -jar $componentName-${componentVersion}-run.jar
CMD java $JAVA_HTTP_PROXY $JAVA_HTTPS_PROXY $JAVA_NON_PROXY_HOSTS -jar $(ls *run.jar)
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies {
//compile('eu.h2020.symbiote:ResourceAccessProxyPluginStarter:0.4.0-SNAPSHOT')
// jitpack
//compile('com.github.symbiote-h2020:ResourceAccessProxyPluginStarter:0.3+')
compile('com.github.symbiote-h2020:ResourceAccessProxyPluginStarter:0.4.+')
compile('com.github.symbiote-h2020:ResourceAccessProxyPluginStarter:0.4+')

testCompile('org.springframework.boot:spring-boot-starter-test')
}
Expand Down

0 comments on commit 8482a33

Please sign in to comment.