Skip to content

Commit 5638f02

Browse files
PHP 8.4 local dev (#58)
Signed-off-by: Graham Campbell <[email protected]>
1 parent 47112b5 commit 5638f02

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@
4949
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.0-tests -f hack/8.0.Dockerfile hack",
5050
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.1-tests -f hack/8.1.Dockerfile hack",
5151
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.2-tests -f hack/8.2.Dockerfile hack",
52-
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.3-tests -f hack/8.3.Dockerfile hack"
52+
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.3-tests -f hack/8.3.Dockerfile hack",
53+
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.4-tests -f hack/8.4.Dockerfile hack"
5354
],
5455
"tests-docker": [
5556
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:7.4-tests --coverage-html=coverage",
5657
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.0-tests",
5758
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.1-tests",
5859
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.2-tests",
59-
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.3-tests"
60+
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.3-tests",
61+
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.4-tests"
6062
]
6163
},
6264
"scripts-descriptions": {

hack/8.3.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.3-rc-alpine
1+
FROM php:8.3-alpine
22

33
LABEL org.opencontainers.image.url="https://github.com/cloudevents/sdk-php/tree/main/hack/8.3.Dockerfile" \
44
org.opencontainers.image.documentation="https://github.com/cloudevents/sdk-php/tree/main/hack/README.md" \

hack/8.4.Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM php:8.4-alpine
2+
3+
LABEL org.opencontainers.image.url="https://github.com/cloudevents/sdk-php/tree/main/hack/8.4.Dockerfile" \
4+
org.opencontainers.image.documentation="https://github.com/cloudevents/sdk-php/tree/main/hack/README.md" \
5+
org.opencontainers.image.source="https://github.com/cloudevents/sdk-php" \
6+
org.opencontainers.image.vendor="CloudEvent" \
7+
org.opencontainers.image.title="PHP 8.4" \
8+
org.opencontainers.image.description="PHP 8.4 test environment for cloudevents/sdk-php"
9+
10+
COPY --chown=www-data:www-data install-composer /usr/local/bin/install-composer
11+
RUN chmod +x /usr/local/bin/install-composer \
12+
&& /usr/local/bin/install-composer \
13+
&& rm /usr/local/bin/install-composer
14+
15+
RUN apk update \
16+
&& apk --no-cache upgrade \
17+
&& apk add --no-cache bash ca-certificates git libzip-dev \
18+
&& rm -rf /var/www/html /tmp/pear \
19+
&& chown -R www-data:www-data /var/www
20+
21+
WORKDIR /var/www
22+
ENTRYPOINT ["/var/www/vendor/bin/phpunit"]

0 commit comments

Comments
 (0)