diff --git a/create-cache-permanent/Dockerfile b/create-cache-permanent/Dockerfile deleted file mode 100644 index 28f4984..0000000 --- a/create-cache-permanent/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM fabric8/java-jboss-openjdk8-jdk:1.2.3 - -EXPOSE 8080 - -# Copy dependencies -COPY target/dependency/* /deployments/libs/ - -ENV JAVA_APP_DIR=/deployments -ENV JAVA_LIB_DIR=/deployments/libs -ENV JAVA_CLASSPATH=${JAVA_APP_DIR}/classes:${JAVA_LIB_DIR}/* -ENV JAVA_OPTIONS="" -ENV JAVA_MAIN_CLASS="app.Main" - -# Copy classes -COPY target/classes /deployments/classes diff --git a/create-cache-permanent/build.sh b/create-cache-permanent/build.sh index 82e0907..f08166d 100755 --- a/create-cache-permanent/build.sh +++ b/create-cache-permanent/build.sh @@ -8,8 +8,8 @@ oc project myproject APP=app # || true to make it idempotent -oc new-build --binary --name=${APP} -l app=${APP} || true +oc new-build --binary --strategy=source --name=${APP} -l app=${APP} fabric8/s2i-java:2.3 || true -mvn -s settings.xml clean dependency:copy-dependencies compile -DincludeScope=runtime +mvn -s settings.xml clean package -DincludeScope=runtime -oc start-build ${APP} --from-dir=. --follow +oc start-build ${APP} --from-dir=target/ --follow diff --git a/create-cache-permanent/pom.xml b/create-cache-permanent/pom.xml index fc0b016..1f95bc0 100644 --- a/create-cache-permanent/pom.xml +++ b/create-cache-permanent/pom.xml @@ -1,39 +1,59 @@ - - 4.0.0 + + 4.0.0 + demo + create-cache-permanent + 1.0-SNAPSHOT + + 1.8 + 1.8 + UTF-8 + 8.5.1.Final-redhat-1 + 3.1.0 + + - demo - create-cache-permanent - 1.0-SNAPSHOT - - - 1.8 - 1.8 - - UTF-8 - - 8.5.1.Final-redhat-1 - - - - - - org.infinispan - infinispan-bom - ${version.infinispan} - import - pom - - - - - + + - org.infinispan - infinispan-client-hotrod + org.infinispan + infinispan-bom + ${version.infinispan} + import + pom - + + + + + + org.infinispan + infinispan-client-hotrod + + + + + + org.apache.maven.plugins + maven-shade-plugin + ${version.plugin.shade-maven} + + + package + + shade + + + + + app.Main + + + + + + + +