update jdk 11 in dockerfile and remove unused java_opts. (#7441)
* update jdk 11 and remove unused java_opts.
This commit is contained in:
parent
de6cae3429
commit
375138887a
|
|
@ -6,6 +6,7 @@ Release Notes.
|
|||
------------------
|
||||
|
||||
#### Project
|
||||
* Upgrade jdk 11 in dockerfile and remove unused java_opts.
|
||||
|
||||
#### Java Agent
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ARG BASE_IMAGE='adoptopenjdk/openjdk8:alpine'
|
||||
ARG BASE_IMAGE='adoptopenjdk/openjdk11:alpine'
|
||||
|
||||
FROM golang:1.14 AS cli
|
||||
|
||||
|
|
|
|||
|
|
@ -37,10 +37,6 @@ do
|
|||
CLASSPATH="$i:$CLASSPATH"
|
||||
done
|
||||
|
||||
if java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -version; then
|
||||
JAVA_OPTS="${JAVA_OPTS} -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
exec java ${JAVA_OPTS} -classpath ${CLASSPATH} org.apache.skywalking.oap.server.starter.OAPServerStartUp "$@"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM adoptopenjdk/openjdk8:alpine
|
||||
FROM adoptopenjdk/openjdk11:alpine
|
||||
|
||||
ENV DIST_NAME=apache-skywalking-apm-bin \
|
||||
JAVA_OPTS=" -Xms256M " \
|
||||
|
|
|
|||
|
|
@ -28,4 +28,4 @@ if [[ ! -z "$SW_OAP_ADDRESS" ]]; then
|
|||
done
|
||||
fi
|
||||
|
||||
exec java ${JAVA_OPTS} -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -jar webapp/skywalking-webapp.jar "$@"
|
||||
exec java ${JAVA_OPTS} -jar webapp/skywalking-webapp.jar "$@"
|
||||
|
|
|
|||
Loading…
Reference in New Issue