-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
417 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 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. | ||
|
||
FROM golang:1.17 | ||
|
||
COPY http2/ /service | ||
|
||
WORKDIR / | ||
RUN apt update && apt install -y zip && \ | ||
mkdir protoc && cd protoc && \ | ||
curl -sL https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip -o protoc.zip && \ | ||
unzip protoc.zip | ||
|
||
WORKDIR /service | ||
|
||
RUN go get -u google.golang.org/protobuf/cmd/[email protected] && \ | ||
go get -u google.golang.org/grpc/cmd/[email protected] && \ | ||
go get google.golang.org/grpc/internal/[email protected] && \ | ||
/protoc/bin/protoc --go_out=. --go-grpc_out=. service.proto && \ | ||
go build . | ||
|
||
COPY base/ssl /usr/local/share/ca-certificates | ||
RUN update-ca-certificates | ||
|
||
CMD ["/service/test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# 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. | ||
|
||
version: '2.1' | ||
|
||
services: | ||
service: | ||
build: | ||
context: ../ | ||
dockerfile: http2/Dockerfile | ||
volumes: | ||
- ./../base/ssl:/ssl_data | ||
networks: | ||
- e2e | ||
ports: | ||
- 8080:8080 | ||
healthcheck: | ||
test: [ "CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/8080" ] | ||
interval: 5s | ||
timeout: 60s | ||
retries: 120 | ||
|
||
proxy: | ||
extends: | ||
file: ../base/docker-compose.yml | ||
service: proxy | ||
networks: | ||
- e2e | ||
depends_on: | ||
service: | ||
condition: service_healthy | ||
|
||
oap: | ||
extends: | ||
file: ../base/docker-compose.yml | ||
service: oap | ||
ports: | ||
- 12800:12800 | ||
|
||
rover: | ||
extends: | ||
file: ../base/docker-compose.yml | ||
service: rover | ||
environment: | ||
ROVER_PROCESS_DISCOVERY_REGEX_SCANNER_MATCH_CMD2: service/test | ||
ROVER_PROCESS_DISCOVERY_REGEX_SCANNER_PROCESS_NAME2: service | ||
depends_on: | ||
oap: | ||
condition: service_healthy | ||
|
||
networks: | ||
e2e: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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. | ||
|
||
setup: | ||
env: compose | ||
file: docker-compose.yml | ||
timeout: 20m | ||
init-system-environment: ../../../../base/env | ||
steps: | ||
- name: set PATH | ||
command: export PATH=/tmp/skywalking-infra-e2e/bin:$PATH | ||
- name: install yq | ||
command: bash test/e2e/base/scripts/prepare/setup-e2e-shell/install.sh yq | ||
- name: install swctl | ||
command: bash test/e2e/base/scripts/prepare/setup-e2e-shell/install.sh swctl | ||
|
||
trigger: | ||
action: http | ||
interval: 3s | ||
times: 10 | ||
url: http://${service_host}:${service_8080}/singleCall | ||
method: GET | ||
|
||
verify: | ||
# verify with retry strategy | ||
retry: | ||
# max retry count | ||
count: 20 | ||
# the interval between two retries, in millisecond. | ||
interval: 10s | ||
cases: | ||
- includes: | ||
- ../network-cases.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to 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. Apache Software Foundation (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. | ||
|
||
module test | ||
|
||
go 1.17 | ||
|
||
require ( | ||
google.golang.org/grpc v1.44.0 | ||
google.golang.org/protobuf v1.25.0 | ||
) | ||
|
||
require ( | ||
github.com/golang/protobuf v1.4.3 // indirect | ||
golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect | ||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd // indirect | ||
golang.org/x/text v0.3.0 // indirect | ||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect | ||
) |
Oops, something went wrong.