Skip to content

Commit

Permalink
Merge branch 'migrate_vx_35' into 'master'
Browse files Browse the repository at this point in the history
rest

See merge request grant/kvdn!3
  • Loading branch information
cinterloper committed Jan 11, 2018
2 parents 9d4dd3b + fbb8946 commit 3ad6eb6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM env/jvmdev
FROM ubuntu:artful
ARG JAR
ENV JAR ${JAR}
RUN apt-get update && apt-get install -y openjdk-8-jdk axel maven jq nodejs npm gradle groovy2 && apt clean
RUN apt-get update && apt-get install -y openjdk-8-jdk groovy
ENV TERM xterm
RUN mkdir -p /opt/kvdn/{bin,lib}
ADD $JAR /opt/kvdn.jar
ADD Client /opt/kvdn/lib/Client
ADD examples/config /opt/kvdn/config
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk
CMD java -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -jar /opt/kvdn.jar
18 changes: 15 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ plugins {
id "net.ltgt.apt" version "0.6"
}
def strict = false
if(System.getenv("STRICT_TYPECHECKING") != null)
if(System.getenv("STRICT_TYPECHECKING") != null) {
strict = true

println "COMPILE STATIC & TYPECHECKED"
}
compileGroovy {
groovyOptions.javaAnnotationProcessing = true
if(strict)
Expand All @@ -38,11 +39,22 @@ compileGroovy {
apply plugin: "co.riiid.gradle"
apply plugin: 'distribution'
apply plugin: 'idea'

apply plugin: 'java'
apply plugin: 'groovy'

def libversion = '3.5.0'
if(System.getenv("VERTX_VERSION") != null)
libversion = System.getenv("VERTX_VERSION")
sourceSets{
main{
groovy{
exclude "net/iowntheinter/kvdn/storage/lock/*"
exclude "net/iowntheinter/kvdn/storage/queue/*"
exclude "net/iowntheinter/kvdn/storage/counter/*"

}
}
}

version = "$libversion-${new File('src/main/resources/_KVDN_VERSION.txt').text.trim()}"
println("version $version")
Expand Down
2 changes: 1 addition & 1 deletion buildfresh.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
./gradlew clean util:jar util:publish;DISABLE_EXTENSIONS=true ./gradlew clean shadowJar publish test && echo built base &&
./gradlew clean util:jar util:publish;DISABLE_EXTENSIONS=true ./gradlew --info clean shadowJar publish test && echo built base &&
./gradlew service-proxy:generateserviceproxy service-proxy:shadowJar service-proxy:publish && echo built proxy &&
./gradlew extensions/mapdb:shadowJar publish &&
./gradlew server:clean server:shadowJar server:publish
2 changes: 1 addition & 1 deletion gradle/config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import groovy.transform.CompileStatic
import groovy.transform.TypeChecked

withConfig(configuration) {
//ast(CompileStatic)
ast(CompileStatic)
ast(TypeChecked)
}
2 changes: 1 addition & 1 deletion run-mapdb.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -jar extensions/mapdb/build/libs/extensions/mapdb-3.5.0-1.9.5-b2-fat.jar --conf '{"kvdn":{"data_implementation":"net.iowntheinter.kvdn.mapdb.impl.mapdbDataImpl","key_provider":"net.iowntheinter.kvdn.mapdb.impl.mapdbKeyProvider","mapdb":{"dbPath":"/core/datasets/vr/dev/mapdb.db"}}}'
java -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -jar extensions/mapdb/build/libs/extensions/mapdb-*-fat.jar --conf '{"kvdn":{"data_implementation":"net.iowntheinter.kvdn.mapdb.impl.MapdbDataImpl","key_provider":"net.iowntheinter.kvdn.mapdb.impl.MapdbKeyProvider","mapdb":{"dbPath":"/core/datasets/vr/dev/mapdb.db"}}}' 2>&1

0 comments on commit 3ad6eb6

Please sign in to comment.