Archives de catégorie : Non classé

Install docker-compose on Linux

Whatever the OS distrib and the way to install docker-compose, the program is always consisted in 1 and 1 only binary file : docker-compose. So the general idea is to download that and to store it at a location in … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Consul with Docker : very basic

Start a consul container as a server agent Command : docker run -d -p 8500:8500 -p 8600:8600/udp –name=consul-server consul agent -server -ui -node=server1 -bootstrap-expect=1 -client=0.0.0.0 Explanations : – Ports are published only to bring helpful tools directly accessible from the … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Consul fundamental

Much of the content come from the consul official documentation. I tried to keep only the most useful part and to make it as short as possible in terms of information to know. Terms definition Node : A node is … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

jetbrain hints

Common path locations FAQ Examples for IntelliJ IDEA 2022.2 Windows: Configuration (idea.config.path): %APPDATA%\JetBrains\IntelliJIdea2022.2 Plugins (idea.plugins.path): %APPDATA%\JetBrains\IntelliJIdea2022.2\plugins System (idea.system.path): %LOCALAPPDATA%\JetBrains\IntelliJIdea2022.2 Logs (idea.log.path): %LOCALAPPDATA%\JetBrains\IntelliJIdea2022.2\log Linux: Configuration (idea.config.path): ~/.config/JetBrains/IntelliJIdea2022.2 Plugins (idea.plugins.path): ~/.local/share/JetBrains/IntelliJIdea2022.2 System (idea.system.path): ~/.cache/JetBrains/IntelliJIdea2022.2 Logs (idea.log.path): ~/.cache/JetBrains/IntelliJIdea2022.2/log Intellij Configuration FAQ Update IntelliJ … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

PostgreSQL on Docker

Run PostgreSQL as a Docker container : fast/quick play approach Run a PostgreSQL container from the latest tag and with the default configuration and no volume mounted  (no volume means no data persisted after container removal!) : docker run –name … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Angular on Docker

Docker choices for fundamental things to address Here are fundamentals things to address when we want to run an Angular application on Docker :   – The package manager for JavaScript libraries – How to build and run the Angular application Here my choices : – The … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Docker networking

Networks : the available network drivers Subnet range calculation Docker subnet range by docker network 172.17.0.0/16 -> 65534 available addresses take an example address 192.168.0.0/16. Here you have 16 bits of the 32 for network addressing, leaving 16 bits for … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Maven with docker

Build a local project on a docker container with the Maven image docker run -it –rm -v $PWD:/usr/src/my-maven -v « $HOME »/.m2:/root/.m2 -w /usr/src/my-maven maven:3.5.2-jdk-8-alpine mvn install Some explanations : – –rm to automatically remove the container when it exits – -v … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Buildkit or Build Enhancements for Docker

Enable Buildkit For docker build command We need to define this variable : DOCKER_BUILDKIT=1. At each execution : DOCKER_BUILDKIT=1 docker build -t fooTag . Or we could also export it as an environment variable : export DOCKER_BUILDKIT=1 # or configure … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Docker build

Restrictions on image Image tag – the regex for the letters is all lower case, no upper case letters. – a hostname + optional port is allowed at the very beginning. – don’t use underscore because not more two underscores … Continuer la lecture

Publié dans Non classé | Laisser un commentaire