Automated commit

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-08-18 20:29:47 +01:00
commit afbca4843d
3 changed files with 58 additions and 0 deletions

52
notes.adoc Normal file
View file

@ -0,0 +1,52 @@
= podman
== PHP from the command line
----
podman run --rm php php -v
PHP 8.4.11 (cli) (built: Aug 12 2025 22:28:40) (NTS)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.11, Copyright (c) Zend Technologies
with Zend OPcache v8.4.11, Copyright (c), by Zend Technologies
----
=== Running a different PHP version
----
podman run --rm php:8.3 php -v
PHP 8.3.24 (cli) (built: Aug 12 2025 22:30:04) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.24, Copyright (c) Zend Technologies
with Zend OPcache v8.3.24, Copyright (c), by Zend Technologies
---
----
=== Running a file
[,shell]
----
podman run --rm -it \
-v $(pwd):/app \
-w /app \
php \
php index.php
----
---
podman build .
STEP 1/2: FROM php
STEP 2/2: CMD php -v
COMMIT
--> d1ec5296cbf0
d1ec5296cbf0da21054b4261a0bb72f66449fe8e8f51b071e53df64e6f83eff4
podman run --rm d1ec5296cbf0
PHP 8.4.11 (cli) (built: Aug 12 2025 22:28:40) (NTS)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.11, Copyright (c) Zend Technologies
with Zend OPcache v8.4.11, Copyright (c), by Zend Technologies