提交 f8027aa8 编写于 作者: G Gao Hongtao

Fix some issues

上级 4ac270a3
...@@ -14,7 +14,7 @@ ...@@ -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 openjdk:8-jre-alpine FROM openjdk:8-jre-alpine AS build
LABEL maintainer="hanahmily@apache.org" LABEL maintainer="hanahmily@apache.org"
...@@ -88,3 +88,10 @@ RUN set -eux; \ ...@@ -88,3 +88,10 @@ RUN set -eux; \
command -v gpgconf && gpgconf --kill all || :; \ command -v gpgconf && gpgconf --kill all || :; \
rm -rf "$GNUPGHOME"; \ rm -rf "$GNUPGHOME"; \
apk del .fetch-deps apk del .fetch-deps
FROM openjdk:8-jre-alpine
COPY --from=build /skywalking /skywalking
RUN apk add --no-cache \
bash
\ No newline at end of file
...@@ -18,22 +18,16 @@ FROM apache/skywalking-base:6.1.0 ...@@ -18,22 +18,16 @@ FROM apache/skywalking-base:6.1.0
LABEL maintainer="hanahmily@apache.org" LABEL maintainer="hanahmily@apache.org"
ENV DIST_NAME=apache-skywalking-apm-bin \ ENV JAVA_OPTS=" -Xms256M " \
JAVA_OPTS=" -Xms256M " \
SW_CLUSTER="standalone" \ SW_CLUSTER="standalone" \
SW_STORAGE="h2" SW_STORAGE="h2"
COPY "$DIST_NAME.tar.gz" /
RUN set -ex; \
tar -xzf "$DIST_NAME.tar.gz"; \
rm -rf "$DIST_NAME.tar.gz"; \
rm -rf "$DIST_NAME/config/log4j2.xml"; \
rm -rf "$DIST_NAME/bin"; rm -rf "$DIST_NAME/webapp"; rm -rf "$DIST_NAME/agent"; \
mv "$DIST_NAME" skywalking;
WORKDIR skywalking WORKDIR skywalking
RUN set -eux; \
rm -rf "config/log4j2.xml"; \
rm -rf "webapp"; rm -rf "agent";
COPY log4j2.xml config/ COPY log4j2.xml config/
COPY docker-entrypoint.sh . COPY docker-entrypoint.sh .
......
...@@ -14,26 +14,20 @@ ...@@ -14,26 +14,20 @@
# 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 apache/skywalking-base:6.0.0-GA FROM apache/skywalking-base:6.1.0
LABEL maintainer="hanahmily@apache.org" LABEL maintainer="hanahmily@apache.org"
ENV DIST_NAME=apache-skywalking-apm-bin \ ENV JAVA_OPTS=" -Xms256M " \
JAVA_OPTS=" -Xms256M " \
SW_OAP_ADDRESS="127.0.0.1:12800" \ SW_OAP_ADDRESS="127.0.0.1:12800" \
SW_TIMEOUT="20000" SW_TIMEOUT="20000"
COPY "$DIST_NAME.tar.gz" /
RUN set -ex; \
tar -xzf "$DIST_NAME.tar.gz"; \
rm -rf "$DIST_NAME.tar.gz"; \
rm -rf "$DIST_NAME/config"; \
rm -rf "$DIST_NAME/bin"; rm -rf "$DIST_NAME/oap-libs"; rm -rf "$DIST_NAME/agent"; \
mv "$DIST_NAME" skywalking;
WORKDIR skywalking WORKDIR skywalking
RUN set -eux; \
rm -rf "config"; rm -rf "oap-libs"; \
rm -rf "agent";
COPY docker-entrypoint.sh . COPY docker-entrypoint.sh .
COPY logback.xml webapp/ COPY logback.xml webapp/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册