Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD build/libs/base-node.jar /base-node.jar
ENTRYPOINT ["java","-jar","/base-node.jar"]
2 changes: 1 addition & 1 deletion src/main/kotlin/com/bitclave/node/ContractDeployer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Component

@Component
@Profile("test", "local")
@Profile("test", "local", "docker")
class ContractDeployer(
private val web3Provider: Web3Provider,
private val hybridProperties: HybridProperties
Expand Down
24 changes: 24 additions & 0 deletions src/main/resources/application-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
spring:
jpa:
hibernate:
ddlAuto: create-drop

datasource:
driverClassName: org.postgresql.Driver
platform: postgres
url: ${JDBC_DATABASE_URL}
username: ${JDBC_DATABASE_USERNAME}
password: ${JDBC_DATABASE_PASSWORD}

server:
port: 8080

hybrid:
nodeUrl: ${ETHEREUM_RPC_URL}
ownerPrivateKey: ${OWNER_PRIVATE_KEY}

contracts:
nameService:
address: ${DNS_CONTRACT_ADDRESS}
gasPrice: ${ETHEREUM_GAS_PRICE}
gasLimit: ${ETHEREUM_GAS_LIMIT}