@@ -88,37 +88,43 @@ tasks:
8888 - test -f ../standalone/lib/openwhisk-standalone.jar
8989
9090 native:standalone-libs :
91+ deps :
92+ - compile:standalone
9193 dir : openwhisk
9294 cmds :
9395 - ./gradlew core:standalone:copyRuntimeLibs
9496
9597 native:standalone-build :
9698 deps :
97- - compile:standalone
9899 - native:standalone-libs
99100 dir : openwhisk/core/standalone
100101 cmds :
101102 - native-image
102- --initialize-at-run-time=io.netty
103+ --initialize-at-run-time=io.netty,akka.protobufv3.internal.UnsafeUtil
103104 --no-fallback --report-unsupported-elements-at-runtime
104105 --trace-object-instantiation=ch.qos.logback.classic.Logger
105106 --enable-url-protocols=http,https
107+ -march=native
106108 -cp build/classes/scala/main:build/resources/main:build/dependency-libs/*
107- -H:ConfigurationFileDirectories=/workspaces/openserverless-controller/standalone/graal-config
108- -o /workspaces/openserverless-controller/standalone/exe/openwhisk-standalone.exe
109- org.apache.openwhisk.standalone.StandaloneOpenWhisk
109+ -H:ConfigurationFileDirectories=$PWD/../../../standalone/graal-config
110+ -o $PWD/../../../standalone/dist/{{.EXEC_NAME}}
111+ org.apache.openwhisk.standalone.StandaloneOpenWhisk
112+ vars :
113+ EXEC_NAME : " ${NATIVE_IMAGE_NAME:-openwhisk-standalone}"
110114
111115 native:standalone-run :
112- dir : standalone/exe
116+ dir : standalone/dist
113117 cmds :
114- - ./openwhisk-standalone.exe -Dwhisk.standalone.host.name="0.0.0.0" -Dwhisk.standalone.host.internal="$(hostname -f)" --no-browser --disable-color-logging
118+ - ./openwhisk-standalone -Xmx2g -Dwhisk.standalone.host.name="0.0.0.0" -Dwhisk.standalone.host.internal="$(hostname -f)" -Dkamon.auto-start=no --no-browser
119+ env :
120+ KAMON_ENABLED : false
115121
116122 native:standalone-config :
117123 deps :
118124 - compile:standalone
119125 dir : openwhisk/core/standalone
120126 cmds :
121- - java -agentlib:native-image-agent=config-output-dir=../../standalone/graal-config
127+ - java -agentlib:native-image-agent=config-output-dir=../../../ standalone/graal-config
122128 -cp build/classes/scala/main:build/resources/main:build/dependency-libs/*
123129 -Dwhisk.standalone.host.name="0.0.0.0"
124130 -Dwhisk.standalone.host.internal="$(hostname -f)"
@@ -277,3 +283,22 @@ tasks:
277283 dir : openwhisk
278284 cmds :
279285 - ./gradlew distDocker -PdockerMultiArchBuild=true -PdockerRegistry={{.DOCKER_REGISTRY}} -PdockerImagePrefix=openwhisk2 -PdockerImageTag={{.TAG}}
286+
287+ run:standalone-docker :
288+ cmds :
289+ - >
290+ docker run -ti
291+ -p 3232:3232 -p 3233:3233
292+ -v /var/run/docker.sock:/var/run/docker.sock
293+ {{.DOCKER_REGISTRY}}/openwhisk2/standalone:{{.TAG}}
294+ interactive : true
295+
296+ run:standalone :
297+ deps :
298+ - native:standalone-libs
299+ dir : openwhisk/core/standalone
300+ cmds :
301+ - java -cp build/classes/scala/main:build/resources/main:build/dependency-libs/*
302+ -Dwhisk.standalone.host.name="0.0.0.0"
303+ -Dwhisk.standalone.host.internal="$(hostname -f)"
304+ org.apache.openwhisk.standalone.StandaloneOpenWhisk --no-browser
0 commit comments