Skip to content

Commit 7fa1cce

Browse files
committed
fix: libfaketime
1 parent 5b00624 commit 7fa1cce

File tree

21 files changed

+61
-1
lines changed

21 files changed

+61
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export DOCKER_BUILDKIT ?= 1
22
IMAGE_NAMESPACE ?= wayofdev/php-dev
3-
TEMPLATE ?= 8.0-cli-alpine
3+
TEMPLATE ?= 8.1-cli-alpine
44

55
IMAGE_TAG ?= $(IMAGE_NAMESPACE):$(TEMPLATE)-latest
66
DOCKERFILE_DIR ?= ./dist/dev/$(TEMPLATE)

dist/dev/7.4-cli-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ RUN set -eux; \
4747

4848
COPY --chown=www-data ./configs/99-xdebug.ini /usr/local/etc/php/conf.d/
4949

50+
ENV LD_PRELOAD="$LD_PRELOAD /usr/lib/faketime/libfaketime.so.1"
51+
5052
USER www-data
5153

dist/dev/7.4-cli-alpine/goss.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@ command:
4747
stdout:
4848
- "/usr/lib/faketime/libfaketime.so.1"
4949
exit-status: 0
50+
"FAKETIME='2007-09-09 06:14:22' date":
51+
stdout:
52+
- "Sun Sep 9 06:14:22 UTC 2007"
53+
exit-status: 0
5054

5155
...

dist/dev/7.4-fpm-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ RUN set -eux; \
4747

4848
COPY --chown=www-data ./configs/99-xdebug.ini /usr/local/etc/php/conf.d/
4949

50+
ENV LD_PRELOAD="$LD_PRELOAD /usr/lib/faketime/libfaketime.so.1"
51+
5052
USER www-data
5153

dist/dev/7.4-fpm-alpine/goss.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,9 @@ command:
5555
stdout:
5656
- "/usr/lib/faketime/libfaketime.so.1"
5757
exit-status: 0
58+
"FAKETIME='2007-09-09 06:14:22' date":
59+
stdout:
60+
- "Sun Sep 9 06:14:22 UTC 2007"
61+
exit-status: 0
5862

5963
...

dist/dev/7.4-supervisord-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ RUN set -eux; \
4747

4848
COPY --chown=www-data ./configs/99-xdebug.ini /usr/local/etc/php/conf.d/
4949

50+
ENV LD_PRELOAD="$LD_PRELOAD /usr/lib/faketime/libfaketime.so.1"
51+
5052
USER www-data
5153

5254
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]

dist/dev/7.4-supervisord-alpine/goss.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,9 @@ command:
5555
stdout:
5656
- "/usr/lib/faketime/libfaketime.so.1"
5757
exit-status: 0
58+
"FAKETIME='2007-09-09 06:14:22' date":
59+
stdout:
60+
- "Sun Sep 9 06:14:22 UTC 2007"
61+
exit-status: 0
5862

5963
...

dist/dev/8.0-cli-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ RUN set -eux; \
4747

4848
COPY --chown=www-data ./configs/99-xdebug.ini /usr/local/etc/php/conf.d/
4949

50+
ENV LD_PRELOAD="$LD_PRELOAD /usr/lib/faketime/libfaketime.so.1"
51+
5052
USER www-data
5153

dist/dev/8.0-cli-alpine/goss.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@ command:
4747
stdout:
4848
- "/usr/lib/faketime/libfaketime.so.1"
4949
exit-status: 0
50+
"FAKETIME='2007-09-09 06:14:22' date":
51+
stdout:
52+
- "Sun Sep 9 06:14:22 UTC 2007"
53+
exit-status: 0
5054

5155
...

dist/dev/8.0-fpm-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ RUN set -eux; \
4747

4848
COPY --chown=www-data ./configs/99-xdebug.ini /usr/local/etc/php/conf.d/
4949

50+
ENV LD_PRELOAD="$LD_PRELOAD /usr/lib/faketime/libfaketime.so.1"
51+
5052
USER www-data
5153

0 commit comments

Comments
 (0)