Sign inSign up

teamcodework/php

By teamcodework

•Updated over 5 years ago

Deploy php use 7.3-fpm-alpine base on alpine distro

Image
0

500K+

teamcodework/php repository overview

⁠Docker for PHP

Deploy php use 7.3-fpm-alpine base on alpine distro

⁠How to use it

⁠Tag :Alpine

This image only build with extention php :

  • pcntl
  • zip
  • bcmath
  • pdo_mysql
  • mysqli
  • opcache
  • soap
  • xml
  • sockets
  • gettext
  • gd
  • imagick
  • memcache:3.1.3
  • phalcon:3.4.3

⁠Environment Default

PHP_ENV development

GIT_URL none

GIT_BRANCH none

GIT_MERGE none

PHP_MEMORY_LIMIT 128MB

PHP_MAX_EXECUTION_TIME 30

PHP_SHORT_OPEN_TAG On

PHP_UPLOAD_MAX_FILESIZE 2M

PHP_DISPLAY_ERRORS On

PHP_POST_MAX_SIZE 8M

USER_UID 0

USER_GID 0

DOCUMENT_ROOT /var/www/html

⁠Tag :Alpine

Already install cron, for running cron use this command

$> docker container run \
    -d --name [name] \
    -v $PWD/CRON_STRINGS:/var/spool/cron/crontabs/CRON_STRINGS \
    teamcodework/php:alpine cron
⁠Check syntax php existing container
$> docker container exec -t [name] sh /cmd/check.sh

$> docker container run \
    --rm -t teamcodework/php:latest sh /cmd/check.sh

⁠Tag: apache-debian

This image use 7.3.6-apache-stretch Apache Enable

  • Rewrite
  • Proxy

⁠Tag :Codeigniter

⁠Environment

BASE [url git codeigniter folder application]

TEST_CI test

⁠Volume

Folder Storage : /var/www/html
Already include folder
- System
- Application
- index.php

⁠How to Run Image

$> docker container run -d --name [name] teamcodework/php:codeigniter

⁠Auto pull github

Restart Container will pull new github from source

⁠Check syntax php existing container

$> docker container exec -t [name] sh /cmd/check.sh

$> docker container run \
    --rm -t teamcodework/php:codeigniter sh /cmd/check.sh

⁠check test unit codeigniter existing container

$> docker container exec -t [name] sh /cmd/test.sh

$> docker container run \
    --rm -t teamcodework/codeigniter sh /cmd/test.sh

⁠Merge and commit git

$> docker container exec -t [name] sh /cmd/commit.sh

⁠Add gitea hooks on post-recieve

$> #!/bin/bash
    while read oldrev newrev refname
    do
        branch=$(git rev-parse --symbolic --abbrev-ref $refname)
        if [ "[branch]" = "$branch" ]; then
            crumb=$(curl -u "user:pass" -s 'https://[jenkins-hostname]/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
            curl -u "user:pass" -H "$crumb" -X POST 'https://[jenkins-hostname]/job/test-build/build?delay=0sec'
        fi
    done

Tag summary

Content type

Image

Digest

Size

147.7 MB

Last updated

over 5 years ago

docker pull teamcodework/php:kubectl