-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add php kubernetes lib injection tests
- Loading branch information
1 parent
cfc7637
commit 4ab45b4
Showing
8 changed files
with
45 additions
and
3 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
8 changes: 8 additions & 0 deletions
8
lib-injection/build/docker/php/dd-lib-php-init-test-83/Dockerfile
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,8 @@ | ||
FROM public.ecr.aws/docker/library/php:8.3 | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY index.php /app | ||
|
||
CMD ["php", "-S", "0.0.0.0:18080"] |
7 changes: 7 additions & 0 deletions
7
lib-injection/build/docker/php/dd-lib-php-init-test-83/build.sh
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,7 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "${BUILDX_PLATFORMS}" ] ; then | ||
BUILDX_PLATFORMS=`docker buildx imagetools inspect --raw python:3.12 | jq -r 'reduce (.manifests[] | [ .platform.os, .platform.architecture, .platform.variant ] | join("/") | sub("\\/$"; "")) as $item (""; . + "," + $item)' | sed 's/,//'` | ||
fi | ||
echo "Build for platforms: ${BUILDX_PLATFORMS}" | ||
docker buildx build --platform ${BUILDX_PLATFORMS} --tag ${LIBRARY_INJECTION_TEST_APP_IMAGE} --push . |
3 changes: 3 additions & 0 deletions
3
lib-injection/build/docker/php/dd-lib-php-init-test-83/index.php
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,3 @@ | ||
<?php | ||
|
||
echo 'Hello!'; |
12 changes: 12 additions & 0 deletions
12
lib-injection/build/docker/php/dd-lib-php-init-test-alpine/Dockerfile
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,12 @@ | ||
FROM public.ecr.aws/docker/library/alpine:3.20 | ||
|
||
RUN apk add --update php83 libgcc libcurl bash | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY index.php /app | ||
|
||
ENV DD_TRACE_DEBUG 1 | ||
|
||
CMD ["php","-S","0.0.0.0:18080"] |
7 changes: 7 additions & 0 deletions
7
lib-injection/build/docker/php/dd-lib-php-init-test-alpine/build.sh
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,7 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "${BUILDX_PLATFORMS}" ] ; then | ||
BUILDX_PLATFORMS=`docker buildx imagetools inspect --raw python:3.12 | jq -r 'reduce (.manifests[] | [ .platform.os, .platform.architecture, .platform.variant ] | join("/") | sub("\\/$"; "")) as $item (""; . + "," + $item)' | sed 's/,//'` | ||
fi | ||
echo "Build for platforms: ${BUILDX_PLATFORMS}" | ||
docker buildx build --platform ${BUILDX_PLATFORMS} --tag ${LIBRARY_INJECTION_TEST_APP_IMAGE} --push . |
3 changes: 3 additions & 0 deletions
3
lib-injection/build/docker/php/dd-lib-php-init-test-alpine/index.php
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,3 @@ | ||
<?php | ||
|
||
echo 'Hello!'; |