fix build script
This commit is contained in:
parent
cbcd0f0a82
commit
cf8ad07a52
|
@ -4,14 +4,18 @@
|
||||||
Ctitle="\033[1;38;5;15;1;48;5;30m"
|
Ctitle="\033[1;38;5;15;1;48;5;30m"
|
||||||
Citem="\033[1;38;5;36m"
|
Citem="\033[1;38;5;36m"
|
||||||
Coff="\033[m"
|
Coff="\033[m"
|
||||||
DOCKBUILD=$(dirname "${BASH_SOURCE[0]}")
|
DOCKDIR=$(dirname "$(readlink -f ${BASH_SOURCE[0]})")
|
||||||
DOCKREPO=$(dirname "${DOCKBUILD}")
|
DOCKBUILD=$(basename $DOCKDIR)
|
||||||
|
DOCKREPO=$(basename $(dirname $(readlink -f ${DOCKBUILD})))
|
||||||
DOCKTAG=${1:-"latest"}
|
DOCKTAG=${1:-"latest"}
|
||||||
|
TMPPWD=$(pwd)
|
||||||
indent=" "
|
indent=" "
|
||||||
|
cd $DOCKDIR
|
||||||
echo -e "\n ${Ctitle} Preparing files : ${Coff}${Citem}\n"
|
echo -e "\n ${Ctitle} Preparing files : ${Coff}${Citem}\n"
|
||||||
|
|
||||||
tar -cvf files.tar *.sh pre-init.d/ install.d/ | sed 's/^/${indent}* /'
|
tar -cvf files.tar *.sh pre-init.d/ install.d/ | sed "s/^/${indent}* /"
|
||||||
|
|
||||||
echo -e "\n ${Ctitle} Proceed Dockerfile build : ${Coff}\n
|
echo -e "\n ${Ctitle} Proceed Dockerfile build : ${Coff}\n
|
||||||
"
|
"
|
||||||
docker build --force-rm -t ${DOCKREPO}/${DOCKBUILD}:${DOCKTAG} . | sed 's/^/${indent}/'
|
docker build --force-rm -t ${DOCKREPO}/${DOCKBUILD}:${DOCKTAG} . | sed "s/^/${indent}/"
|
||||||
|
cd $TMPPWD
|
||||||
|
|
Loading…
Reference in New Issue
Block a user