# Root logger option
log4j.rootLogger=ERROR, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Verify http_proxy if presents used else ping google.com | |
docker-proxy-in() { | |
if [ -z "$http_proxy" ] && ping -c 1 google.com > /dev/null ; then | |
cat ${1:-Dockerfile} | |
else | |
sed -e "/FROM/a\\ | |
\\ | |
ENV http_proxy=\"$http_proxy\" https_proxy=\"$https_proxy\" ftp_proxy=\"$ftp_proxy\" no_proxy=\"$no_proxy\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#configuration. | |
unset proxy | |
unset proxy_port | |
unset proxy_user | |
unset proxy_password | |
unset proxy_password_encoding | |
unset use_proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#configuration. | |
export proxy=$1 | |
export proxy_port=$2 | |
export proxy_user=$3 | |
export proxy_password=$4 | |
export proxy_password_encoding=$5 | |
export no_proxy=$6,/var/run/docker.sock | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# You need to define | |
# tag | |
# littleName | |
# environment | |
# publish | |
# registry | |
registry= | |
current_dir = $(shell pwd) | |
bigTag=$(registry)$(tag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git stash -q --keep-index | |
############################################################### | |
# | |
# your command e.g : sbt clean compile | |
# | |
############################################################### | |
RESULT=$? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object IsUp { | |
class RetryException(msg: String, exception: Throwable) extends Exception(msg, exception) | |
def socket(host: String, port: Int, nb: Int = 10, time: Long = 1000): Unit = { | |
retry(nb, time) { | |
val socket = new Socket() | |
try { | |
socket.connect(new InetSocketAddress(host, port)); | |
} finally { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $2 == "rm" ]] | |
then | |
echo "RM" | |
find ~/.ivy2/ -type f -name "$1*" -exec rm -rvf {} \; | |
else | |
find ~/.ivy2/ -type f -name "$1*" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker rm -f $(eval sudo docker ps -aq) | |
sudo docker volume rm $(eval sudo docker volume ls -qf dangling=true) | |
sudo docker rmi -f $(eval sudo docker images -f "dangling=true" -q) | |
sudo docker network inspect $(sudo docker network ls -q --filter driver=bridge) | jq ".[] | select (.Name != \"bridge\" and (.Containers | length == 0)) | .Name" | xargs sudo docker network rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# No verification but we need: | |
# - to be able to run docker command | |
# - we use jq (https://stedolan.github.io/jq/manual/) | |
# Transfer image to docker registry v1 to docker registry v2 | |
# TODO manage parameters | |
# TODO manage insecure (actually curl -k) | |
# TODO manage pagination | |
# TODO manage namespace "library/" |
OlderNewer