Sign inSign up

judejp/helloworld-php-arm

By judejp

•Updated over 6 years ago

Image
0

183

judejp/helloworld-php-arm repository overview

⁠Entrypoint

Use this container as an executable

Just add the option to use with the command php :

$ docker run test:entrypoint -r 'echo "hello world";'

By default, it will execute the index.php file in /var/www/html/

$ docker run test:entrypoint

hello world
$

⁠Volume

Create a volume mounted on /var/www/html/

To see the source, type this commande :

$ docker inspect containername 

⁠Arg

Use the value of the var TARGETPLATFORM during the build

You can change the value by adding --build-arg on the build command

$ docker image build --build-arg TARGETPLATFORM=alpine .

should see Building for linux/$TARGETPLATFORM platform on the build log

⁠Healthcheck

Check if the container is healthy by checking the state of apache /etc/init.d/apache2 status

The container is running without starting apache at the beginning, so the status is unhealthy

By starting manually apache, the container status become healthy.

⁠Stopsignal

Set the stopsignal of the container to SIGWINCH

In order to kill the container, you can use this command :

$ docker kill --signal=SIGWINCH container_name

or by default (SIGKILL)

$ docker kill container_name

Tag summary

Content type

Image

Digest

Size

116.8 MB

Last updated

over 6 years ago

docker pull judejp/helloworld-php-arm:stopsignal