Revert "Change base image from `eclipse-temurin:x-jre` to `eclipse-temurin:x-jre-alpine` to reduce CVE exposure surface (#11181)" (#11182)
This reverts commit 2719c7db18.
This commit is contained in:
parent
2719c7db18
commit
81db831eb0
|
|
@ -76,7 +76,7 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Build and push docker images based on Java 17
|
- name: Build and push docker images based on Java 17
|
||||||
env:
|
env:
|
||||||
SW_OAP_BASE_IMAGE: eclipse-temurin:17-jre-alpine
|
SW_OAP_BASE_IMAGE: eclipse-temurin:17-jre
|
||||||
TAG: ${{ env.TAG }}-java17
|
TAG: ${{ env.TAG }}-java17
|
||||||
run: make build.all docker.push
|
run: make build.all docker.push
|
||||||
- name: Build and push docker images
|
- name: Build and push docker images
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ jobs:
|
||||||
java-version: ${{ matrix.java-version }}
|
java-version: ${{ matrix.java-version }}
|
||||||
- name: Build and save docker images
|
- name: Build and save docker images
|
||||||
env:
|
env:
|
||||||
SW_OAP_BASE_IMAGE: eclipse-temurin:${{ matrix.java-version }}-jre-alpine
|
SW_OAP_BASE_IMAGE: eclipse-temurin:${{ matrix.java-version }}-jre
|
||||||
run: |
|
run: |
|
||||||
make docker.all || make docker.all
|
make docker.all || make docker.all
|
||||||
docker save -o docker-images-skywalking-oap.tar skywalking/oap:latest
|
docker save -o docker-images-skywalking-oap.tar skywalking/oap:latest
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
ARG BASE_IMAGE='eclipse-temurin:11-jre-alpine'
|
ARG BASE_IMAGE='eclipse-temurin:11-jre'
|
||||||
|
|
||||||
ARG SKYWALKING_CLI_VERSION
|
ARG SKYWALKING_CLI_VERSION
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
ARG BASE_IMAGE='eclipse-temurin:11-jre-alpine'
|
ARG BASE_IMAGE='eclipse-temurin:11-jre'
|
||||||
|
|
||||||
ARG SKYWALKING_CLI_VERSION
|
ARG SKYWALKING_CLI_VERSION
|
||||||
|
|
||||||
|
|
@ -35,9 +35,6 @@ ARG DIST
|
||||||
COPY "$DIST" .
|
COPY "$DIST" .
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apk update; \
|
|
||||||
apk add libc6-compat; \
|
|
||||||
apk add gcompat; \
|
|
||||||
tar -xzf "$DIST" --strip 1; \
|
tar -xzf "$DIST" --strip 1; \
|
||||||
rm -rf "$DIST"; \
|
rm -rf "$DIST"; \
|
||||||
rm -rf "config/log4j2.xml"; \
|
rm -rf "config/log4j2.xml"; \
|
||||||
|
|
@ -56,4 +53,4 @@ RUN mkdir ext-config; \
|
||||||
|
|
||||||
EXPOSE 12800 11800 1234
|
EXPOSE 12800 11800 1234
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "docker-entrypoint.sh"]
|
ENTRYPOINT ["bash", "docker-entrypoint.sh"]
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM eclipse-temurin:11-jre-alpine
|
FROM eclipse-temurin:11-jre
|
||||||
|
|
||||||
ENV JAVA_OPTS=" -Xms256M " \
|
ENV JAVA_OPTS=" -Xms256M " \
|
||||||
SW_OAP_ADDRESS="http://127.0.0.1:12800" \
|
SW_OAP_ADDRESS="http://127.0.0.1:12800" \
|
||||||
|
|
@ -26,8 +26,6 @@ ARG DIST
|
||||||
COPY "$DIST" .
|
COPY "$DIST" .
|
||||||
|
|
||||||
RUN tar -xzf "$DIST" --strip 1; \
|
RUN tar -xzf "$DIST" --strip 1; \
|
||||||
apk update; \
|
|
||||||
apk add libc6-compat; \
|
|
||||||
rm -rf "$DIST"; \
|
rm -rf "$DIST"; \
|
||||||
rm -rf "config"; \
|
rm -rf "config"; \
|
||||||
rm -rf "bin"; \
|
rm -rf "bin"; \
|
||||||
|
|
@ -39,4 +37,4 @@ COPY log4j2.xml webapp/
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "docker-entrypoint.sh"]
|
ENTRYPOINT ["bash", "docker-entrypoint.sh"]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/sh
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
|
|
@ -15,6 +14,8 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
exec java ${JAVA_OPTS} -cp webapp/skywalking-webapp.jar:webapp org.apache.skywalking.oap.server.webapp.ApplicationStartUp "$@"
|
exec java ${JAVA_OPTS} -cp webapp/skywalking-webapp.jar:webapp org.apache.skywalking.oap.server.webapp.ApplicationStartUp "$@"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
* Bump up Guava to 32.0.1 to avoid the lib listed as vulnerable due to CVE-2020-8908. This API is never used.
|
* Bump up Guava to 32.0.1 to avoid the lib listed as vulnerable due to CVE-2020-8908. This API is never used.
|
||||||
* Maven artifact `skywalking-log-recevier-plugin` is renamed to `skywalking-log-receiver-plugin`.
|
* Maven artifact `skywalking-log-recevier-plugin` is renamed to `skywalking-log-receiver-plugin`.
|
||||||
* Change base image from `eclipse-temurin:11-jre` to `eclipse-temurin:11-jre-alpine` to reduce CVE exposure surface.
|
|
||||||
|
|
||||||
#### OAP Server
|
#### OAP Server
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,6 @@ services:
|
||||||
SW_CORE_GRPC_SSL_TRUSTED_CA_PATH: /skywalking/certs/ca.crt
|
SW_CORE_GRPC_SSL_TRUSTED_CA_PATH: /skywalking/certs/ca.crt
|
||||||
ports:
|
ports:
|
||||||
- 12800
|
- 12800
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "/skywalking/bin/swctl", "health", "--grpcTLS"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 60s
|
|
||||||
retries: 120
|
|
||||||
|
|
||||||
provider:
|
provider:
|
||||||
extends:
|
extends:
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ cases:
|
||||||
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics top --name endpoint_cpm --service-name e2e-service-provider 5
|
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics top --name endpoint_cpm --service-name e2e-service-provider 5
|
||||||
expected: expected/metrics-top-endpoint.yml
|
expected: expected/metrics-top-endpoint.yml
|
||||||
# native event: event list
|
# native event: event list
|
||||||
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql event list --type=normal
|
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql event list
|
||||||
expected: expected/event-list.yml
|
expected: expected/event-list.yml
|
||||||
|
|
||||||
- query: |
|
- query: |
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,11 @@ services:
|
||||||
SW_JDBC_URL: jdbc:mysql://mysql:3306/swtest?allowMultiQueries=true
|
SW_JDBC_URL: jdbc:mysql://mysql:3306/swtest?allowMultiQueries=true
|
||||||
SW_STORAGE_INFLUXDB_URL: http://influxdb:8086
|
SW_STORAGE_INFLUXDB_URL: http://influxdb:8086
|
||||||
SW_STORAGE_BANYANDB_HOST: "banyandb"
|
SW_STORAGE_BANYANDB_HOST: "banyandb"
|
||||||
SW_HEALTH_CHECKER: default
|
|
||||||
SW_CONFIG_ETCD_PERIOD: 1
|
SW_CONFIG_ETCD_PERIOD: 1
|
||||||
SW_CONFIG_ETCD_ENDPOINTS: http://etcd:2379
|
SW_CONFIG_ETCD_ENDPOINTS: http://etcd:2379
|
||||||
SW_CLUSTER_ETCD_ENDPOINTS: http://etcd:2379
|
SW_CLUSTER_ETCD_ENDPOINTS: http://etcd:2379
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "/skywalking/bin/swctl", "health"]
|
test: ["CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/11800"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 60s
|
timeout: 60s
|
||||||
retries: 120
|
retries: 120
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
|
|
@ -23,7 +23,7 @@ MYSQL_DRIVER="mysql-connector-java-8.0.13.jar"
|
||||||
|
|
||||||
# ensure the curl command been installed
|
# ensure the curl command been installed
|
||||||
if ! command -v curl &> /dev/null; then
|
if ! command -v curl &> /dev/null; then
|
||||||
apk add curl
|
apt update -y && apt install -y curl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! curl -Lo "${LIB_HOME}/${MYSQL_DRIVER}" ${MYSQL_URL}; then
|
if ! curl -Lo "${LIB_HOME}/${MYSQL_DRIVER}" ${MYSQL_URL}; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue