docker-images/pluie/alpine-apache/build

23 lines
691 B
Plaintext
Raw Normal View History

2016-07-25 02:54:40 +00:00
#!/bin/bash
2016-08-06 00:29:06 +00:00
# @app pluie/alpine-apache
# @author a-Sansara https://git.pluie.org/pluie/docker-images
2016-07-25 02:54:40 +00:00
Ctitle="\033[1;38;5;15;1;48;5;30m"
Citem="\033[1;38;5;36m"
Coff="\033[m"
DOCKDIR=$(dirname "$(readlink -f ${BASH_SOURCE[0]})")
DOCKBUILD=$(basename $DOCKDIR)
DOCKREPO=$(basename $(dirname $DOCKDIR))
DOCKTAG=${1:-"latest"}
TMPPWD=$(pwd)
indent=" "
cd $DOCKDIR
echo -e "\n ${Ctitle} Preparing files : ${Coff}${Citem}\n"
2016-08-04 01:00:33 +00:00
tar -cvf files.tar *.sh pre-init.d/ install.d/ | sed "s/^/${indent}↠ /"
2016-07-25 02:54:40 +00:00
echo -e "\n ${Ctitle} Proceed Dockerfile build : ${Coff}\n
"
docker build --force-rm -t ${DOCKREPO}/${DOCKBUILD}:${DOCKTAG} . | sed "s/^/${indent}/"
cd $TMPPWD