You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/04/05 07:44:23 UTC

[skywalking] 01/01: feature: add dockerfile for agent image

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch docker/agent
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 787eabe4b0cc0915b0b08d37f164836920da3529
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Mon Apr 5 15:43:48 2021 +0800

    feature: add dockerfile for agent image
---
 docker/agent/Dockerfile.agent | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/docker/agent/Dockerfile.agent b/docker/agent/Dockerfile.agent
new file mode 100644
index 0000000..ff50c9c
--- /dev/null
+++ b/docker/agent/Dockerfile.agent
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ARG BASE_IMAGE='adoptopenjdk/openjdk8:alpine'
+
+FROM apache/skywalking-base:8.4.0-es6 AS cli
+
+FROM $BASE_IMAGE
+
+ARG DIST_NAME
+
+COPY "$DIST_NAME.tar.gz" /tmp
+
+RUN set -ex; \
+    tar -xzf "/tmp/$DIST_NAME.tar.gz" -C /tmp; \
+    mv "/tmp/$DIST_NAME/agent" /skywalking/agent
+
+COPY --from=cli /skywalking/bin/swctl ./bin