Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
#132 Wrong ETH Contract Balance
Browse files Browse the repository at this point in the history
-- move to gradle 4.7
-- remove depricated UseCGroupMemoryLimitForHeap
  • Loading branch information
hleb-albau committed May 25, 2018
1 parent d68311a commit 338873a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 17 deletions.
4 changes: 2 additions & 2 deletions build-and-run-docker-image.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
docker build -t build/dump-eth -f ./pumps/bitcoin/Dockerfile ./
docker run -e CHAIN=BITCOIN -e CS_LOG_LEVEL=TRACE --net=host build/pump-btc
docker build -t build/pump-eth -f ./pumps/ethereum/Dockerfile ./
docker run -e CHAIN_FAMILY=ETHEREUM -e CS_LOG_LEVEL=TRACE --net=host build/pump-eth
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ buildscript {
}

task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
gradleVersion = '4.7'
distributionType = Wrapper.DistributionType.ALL
}

Expand Down
3 changes: 1 addition & 2 deletions contract-summary/ethereum/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ RUN ./gradlew clean :contract-summary:ethereum:assemble
# Container with application
FROM openjdk:10-jre-slim
COPY --from=build /build/contract-summary/ethereum/build/libs /cyberapp/bin
ENV JAVA_CGROUP_OPTS = "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"
ENTRYPOINT exec java $JAVA_CGROUP_OPTS $JAVA_OPTS -jar /cyberapp/bin/ethereum.jar
ENTRYPOINT exec java $JAVA_OPTS -jar /cyberapp/bin/ethereum.jar
3 changes: 1 addition & 2 deletions dumps/bitcoin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ RUN ./gradlew clean :dumps:bitcoin:assemble
# Container with application
FROM openjdk:10-jre-slim
COPY --from=build /build/dumps/bitcoin/build/libs /cyberapp/bin
ENV JAVA_CGROUP_OPTS = "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"
ENTRYPOINT exec java $JAVA_CGROUP_OPTS $JAVA_OPTS -jar /cyberapp/bin/bitcoin.jar
ENTRYPOINT exec java $JAVA_OPTS -jar /cyberapp/bin/bitcoin.jar
3 changes: 1 addition & 2 deletions dumps/ethereum/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ RUN ./gradlew clean :dumps:ethereum:assemble
# Container with application
FROM openjdk:10-jre-slim
COPY --from=build /build/dumps/ethereum/build/libs /cyberapp/bin
ENV JAVA_CGROUP_OPTS = "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"
ENTRYPOINT exec java $JAVA_CGROUP_OPTS $JAVA_OPTS -jar /cyberapp/bin/ethereum.jar
ENTRYPOINT exec java $JAVA_OPTS -jar /cyberapp/bin/ethereum.jar
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 1 addition & 2 deletions pumps/bitcoin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ RUN ./gradlew clean :pumps:bitcoin:assemble
# Container with application
FROM openjdk:10-jre-slim
COPY --from=build /build/pumps/bitcoin/build/libs /cyberapp/bin
ENV JAVA_CGROUP_OPTS = "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"
ENTRYPOINT exec java $JAVA_CGROUP_OPTS $JAVA_OPTS -jar /cyberapp/bin/bitcoin.jar
ENTRYPOINT exec java $JAVA_OPTS -jar /cyberapp/bin/bitcoin.jar
3 changes: 1 addition & 2 deletions pumps/ethereum/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ RUN ./gradlew clean :pumps:ethereum:assemble
# Container with application
FROM openjdk:10-jre-slim
COPY --from=build /build/pumps/ethereum/build/libs /cyberapp/bin
ENV JAVA_CGROUP_OPTS = "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"
ENTRYPOINT exec java $JAVA_CGROUP_OPTS $JAVA_OPTS -jar /cyberapp/bin/ethereum.jar
ENTRYPOINT exec java $JAVA_OPTS -jar /cyberapp/bin/ethereum.jar
3 changes: 1 addition & 2 deletions search-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ RUN ./gradlew clean :search-api:assemble
# Container with application
FROM openjdk:10-jre-slim
COPY --from=build /build/search-api/build/libs /cyberapp/bin
ENV JAVA_CGROUP_OPTS = "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"
ENTRYPOINT exec java $JAVA_CGROUP_OPTS $JAVA_OPTS -jar /cyberapp/bin/search-api.jar
ENTRYPOINT ["java", "-jar", "/cyberapp/bin/search-api.jar"]

0 comments on commit 338873a

Please sign in to comment.