项目作者: pluie-org

项目描述 :
various based images for Docker managing php5/7 apache mariadb symfony on alpine linux
高级语言: Shell
项目地址: git://github.com/pluie-org/docker-images.git
创建时间: 2016-07-25T00:07:21Z
项目社区:https://github.com/pluie-org/docker-images

开源协议:MIT License

下载


docker-images

various based images for Docker

Available Images

Base Image Structure

  1. project/
  2. |
  3. |-- install.d/ # deployed in /scripts on target container
  4. | | # launch on docker image building process
  5. | | # XX-name.sh - low XX are run first
  6. | |-- 00-util.sh
  7. | |-- 40-fix.sh
  8. |
  9. |-- pre-init.d/ # deployed in /scripts on target container
  10. | | # launch on docker container running process
  11. | |-- 50-builder.sh
  12. |
  13. |-- build # build docker image : ./build [TAG]
  14. |-- common.sh # don't modify - sourced by main.sh to execute pre-init.d scripts first
  15. |-- install.sh # don't modify - execute install.d scripts on docker building process
  16. |-- main.sh # source common.sh then execute entry point instruction
  17. |-- util.sh # sourced by common.sh

Extended Image Structure

  1. project/
  2. |
  3. |-- install.d/
  4. |-- pre-init.d/
  5. |
  6. |-- build # same as based image
  7. |-- main.sh # source based common.sh then execute entry point instruction

Extended Image Dockerfile

in any case, keep that :

  1. FROM $baseImage
  2. MAINTAINER $author $url
  3. ADD files.tar /scripts
  4. RUN bash /scripts/install.sh

then define only
EXPOSE VOLUME & ENV instructions

Building Process

build script archive project files in files.tar then execute the Docker build command.

  1. ./build [optionalTag]

no need to worry about pwd, docker repository and image name depends on directory structure.
you can keep same build script in any project