Skip to content

Commit

Permalink
Support UT in yii2 (#546)
Browse files Browse the repository at this point in the history
- testcase and yii example
- fix bug in collector-agent `ParentSpanId: -1`
  • Loading branch information
eeliu committed Mar 28, 2024
1 parent 13bf659 commit 7209bae
Show file tree
Hide file tree
Showing 131 changed files with 313 additions and 5,360 deletions.
26 changes: 16 additions & 10 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,19 @@ RUN groupadd --gid $USER_GID $USERNAME \


RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update && apt install -y apt-utils gcc g++ gdb pkg-config libxml2-dev libsqlite3-dev libcurl4-openssl-dev zlib1g-dev make cmake wget autoconf git clangd iputils-ping python3 python3.8-venv python3-pip clang-format protobuf-compiler vim
RUN apt update && apt install -y apt-utils gcc g++ gdb pkg-config libxml2-dev libsqlite3-dev libcurl4-openssl-dev zlib1g-dev make cmake wget autoconf git clangd iputils-ping python3 python3.8-venv python3-pip clang-format protobuf-compiler vim locales curl libssl-dev
# https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
RUN apt-get install git-lfs
USER pinpoint
# enable php-7.4
ENV PHP_VESION=php-7.4.33
COPY ${PHP_VESION}.tar.gz /repo/${PHP_VESION}.tar.gz
RUN cd /repo && tar xvf ${PHP_VESION}.tar.gz && cd ${PHP_VESION} && ./configure --prefix=/opt/${PHP_VESION} --enable-fpm --enable-opcache --enable-debug && make -j && make install
ENV PATH="$PATH:/opt/php/bin/:/opt/php/sbin/"
COPY php.ini /opt/$PHP_VESION/lib
ENV PHP_HOME=/home/pinpoint/local/
COPY ${PHP_VESION}.tar.gz /home/pinpoint/${PHP_VESION}.tar.gz
RUN cd /home/pinpoint/ && tar xvf ${PHP_VESION}.tar.gz && cd ${PHP_VESION} && ./configure --prefix=${PHP_HOME}/${PHP_VESION} --with-curl=shared --with-mysqli=shared --with-openssl=shared --with-pdo-sqlite=shared --enable-pdo=shared --with-zlib=shared --enable-fpm --enable-opcache --enable-debug && make -j && make install

ENV PATH="$PATH:${PHP_HOME}/php/bin/:${PHP_HOME}/php/sbin/"
COPY php.ini ${PHP_HOME}/php/lib

### Build php module
### curl
Expand Down Expand Up @@ -62,9 +68,9 @@ COPY php.ini /opt/$PHP_VESION/lib


# install golang 1.18
COPY go1.18.10.linux-amd64.tar.gz /repo/go1.18.10.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && cd /repo/ && tar -C /usr/local -xzf go1.18.10.linux-amd64.tar.gz
USER root
COPY go1.18.10.linux-amd64.tar.gz /home/pinpoint/go1.18.10.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && cd /home/pinpoint/ && tar -C /usr/local -xzf go1.18.10.linux-amd64.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
ENV GO_PATH=~/go
ENV PATH=$PATH:/$GO_PATH/bin
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
ENV PATH=$PATH:$GO_PATH/bin
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"matepek.vscode-catch2-test-adapter",
"adam-bender.commit-message-editor",
"formulahendry.vscode-mysql",
"ms-python.autopep8"
"ms-python.autopep8",
"streetsidesoftware.code-spell-checker",
"jeff-hykin.better-dockerfile-syntax"
]
}
Loading

0 comments on commit 7209bae

Please sign in to comment.