Skip to content

Commit

Permalink
Bump version for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonf committed Dec 14, 2014
1 parent cca120d commit 47e428f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
7 changes: 7 additions & 0 deletions docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

BASEDIR=`pwd`
BUILD_VERSION='0.2.2'

docker build -t "openmhealth/omh-shim-server:$BUILD_VERSION" docker/binary
docker build -t "openmhealth/omh-shim-server:latest" docker/binary
2 changes: 1 addition & 1 deletion docker/binary/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM openmhealth/openjdk-7-jre
MAINTAINER Emerson Farrugia <[email protected]>

RUN mkdir /root/omh-shims
ADD omh-shims-0.2.1.jar /root/omh-shims/shim-server.jar
ADD shim-server.jar /root/omh-shims/
EXPOSE 8083

CMD /usr/bin/java -jar /root/omh-shims/shim-server.jar
20 changes: 15 additions & 5 deletions shim-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ apply plugin: 'java'
apply plugin: 'spring-boot' // used for blessed dependencies and auto-configuration

jar {
baseName = 'omh-shims'
version = '0.2.1'
baseName = 'shim-server'
version = '0.2.2'
}

springBoot {
Expand All @@ -33,6 +33,7 @@ repositories {

ext {
javaVersion = 1.7
healthVaultSdkVersion = '1.6'
jacksonVersion = '2.4.4' // platform's still on 2.3.4
signpostVersion = '1.2.1.2'
}
Expand All @@ -52,8 +53,8 @@ dependencies {
compile "commons-io:commons-io"
compile "org.apache.httpcomponents:httpclient"
compile "org.apache.httpcomponents:httpcore"
compile "com.microsoft.hsg:hv-jaxb:1.6"
compile "com.microsoft.hsg:hv-sdk:1.6"
compile "com.microsoft.hsg:hv-jaxb:${healthVaultSdkVersion}"
compile "com.microsoft.hsg:hv-sdk:${healthVaultSdkVersion}"
compile "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}"
compile "joda-time:joda-time:2.4"
Expand All @@ -74,6 +75,15 @@ dependencies {
testCompile "org.springframework.boot:spring-boot-starter-test"
}

task copyArchiveJarToDockerContext(dependsOn: build, type: Copy) {
from 'build/libs'
into '../docker/binary'
include "${jar.archiveName}"
rename { String fileName ->
fileName.replace("${jar.archiveName}", "${jar.baseName}.jar")
}
}

task wrapper(type: Wrapper) {
gradleVersion = '2.1'
gradleVersion = '2.2.1'
}

0 comments on commit 47e428f

Please sign in to comment.