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/08/20 05:59:40 UTC

[skywalking-infra-e2e] branch native-mode created (now 2ea65e7)

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

kezhenxu94 pushed a change to branch native-mode
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git.


      at 2ea65e7  Use native executable instead of Docker container in GHA

This branch includes the following new commits:

     new 2ea65e7  Use native executable instead of Docker container in GHA

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[skywalking-infra-e2e] 01/01: Use native executable instead of Docker container in GHA

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch native-mode
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git

commit 2ea65e74b34aa73b0d43f2bf99507fb558e56658
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Fri Aug 20 13:57:59 2021 +0800

    Use native executable instead of Docker container in GHA
---
 Dockerfile  | 28 ----------------------------
 action.yaml | 11 +++++------
 2 files changed, 5 insertions(+), 34 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 03f2af5..670363c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,23 +16,6 @@
 # under the License.
 #
 
-FROM golang:1.16 AS swctl
-
-ARG COMMIT_HASH=master
-ARG CLI_CODE=${COMMIT_HASH}.tar.gz
-ARG CLI_CODE_URL=https://github.com/apache/skywalking-cli/archive/${CLI_CODE}
-
-ENV CGO_ENABLED=0
-ENV GO111MODULE=on
-
-WORKDIR /cli
-
-ADD ${CLI_CODE_URL} .
-RUN tar -xf ${CLI_CODE} --strip 1
-RUN rm ${CLI_CODE}
-
-RUN VERSION=ci make linux && mv bin/swctl-ci-linux-amd64 /usr/local/bin/swctl
-
 FROM golang:1.16 AS build
 
 WORKDIR /e2e
@@ -41,19 +24,8 @@ COPY . .
 
 RUN make linux
 
-FROM golang:1.16 AS bin
-
-RUN apt update; \
-    apt install -y docker-compose
-
-COPY --from=swctl /usr/local/bin/swctl /usr/local/bin/swctl
 COPY --from=build /e2e/bin/linux/e2e /usr/local/bin/e2e
 
-# Add common tools, copy from prebuilt Docker image whenever possible.
-COPY --from=stedolan/jq /usr/local/bin/jq /usr/local/bin/jq
-COPY --from=mikefarah/yq:4 /usr/bin/yq /usr/local/bin/yq
-COPY --from=docker /usr/local/bin/docker /usr/local/bin/docker
-
 WORKDIR /github/workspace/
 
 ENTRYPOINT ["e2e"]
diff --git a/action.yaml b/action.yaml
index 0ced170..5fc5317 100644
--- a/action.yaml
+++ b/action.yaml
@@ -26,10 +26,9 @@ runs:
   using: "composite"
   steps:
     - shell: bash
-      run: make -C $GITHUB_ACTION_PATH docker
-    - shell: bash
       run: |
-        docker run -v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
-                   -v /var/run/docker.sock:/var/run/docker.sock \
-                   -w $GITHUB_WORKSPACE \
-                   docker.io/apache/e2e:latest run -c "${{ inputs.e2e-file }}"
+        make -C $GITHUB_ACTION_PATH docker
+        docker run -v $(pwd):/tmp -w /tmp --entrypoint=sh docker.io/apache/e2e:latest -c "cp /usr/local/bin/e2e /tmp/e2e"
+        install ./e2e
+    - shell: bash
+      run: e2e run -c "${{ inputs.e2e-file }}"