Skip to content

Commit 5875492

Browse files
committed
Merge branch 'main' into 2.x
2 parents 84b8473 + 2421c64 commit 5875492

File tree

8 files changed

+70
-63
lines changed

8 files changed

+70
-63
lines changed

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
45+
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4646
with:
4747
sarif_file: results.sarif

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main, 1.x, 2.x ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
php:
1114
runs-on: ubuntu-latest

.github/workflows/phpdoc-to-github-pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
- "main"
77
workflow_dispatch:
88

9-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
109
permissions:
1110
contents: read
12-
pages: write
13-
id-token: write
1411

1512
jobs:
1613
documentation:
14+
permissions:
15+
pages: write # required for GitHub Pages deployment
16+
id-token: write # required for GitHub Pages deployment
1717
name: "Documentation"
1818
runs-on: "ubuntu-latest"
1919
steps:

.github/workflows/publish-otel-php-base-docker-image.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ on:
1111
paths:
1212
- docker/Dockerfile
1313
- .github/workflows/publish-otel-php-base-docker-image.yml
14+
permissions:
15+
contents: read
1416
jobs:
1517
push_to_registry:
1618
name: OpenTelemetry PHP base docker image creation
1719
strategy:
1820
matrix:
19-
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
21+
php-version: ['8.1', '8.2', '8.3', '8.4']
2022
runs-on: ubuntu-latest
2123
permissions:
2224
packages: write
@@ -45,7 +47,6 @@ jobs:
4547
file: docker/Dockerfile
4648
build-args: PHP_VERSION=${{ matrix.php-version }}
4749
platforms: linux/amd64,linux/arm/v8,linux/arm64
48-
tags: ghcr.io/open-telemetry/opentelemetry-php/opentelemetry-php-base:${{ matrix.php-version }}
4950

5051
- name: Build and push ${{ matrix.php-version }} to ghcr.io
5152
uses: docker/build-push-action@v6

.github/workflows/shellcheck.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main, 1.x, 2.x ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
shellcheck:
1114
runs-on: ubuntu-latest

.github/workflows/split-monorepo.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
create:
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
gitsplit:
1417
runs-on: ubuntu-latest

CONTRIBUTING.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -271,40 +271,35 @@ make phpdoc-preview
271271
This will start a HTTP server running at <http://localhost:8080> serving the updated documentation files.
272272

273273
## Maintainers
274-
[@open-telemetry/php-maintainers](https://github.com/orgs/open-telemetry/teams/php-maintainers)
275274

276-
- [Bob Strecansky](https://github.com/bobstrecansky)
275+
- [Bob Strecansky](https://github.com/bobstrecansky), Intuit
277276
- [Brett McBride](https://github.com/brettmc/), Deakin University
278277

279-
Find more about the maintainer role in [community repository](https://github.com/open-telemetry/community/blob/master/community-membership.md#maintainer)
278+
For more information about the maintainer role, see the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#maintainer).
280279

281280
## Approvers
282-
[@open-telemetry/php-approvers](https://github.com/orgs/open-telemetry/teams/php-approvers)
283281

284-
Find more information about the approver role in the [community repository](https://github.com/open-telemetry/community/blob/master/community-membership.md#approver)
282+
- [Ago Allikmaa](https://github.com/agoallikmaa)
283+
- [Cedriz Ziel](https://github.com/cedricziel)
284+
- [Chris Lightfoot-Wild](https://github.com/ChrisLightfootWild)
285285

286-
## Triagers
287-
[@open-telemetry/php-triagers](https://github.com/orgs/open-telemetry/teams/php-triagers)
288-
289-
Find more information about the triager role in the [community repository](https://github.com/open-telemetry/community/blob/master/community-membership.md#triager)
290-
291-
## Members
286+
For more information about the approver role, see the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#approver).
292287

293-
- [Kishan Sangani](https://github.com/kishannsangani)
288+
## Triagers
294289

295-
Find more information about the member role in the [community repository](https://github.com/open-telemetry/community/blob/master/community-membership.md#member)
290+
For more information about the triager role, see the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#triagers).
296291

297292
## Emeritus maintainers/approvers/triagers
298293

299-
- [Timo Michna](https://github.com/tidal/)
294+
- [Amber Zsistla](https://github.com/zsistla)
300295
- [Beniamin Calota](https://github.com/beniamin)
301296
- [Fahmy Mohammed](https://github.com/Fahmy-Mohammed)
302-
- [Levi Morrison](https://github.com/morrisonlevi)
303-
- [Amber Zsistla](https://github.com/zsistla)
304297
- [Jodee Varney](https://github.com/jodeev)
305-
- [Przemek Delewski](https://github.com/pdelewski), Sumo Logic
298+
- [Levi Morrison](https://github.com/morrisonlevi)
299+
- [Przemek Delewski](https://github.com/pdelewski)
300+
- [Timo Michna](https://github.com/tidal/)
306301

307-
Find more about emeritus roles in the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#emeritus-maintainerapprovertriager)
302+
For more information about the emeritus role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#emeritus-maintainerapprovertriager).
308303

309304
## Further Help
310305

docker/Dockerfile

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
1-
ARG PHP_VERSION=8.0
2-
3-
FROM php:8.0.30-cli-alpine AS php-8.0-cli-alpine
4-
FROM php:8.1.32-cli-alpine AS php-8.1-cli-alpine
5-
FROM php:8.2.28-cli-alpine AS php-8.2-cli-alpine
6-
FROM php:8.3.20-cli-alpine AS php-8.3-cli-alpine
7-
FROM php:8.4.8-cli-alpine AS php-8.4-cli-alpine
8-
9-
FROM php-${PHP_VERSION}-cli-alpine
10-
11-
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
12-
13-
RUN chmod +x /usr/local/bin/install-php-extensions \
14-
&& apk add binutils \
15-
&& install-php-extensions \
16-
@composer \
17-
ast \
18-
grpc \
19-
intl\
20-
opcache \
21-
opentelemetry \
22-
pcntl \
23-
protobuf \
24-
sockets \
25-
xdebug \
26-
zip \
27-
&& find /usr/local/lib/php/extensions -name "*.so" -exec strip --strip-debug {} \;
28-
29-
RUN echo "grpc.enable_fork_support = 1" > $(php-config --ini-dir)/grpc.ini \
30-
&& echo "grpc.poll_strategy = epoll1" >> $(php-config --ini-dir)/grpc.ini
31-
1+
FROM composer:2 AS composer
2+
FROM debian:bullseye
323
WORKDIR /usr/src/myapp
334

34-
RUN apk add --no-cache bash git; \
35-
find /usr/local/lib/php/extensions -type d -exec chmod +x -R {} \;; \
36-
addgroup -g "1000" -S php; \
37-
adduser --system \
38-
--gecos "" \
39-
--ingroup "php" \
40-
--uid "1000" \
41-
"php";
5+
RUN apt-get update \
6+
&& apt-get install -y --no-install-recommends git wget gnupg2 \
7+
&& rm -rf /var/lib/apt/lists/* \
8+
&& groupadd --gid 1000 php \
9+
&& useradd --system --uid 1000 --gid php --shell /bin/bash --create-home php
10+
11+
RUN apt-get update && apt-get install -y lsb-release apt-transport-https ca-certificates \
12+
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list \
13+
&& wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add - \
14+
&& apt-get update
15+
16+
ARG PHP_VERSION=8.3
17+
18+
RUN apt-get install -y \
19+
php${PHP_VERSION}-ast \
20+
php${PHP_VERSION}-cli \
21+
php${PHP_VERSION}-curl \
22+
php${PHP_VERSION}-dev \
23+
php${PHP_VERSION}-grpc \
24+
php${PHP_VERSION}-intl \
25+
php${PHP_VERSION}-mbstring \
26+
php${PHP_VERSION}-opcache \
27+
php${PHP_VERSION}-opentelemetry \
28+
php${PHP_VERSION}-protobuf \
29+
php${PHP_VERSION}-simplexml \
30+
php${PHP_VERSION}-sockets \
31+
php${PHP_VERSION}-xdebug \
32+
php${PHP_VERSION}-zip \
33+
php${PHP_VERSION}-mongodb \
34+
php${PHP_VERSION}-amqp \
35+
php${PHP_VERSION}-rdkafka \
36+
php${PHP_VERSION}-mysqli \
37+
unzip
38+
39+
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
40+
41+
RUN echo ";grpc.enable_fork_support = 1" > $(php-config --ini-dir)/40-otel-dev.ini \
42+
&& echo "grpc.poll_strategy = epoll1" >> $(php-config --ini-dir)/40-otel-dev.ini \
43+
&& echo "zend.assertions = 1" >> $(php-config --ini-dir)/40-otel-dev.ini
4244

4345
USER php

0 commit comments

Comments
 (0)