Sign inSign up

dsmitrij/phalcon

By dsmitrij

Updated over 6 years ago

For 3.x.x, fpm-7.2

Image
0

10K+

dsmitrij/phalcon repository overview

Docker Phalcon

Build Status Phalcon Version Phalcon devtools

Docker Phalcon base image, see https://hub.docker.com/r/mileschou/phalcon/

The repository is a Docker image based on Docker official PHP image with Phalcon Framework.

The Phalcon Action is Use GitHub Actions with this image.

Image Test

Here is a simple test command that can confirm the extension has been loaded & check version.

$ docker run --rm mileschou/phalcon:alpine php --ri phalcon | grep -i ^version
Version => 3.4.5

Running a php script

$ docker run -v ${PWD}:/usr/src/app -w /usr/src/app mileschou/phalcon:7.2-cli php script.php

Builded Image included simple script docker-phalcon-install-devtools to install latest release of Phalcon Devtools CLI

Here is usage example:

$ docker run -it --rm mileschou/phalcon sh -c 'docker-phalcon-install-devtools; phalcon'

Phalcon DevTools (3.2.13)

Available commands:
  info             (alias of: i)
  commands         (alias of: list, enumerate)
  controller       (alias of: create-controller)
  module           (alias of: create-module)
  model            (alias of: create-model)
  all-models       (alias of: create-all-models)
  project          (alias of: create-project)
  scaffold         (alias of: create-scaffold)
  migration        (alias of: create-migration)
  webtools         (alias of: create-webtools)
  serve            (alias of: server)
  console          (alias of: shell, psysh)

Build yourself

Recommend 2G+ RAM when build image yourself. Maybe wait a long time for compile if only 1G RAM.

Memo

Update:

make VERSION=X.X.X DEVTOOLS_VERSION=Y.Y.Y update

List the variants of Docker official PHP:

make variants

Thanks

Contributors

Tag summary

Content type

Image

Digest

Size

139.9 MB

Last updated

over 6 years ago

docker pull dsmitrij/phalcon