https://github.com/php/php-src/blob/master/php.ini-production
| # | |
| # Avoid the message 'External file changes sync may be slow: The current inotify(7) watch limit is too low.' from JetBrains products. | |
| # | |
| # 1. Create the file /etc/sysctl.d/60-jetbrains.conf and paste this code | |
| # 2. Restart the sysctl service: sudo sysctl -p --system | |
| # 3. Restart the IDE | |
| # | |
| # More info: | |
| # https://youtrack.jetbrains.com/articles/SUPPORT-A-1715/Inotify-Watches-Limit-Linux |
This guide explains how to create a simple multi cloud Docker cluster using Docker Swarm, Docker Machine and the three top cloud providers nowadays - Google Compute Engine, Microsoft Azure and AWS.
This guide assumes you have a Linux host with Docker CE installed. If you are using Docker for Mac or Docker for Windows you can avoid the Docker Machine set up since it comes included.
| ARG PHP_VERSION=7.2-fpm-stretch | |
| ARG COMPOSER_VERSION=latest | |
| # builder stage | |
| FROM php:$PHP_VERSION AS builder | |
| ARG AMQP_VERSION=1.9.3 | |
| ARG PHPREDIS_VERSION=4.1.1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \ |
This is a portion of a Makefile where I select a Git tag, validate its name using regular expresion and build a Docker image with it as tag.
# it is evaluated when is used (recursively expanded variable)
# https://ftp.gnu.org/old-gnu/Manuals/make-3.79.1/html_chapter/make_6.html#SEC59
git_tag = $(shell git describe --abbrev=0 --tags)
# Semantic versioning format https://semver.org/
tag_regex := ^v([0-9]{1,}\.){2}[0-9]{1,}$| #!/bin/bash | |
| # | |
| # Delete the whole data created by the user. TAKE CARE!!! | |
| # | |
| # kill all running containers | |
| docker kill $(docker ps -q) | |
| # delete all containers |
Scenario: same git provider, for this example GitHub (this trick is provider agnostic, has been tested with GitLab as well), and we want to have SSH configured for two different users (or more): jesugmz and myseconduser.
Configure SSH config in order to get an alias with different configuration as follow:
$ cat ~/.ssh/config