From ffe9dc8cb0e7ff1525e78e9b5942446ce7af9fd3 Mon Sep 17 00:00:00 2001 From: a-Sansara Date: Sat, 4 Nov 2017 18:05:24 +0100 Subject: [PATCH] adding vala shared lib libpluie-echo-0.1 --- pluie/libecho/Dockerfile | 14 ++++++++++++++ pluie/libecho/README.md | 20 ++++++++++++++++++++ pluie/libecho/build | 22 ++++++++++++++++++++++ pluie/libecho/files.tar | Bin 0 -> 10240 bytes pluie/libecho/install.d/10-vala.sh | 10 ++++++++++ pluie/libecho/main.sh | 8 ++++++++ pluie/libecho/pre-init.d/10-vala.sh | 2 ++ 7 files changed, 76 insertions(+) create mode 100644 pluie/libecho/Dockerfile create mode 100644 pluie/libecho/README.md create mode 100755 pluie/libecho/build create mode 100644 pluie/libecho/files.tar create mode 100644 pluie/libecho/install.d/10-vala.sh create mode 100755 pluie/libecho/main.sh create mode 100644 pluie/libecho/pre-init.d/10-vala.sh diff --git a/pluie/libecho/Dockerfile b/pluie/libecho/Dockerfile new file mode 100644 index 0000000..62704f5 --- /dev/null +++ b/pluie/libecho/Dockerfile @@ -0,0 +1,14 @@ +# @app pluie/alpine-apache +# @author a-Sansara https://git.pluie.org/pluie/docker-images + +FROM pluie/alpine + +MAINTAINER a-Sansara https://github.com/a-sansara + +ADD files.tar /scripts + +ENV SHENV_NAME=libecho \ + SHENV_COLOR=32 \ + TZ=Europe/Paris + +RUN bash /scripts/install.sh diff --git a/pluie/libecho/README.md b/pluie/libecho/README.md new file mode 100644 index 0000000..b76fa1d --- /dev/null +++ b/pluie/libecho/README.md @@ -0,0 +1,20 @@ +# libpluie-echo + +demo image demonstrating libpluie-echo, a small vala shared library managing tracing, display formatting and ansi-extended colors on stdout & stderror. + +you can run a container with : + +``` +docker run --rm -it pluie/libecho +``` + +## repository + +https://github.com/pluie-org/libpluie-echo + +## samples + +![Sample 1 code](https://www.meta-tech.academy/img/libpluie-echo_sample_code1.png) +![Sample 1 output](https://www.meta-tech.academy/img/libpluie-echo_sample1.png) +![Sample 2 code](https://www.meta-tech.academy/img/libpluie-echo_sample_code2.png) +![Sample 2 output](https://www.meta-tech.academy/img/libpluie-echo_sample2.png) diff --git a/pluie/libecho/build b/pluie/libecho/build new file mode 100755 index 0000000..8cafaab --- /dev/null +++ b/pluie/libecho/build @@ -0,0 +1,22 @@ +#!/bin/bash +# @app pluie/alpine-apache +# @author a-Sansara https://git.pluie.org/pluie/docker-images + + 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" + +tar -cvf files.tar *.sh pre-init.d/ install.d/ | sed "s/^/${indent}↠ /" + +echo -e "\n ${Ctitle} Proceed Dockerfile build : ${Coff}\n +" +sudo docker build --force-rm -t ${DOCKREPO}/${DOCKBUILD}:${DOCKTAG} . | sed "s/^/${indent}/" +cd $TMPPWD diff --git a/pluie/libecho/files.tar b/pluie/libecho/files.tar new file mode 100644 index 0000000000000000000000000000000000000000..0599354ac534eb1b248743201c4e1fb8bfe43e27 GIT binary patch literal 10240 zcmeH~&2F495XU+56w{5Ao3Z(pDpjh~M@ZFEFJ5rLU1KZ^QTz6_p(N}cwvkd+jXGSs z%b4-#H=e&e9hW+?ZLsIV+*6i$;D)%&*>?0Mma;sE)3_|tl4Yz2Sez7D835ZesMYsm zM?L@qoLH_cANXpx82@CynEqD&-o2wosp*m1HoSw6+!&Z2qb4b+l1EXs{cM@Wws)X_ zlZOQqwBu;(drBKQM)Ulr9~!!RS@+dR3`BOk5jG4Xptc&M87-~)uIv4t3qz^p_*srh zz~Kv59Bj)6QG;6*W-r7qPFNHl;PAjZqr@TfF+CgU9Nt@j{SU@z20?rpqMGg&ov-n0 z_3zA2^`91rtN%33SOEEM5p5j*=k>qIf6U0EtHQs38u>v^&Idf7PI6c|2a!C z)c?&c-R);p!?~h{eh*YYh&eSEDh$y1+k&3}qz5m(@HN~mG<19e0#dvCk5YTezpwij z>wlTVUjLK4K>fc#`h(~E?M%{9fnRpOZ}a@gXR7nj5I0y-lEV6+w0}McTlNb zi)|0mPRGbK7fS;|d@FL+Dn$OH*{eJA&Mb6!z4&(r-ypupA0Oys2Z$&fC#mXX#uC{Y z5Bc