From a762625b4e0a45b112990b89b5ccfcf3aa692ad2 Mon Sep 17 00:00:00 2001 From: Leandro Borges Ferreira Date: Mon, 26 Mar 2018 23:07:11 -0300 Subject: [PATCH] Fixing Dockerfile --- Dockerfile | 4 +++- run_buck_cache_client.sh | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a74b5be3..07d92b4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,6 @@ RUN git clone https://github.com/uber/buck-http-cache.git WORKDIR buck-http-cache -RUN ./run_buck_cache_client.sh standalone +RUN ./gradlew distJar + +ENTRYPOINT ./run_buck_cache_client.sh standalone diff --git a/run_buck_cache_client.sh b/run_buck_cache_client.sh index 00cbcc0e..2aa260d6 100755 --- a/run_buck_cache_client.sh +++ b/run_buck_cache_client.sh @@ -1,5 +1,3 @@ #!/usr/bin/env bash -./gradlew distJar - $JAVA_HOME/bin/java -Xmx16g -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:MaxDirectMemorySize=6g -Dlog.home=/var/log/buck-cache-client/logs -jar cache/build/libs/cache-1.0.0-standalone.jar server cache/src/dist/config/$1.yml