Skip to content

Commit

Permalink
revert native-image change
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi77Qi committed Dec 20, 2018
1 parent ee47938 commit 517752d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ COPY ./sam*.jar /sam

# Build native executable https://www.graalvm.org/docs/reference-manual/aot-compilation/
# Add Sam as a service (it will start when the container starts)
#CMD java $JAVA_OPTS -jar $(find /sam -name 'sam*.jar')
CMD echo $JAVA_OPTS
CMD java -version
CMD native-image $JAVA_OPTS -H:+ReportUnsupportedElementsAtRuntime -jar $(echo '/sam/sam*.jar')
CMD $(echo '/sam/sam*SNAPSHOT.jar')
CMD java $JAVA_OPTS -jar $(echo '/sam/sam*.jar')
#RUN native-image $JAVA_OPTS -H:+ReportUnsupportedElementsAtRuntime \
# --allow-incomplete-classpath \
# --delay-class-initialization-to-runtime=org.ehcache.core.internal.service.ServiceLocator,com.getsentry.raven.event.EventBuilder,com.getsentry.raven.config.JndiLookup,com.getsentry.raven.RavenFactory,com.getsentry.raven.environment.RavenEnvironment,io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpenSslServerContext,io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpenSslContext,com.codahale.metrics.health.HealthCheckRegistry \
# --rerun-class-initialization-at-runtime=org.httpkit.client.SslContextFactory \
# -jar $(echo '/sam/sam*.jar') \
# org.broadinstitute.dsde.workbench.sam.Boot
#
#CMD $(echo '/sam/sam*SNAPSHOT')

0 comments on commit 517752d

Please sign in to comment.