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

+1-1
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

+2
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

+4
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

+2
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

+4
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

+2
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

+4
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

+2
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

+4
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

+2
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-fpm-alpine/goss.yaml

+4
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-supervisord-alpine/Dockerfile

+2
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/8.0-supervisord-alpine/goss.yaml

+4
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.1-cli-alpine/Dockerfile

+2
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.1-cli-alpine/goss.yaml

+4
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.1-fpm-alpine/Dockerfile

+2
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.1-fpm-alpine/goss.yaml

+4
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.1-supervisord-alpine/Dockerfile

+2
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/8.1-supervisord-alpine/goss.yaml

+4
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
...

src/Dockerfiles/dev/Dockerfile.j2

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ RUN set -eux; \
6565
COPY --chown=www-data ./configs/99-xdebug.ini /usr/local/etc/php/conf.d/
6666
{% endif %}
6767

68+
ENV LD_PRELOAD="$LD_PRELOAD /usr/lib/faketime/libfaketime.so.1"
69+
6870
USER www-data
6971

7072
{% if 'supervisord' == php_type %}

src/Dockerfiles/dev/goss.yaml.j2

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ command:
8484
stdout:
8585
- "/usr/lib/faketime/libfaketime.so.1"
8686
exit-status: 0
87+
"FAKETIME='2007-09-09 06:14:22' date":
88+
stdout:
89+
- "Sun Sep 9 06:14:22 UTC 2007"
90+
exit-status: 0
8791
{% endif %}
8892

8993
...

0 commit comments

Comments
 (0)