Pavel Sklenar

Simple Groovy Logger Without Any Logging Framework

If you need to use a simple logging in your Groovy script you can use some existing and supported frameworks. Sometimes you do not want or cannot use any other dependencies in your script, so you can write your own simple logger using methodMissing implementation: /** * Possibility to log TRACE, DEBUG, INFO, WARN and ERROR levels * Simply call methods like info, debug etc. (case insensitive) * Possibility to set/change: * * logFile - location of a log file (default value:default.

5 Useful Docker Tips and Tricks on Windows

UPDATED: Docker deprecates the Boot2Docker command line in favor of Docker Machine. All Tips and Tricks were updated to reflect this change. Edit etc/hosts Your Docker host on Windows is usually accessible either on the IP address (older Docker versions) or (newer Docker versions). As you can see, not so easy to remember. You can add a new record to your etc/hosts file (in Windows) to create a local DNS name for your Docker VM (Boot2Docker), e.

10 Useful Docker Commands - Tips and Tricks

Set HTTP proxy in your Dockerfile Your Dockerfile¬†usually starts most probably like this: FROMtifayuki/java:8MAINTAINER...RUN apt-get update \ wget \ ...At first, you are apt-getting some missing applications and preparing your environment. Sometimes some applications need to be downloaded from the internet. You may encounter a problem when you are behind a proxy. Fortunately, you can use an¬†[ENV]( command to set a HTTP/HTTPS proxy address, which will be in the environment of all “descendent” Dockerfile commands.