first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
17
base/skywalking/8.3.0/Dockerfile
Normal file
17
base/skywalking/8.3.0/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM openjdk:8-jre
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
ARG BASEDIR="/mnt/skywalking"
|
||||
RUN set -ex \
|
||||
&& mkdir -p ${BASEDIR} \
|
||||
&& wget -qO- http://archive.apache.org/dist/skywalking/8.3.0/apache-skywalking-apm-8.3.0.tar.gz | tar xz --strip-components=1 -C ${BASEDIR}
|
||||
|
||||
COPY oap-service.sh /mnt/skywalking/bin/
|
||||
COPY web-server.sh /mnt/skywalking/bin/
|
||||
|
||||
RUN set -ex \
|
||||
chmod +x /mnt/skywalking/bin/*.sh
|
||||
|
||||
WORKDIR ${BASEDIR}
|
||||
CMD bin/web-server.sh
|
20
base/skywalking/8.3.0/oap-service.sh
Normal file
20
base/skywalking/8.3.0/oap-service.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PRG="$0"
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
[ -z "$OAP_HOME" ] && OAP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
|
||||
|
||||
OAP_LOG_DIR="${OAP_LOG_DIR:-${OAP_HOME}/logs}"
|
||||
JAVA_OPTS=" -Xms256M -Xmx512M"
|
||||
|
||||
if [ ! -d "${OAP_LOG_DIR}" ]; then
|
||||
mkdir -p "${OAP_LOG_DIR}"
|
||||
fi
|
||||
|
||||
CLASSPATH="$OAP_HOME/config:$CLASSPATH"
|
||||
for i in "$OAP_HOME"/oap-libs/*.jar
|
||||
do
|
||||
CLASSPATH="$i:$CLASSPATH"
|
||||
done
|
||||
|
||||
exec java ${JAVA_OPTS} -Doap.logDir=${OAP_LOG_DIR} -classpath $CLASSPATH org.apache.skywalking.oap.server.starter.OAPServerStartUp
|
12
base/skywalking/8.3.0/web-server.sh
Normal file
12
base/skywalking/8.3.0/web-server.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PRG="$0"
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
[ -z "$WEBAPP_HOME" ] && WEBAPP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
|
||||
|
||||
JAVA_OPTS=" -Xms256M -Xmx512M"
|
||||
JAR_PATH="${WEBAPP_HOME}/webapp"
|
||||
|
||||
exec java ${JAVA_OPTS} -jar ${JAR_PATH}/skywalking-webapp.jar \
|
||||
--spring.config.location=${JAR_PATH}/webapp.yml \
|
||||
--logging.file=/dev/stderr
|
Reference in New Issue
Block a user