forked from pinpoint-apm/pinpoint-c-agent
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(py): flask plugins pinpoint-apm#538
- plugins testcase - update docker devcontainer close pinpoint-apm#538
- Loading branch information
Showing
30 changed files
with
440 additions
and
292 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: '3.9' | ||
|
||
services: | ||
dev-mysql: | ||
image: mysql:5.7 | ||
restart: always | ||
container_name: dev-mysql | ||
hostname: dev-mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: 'password' | ||
ports: | ||
- '3306:3306' | ||
expose: | ||
- '3306' | ||
volumes: | ||
- ..:/workspace:cached | ||
redis: | ||
image: redis:alpine | ||
command: redis-server --port 6379 | ||
container_name: redis_boot | ||
hostname: redis_boot | ||
labels: | ||
- "name=redis" | ||
- "mode=standalone" | ||
ports: | ||
- 6379:6379 | ||
|
||
pinpoint: | ||
container_name: pinpoint | ||
command: sleep infinity | ||
hostname: pinpoint | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
# args: | ||
volumes: | ||
- ..:/workspace:cached | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# - ${env:HOME}:/workspace | ||
security_opt: | ||
- seccomp=unconfined | ||
cap_add: | ||
- SYS_PTRACE | ||
- NET_RAW | ||
- NET_ADMIN | ||
user: pinpoint | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
include *.txt README.md NOTICE LICENSE MANIFEST.in | ||
recursive-include common *.cmake *.h *.txt *.in *.cc *.c *.cpp *.h *.inl | ||
recursive-include src/PY *.py *.c *.h *.txt | ||
prune common/build | ||
recursive-include src/PY *.c *.h | ||
recursive-include plugins/PY/pinpointPy *.py | ||
recursive-exclude plugins/PY/pinpointPy *_test.py | ||
global-exclude *test.py *.pyc Test*.py |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
FROM golang:1.18-alpine3.17 as builder | ||
WORKDIR /apps | ||
COPY collector-agent /apps/collector-agent | ||
RUN cd /apps/collector-agent && go mod tidy && go build -o CollectorAgent | ||
USER root | ||
RUN apk add --no-cache make protobuf-dev | ||
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | ||
COPY ./ /apps | ||
RUN make | ||
|
||
FROM alpine:3.17 | ||
COPY --from=builder /apps/collector-agent/CollectorAgent /usr/local/bin | ||
COPY --from=builder /apps/collector-agent /usr/local/bin/CollectorAgent | ||
ENTRYPOINT [ "CollectorAgent" ] |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
### Todo list | ||
- [ ] support unique id | ||
- [ ] support url template | ||
- [ ] collector-agent | ||
- [ ] support metric | ||
- [-] support unique id | ||
- [-] support url template | ||
- [-] collector-agent | ||
- [-] support metric |
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
Oops, something went wrong.