Skip to content

VinceDZiree/docker-phalcon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Supported tags and respective Dockerfile links

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

About

Dockerized Phalcon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 82.2%
  • Makefile 16.2%
  • Shell 1.6%