Skip to content

applariat-catalog/php-apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP:Apache Image Builder

appLariat's generic image builder for PHP:Apache This is the default build configuration for PHP:Apache images and is used by the appLariat Component Builder service

Default build workflow:

  1. Component builder starts with a task to create a php image and then dynamically retrieves this repository.
  2. Component builder updates the FROM image based on the component configuration to pull the proper version of the php image.
  3. Component builder retrieves and prepares the specified code artifact.
  4. Component builder executes a Docker Build to generate an image
    • Pulls the proper official php image as the base image layer
    • Copies the build.sh and entrypoint.sh into the image
    • Copies the conf/ directory which into image.
    • Copies the code artifact into the image
    • Executes the build.sh script to prepare the image to run.
  5. Component builder pushes the generated image to a designated container repository

How to customize php component setup

  1. If you only need to customize the php configuration, the build.sh script will automatically look for a directory in the code artifact called php-conf. You just need to place your customized php.ini file in this folder, and build.sh will overwrite the default configuration files.

  2. Clone this repository to modify and then update the build artifact in your application component configuration within appLariat to use your own customized builder.

    • Simplest option is to modify the build.sh and entrypoint.sh scripts to prepare and customize the image.

      • build.sh runs once during the docker build process. It can be used to install software packages into image.
      • entrypoint.sh runs every time that image starts and can be utilized to prepare run time environmet like exporting environment variables, setting the PATH etc.
    • Alternatively you can also modify the Dockerfile and use Docker syntax to build your own customized image. If you create your own Dockerfile you will also need to update the image artifact in appLariat as component builder will override the FROM line in the Dockerfile with the image specified in the config.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages